aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-02-16 21:34:57 +0100
committerSebastien Bacher <seb128@ubuntu.com>2012-02-16 21:34:57 +0100
commitcd4ca90b9de81d4a0430ad7782477f62035f5bbe (patch)
tree6df904e1443cc4e5263dbcd0b8c4c9aa8959a9ad /configure.ac
parent1204ca2827e64aa041b4bd36813be3d70db54802 (diff)
parentf35cbc8ebf673ca3308eb20fb5409c76e78de0ff (diff)
downloadayatana-indicator-printers-cd4ca90b9de81d4a0430ad7782477f62035f5bbe.tar.gz
ayatana-indicator-printers-cd4ca90b9de81d4a0430ad7782477f62035f5bbe.tar.bz2
ayatana-indicator-printers-cd4ca90b9de81d4a0430ad7782477f62035f5bbe.zip
releasing version 0.1.1-0ubuntu1
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac37
1 files changed, 32 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index d19933a..a5b0c54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
-AC_INIT(indicator-printers, 0.1)
+AC_INIT(indicator-printers, 0.1.1)
AC_PREREQ(2.53)
AM_INIT_AUTOMAKE([])
@@ -10,12 +10,19 @@ AC_PROG_LIBTOOL
AM_PROG_CC_C_O
AM_SILENT_RULES([yes])
+IT_PROG_INTLTOOL([0.35.0])
+GETTEXT_PACKAGE=indicator-printers
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package])
+AM_GLIB_GNU_GETTEXT
+
AC_CONFIG_HEADER(config.h)
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
test/Makefile
+ po/Makefile.in
])
PKG_CHECK_MODULES(APPLET, gtk+-3.0 >= 3.0
@@ -33,15 +40,35 @@ AC_CHECK_HEADER(cups/cups.h,,AC_MSG_ERROR([could not find cups.h]))
SERVICE_CFLAGS+=`$CUPS_CONFIG --cflags`
SERVICE_LIBS+=`$CUPS_CONFIG --libs`
-INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
-INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
-DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
+with_localinstall="no"
+AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall],
+ [install all files locally (for distcheck)]),
+ with_localinstall=$enableval,
+ with_localinstall=no)
+if test "x$with_localinstall" = "xyes"; then
+ INDICATORDIR="${libdir}/indicators/2/"
+ INDICATORICONSDIR="${datadir}/libindicate/icons/"
+else
+ INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
+ INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
+fi
AC_SUBST(INDICATORDIR)
-AC_SUBST(INDICATORICONDIR)
+AC_SUBST(INDICATORICONSDIR)
+
+###########################
+# DBus Service Info
+###########################
+
+if test "x$with_localinstall" = "xyes"; then
+ DBUSSERVICEDIR="${datadir}/dbus-1/services/"
+else
+ DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
+fi
AC_SUBST(DBUSSERVICEDIR)
+
AC_SUBST(AM_CFLAGS, "-Wall")
AC_OUTPUT