aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-15 16:04:34 -0500
committerTed Gould <ted@canonical.com>2009-09-15 16:04:34 -0500
commita96ee29bd978743128d743d5baedc2e9365f0b25 (patch)
tree4c21ed6b37140bd2ddffb81c92de0a957cccc986 /configure.ac
parenta1c5c2a79818b456532e568cb94473e734ca80c3 (diff)
downloadayatana-indicator-messages-a96ee29bd978743128d743d5baedc2e9365f0b25.tar.gz
ayatana-indicator-messages-a96ee29bd978743128d743d5baedc2e9365f0b25.tar.bz2
ayatana-indicator-messages-a96ee29bd978743128d743d5baedc2e9365f0b25.zip
Adding configure stuff in to set up gettext
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 174aec6..2470482 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,33 @@ else
fi
AC_SUBST(DBUSSERVICEDIR)
+##############################
+# Custom Junk
+##############################
+
+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))
+])
+
+###########################
+# Internationalization
+###########################
+
+GETTEXT_PACKAGE=indicator-session
+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])
+
+AM_GLIB_GNU_GETTEXT
+
###########################
# Files
###########################