Skip to content

Commit

Permalink
configure: Generate ibus_localedir variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwarat committed Dec 17, 2018
1 parent c7d8771 commit a78e7f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ GETTEXT_PACKAGE=ibus10
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for out gettext translation domains.])
AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir",
DEFINE_IBUS_LOCALEDIR
AC_DEFINE_UNQUOTED(LOCALEDIR, "$ibus_localedir",
[Define the location where the catalogs will be installed])

# For dislpay date.
Expand Down
15 changes: 15 additions & 0 deletions m4/ibuslocale.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
AC_DEFUN([DEFINE_IBUS_LOCALEDIR], [
ibus_save_prefix="$prefix"
ibus_save_datarootdir="$datarootdir"
ibus_save_datadir="$datadir"
ibus_save_localedir="$localedir"
test "x$prefix" = xNONE && prefix=$ac_default_prefix
datarootdir=`eval echo "$datarootdir"`
datadir=`eval echo "$datadir"`
test "x$localedir" = xNONE && localedir="${datadir}/locale"
ibus_localedir=`eval echo "$localedir"`
localedir="$ibus_save_localedir"
datadir="$ibus_save_datadir"
datarootdir="$ibus_save_datarootdir"
prefix="$ibus_save_prefix"
])

0 comments on commit a78e7f8

Please sign in to comment.