From 8f97f68c8dd6af221e31b4a14d38be6d4a1cc18c Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 28 Dec 2011 15:43:29 +0100 Subject: fix INDICATORDIR bug with indicator-0.4 --- configure.ac | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 0598ac7..eebf6bd 100644 --- a/configure.ac +++ b/configure.ac @@ -36,10 +36,17 @@ AC_SUBST(APPLET_CFLAGS) AC_SUBST(APPLET_LIBS) PKG_CHECK_MODULES([INDICATOR4], [indicator-0.4 >= $INDICATOR_REQUIRED_VERSION], - [AC_DEFINE([HAVE_INDICATOR4], [1], [Use Indicator 0.4])], + [ + AC_DEFINE([HAVE_INDICATOR4], [1], [Use Indicator 0.4]) + INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator-0.4` + INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator-0.4` + ], [PKG_CHECK_MODULES([INDICATOR3], [indicator >= $INDICATOR_REQUIRED_VERSION], - [AC_DEFINE([HAVE_INDICATOR3], [1], [Use Indicator 0.3]) - ]) + [ + AC_DEFINE([HAVE_INDICATOR3], [1], [Use Indicator 0.3]) + INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator` + INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator` + ]) ]) AC_SUBST(INDICATOR4_CFLAGS) @@ -61,9 +68,6 @@ AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all if test "x$with_localinstall" = "xyes"; then INDICATORDIR="${libdir}/indicators/2/" INDICATORICONSDIR="${datadir}/indicator-applet/icons/" -else - INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator` - INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator` fi AC_SUBST(INDICATORDIR) -- cgit v1.2.1