summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-09-30 10:14:28 +0300
committermonsta <[email protected]>2015-09-30 10:16:17 +0300
commit1bcbfb6888ec9de1bff571fea7e4a31649d5a661 (patch)
tree29b08d6a0ecd1c6ebb42aa131ff97fa7a3f5a581
parent14b0cd70fca9b42c7799ac553d050fef7f401717 (diff)
downloadmate-polkit-1bcbfb6888ec9de1bff571fea7e4a31649d5a661.tar.bz2
mate-polkit-1bcbfb6888ec9de1bff571fea7e4a31649d5a661.tar.xz
configure.ac: make GTK+3 build support appindicator too
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8c26cf9..1bdf14c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -138,9 +138,11 @@ AC_MSG_RESULT([$with_gtk])
case "$with_gtk" in
2.0) GTK_API_VERSION=2.0
GTK_REQUIRED=2.24.0
+ APPINDICATOR_API_VERSION=
;;
3.0) GTK_API_VERSION=3.0
GTK_REQUIRED=3.0.0
+ APPINDICATOR_API_VERSION=3
;;
esac
AC_SUBST(GTK_API_VERSION)
@@ -166,6 +168,8 @@ AC_ARG_ENABLE([accountsservice],
AM_CONDITIONAL([HAVE_ACCOUNTSSERVICE], [test "x$enable_accountsservice" = xyes])
# Application indicator
+APPINDICATOR_PKG=appindicator$APPINDICATOR_API_VERSION-0.1
+
AC_ARG_ENABLE([appindicator],
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators]),
[enable_appindicator=$enableval],
@@ -173,14 +177,14 @@ AC_ARG_ENABLE([appindicator],
if test "x$enable_appindicator" = "xauto"; then
- PKG_CHECK_EXISTS(appindicator-0.1 >= $APPINDICATOR_REQUIRED,
+ PKG_CHECK_EXISTS($APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED,
[enable_appindicator="yes"],
[enable_appindicator="no"])
fi
if test "x$enable_appindicator" = "xyes"; then
PKG_CHECK_MODULES(APPINDICATOR,
- [appindicator-0.1 >= $APPINDICATOR_REQUIRED],
+ [$APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED],
[AC_DEFINE(HAVE_APPINDICATOR, 1, [Have AppIndicator])])
fi