aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-31 22:59:30 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-31 22:59:30 -0500
commit143845e62636b2bbc1316e794be40c37e3505c71 (patch)
treeea8ee4b833fedadb97af629c009a6131ee780237
parent5140c099b3985877d37b2cdcfc4d7711c40c6aeb (diff)
downloadayatana-indicator-bluetooth-143845e62636b2bbc1316e794be40c37e3505c71.tar.gz
ayatana-indicator-bluetooth-143845e62636b2bbc1316e794be40c37e3505c71.tar.bz2
ayatana-indicator-bluetooth-143845e62636b2bbc1316e794be40c37e3505c71.zip
sync this indicator's i18n autoconf rules with the other indicators
-rw-r--r--configure.ac32
1 files changed, 27 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index c460511..f9303de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,12 +28,34 @@ PKG_CHECK_MODULES(INDICATOR_BLUETOOTH, [
libido3-0.1
])
-dnl ###########################################################################
-dnl Internationalization
-dnl ###########################################################################
+dnl ##############################
+dnl # Custom Junk
+dnl ##############################
+
+AC_DEFUN([AC_DEFINE_PATH], [
+ test "x$prefix" = xNONE && prefix="$ac_default_prefix"
+ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+ ac_define_path=`eval echo [$]$2`
+ ac_define_path=`eval echo [$]ac_define_path`
+ $1="$ac_define_path"
+ AC_SUBST($1)
+ ifelse($3, ,
+ AC_DEFINE_UNQUOTED($1, "$ac_define_path"),
+ AC_DEFINE_UNQUOTED($1, "$ac_define_path", $3))
+])
+
+dnl ###########################
+dnl # Internationalization
+dnl ###########################
+
+IT_PROG_INTLTOOL([0.41.0])
+
+GETTEXT_PACKAGE=indicator-bluetooth
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default get text domain])
+AC_DEFINE_PATH(GNOMELOCALEDIR, "${datadir}/locale", [locale directory])
-IT_PROG_INTLTOOL([0.35.0])
-AC_SUBST(GETTEXT_PACKAGE, indicator-bluetooth)
+AM_GLIB_GNU_GETTEXT
dnl ###########################################################################
dnl Files to generate