From 143845e62636b2bbc1316e794be40c37e3505c71 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 31 Jul 2013 22:59:30 -0500 Subject: sync this indicator's i18n autoconf rules with the other indicators --- configure.ac | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) (limited to 'configure.ac') 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 -- cgit v1.2.3