From 4c981d10d0ca6219d23ded0713912813b9c07fb3 Mon Sep 17 00:00:00 2001 From: Monsta Date: Thu, 15 Jan 2015 22:17:35 +0300 Subject: drop indicator-0.3 support Closes https://github.com/mate-desktop/mate-indicator-applet/issues/10 Closes https://github.com/mate-desktop/mate-indicator-applet/pull/11 --- configure.ac | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 70e3fc6..f75a328 100644 --- a/configure.ac +++ b/configure.ac @@ -46,35 +46,17 @@ case "$with_gtk" in ;; esac -INDICATOR_REQUIRED_VERSION=0.3.22 +INDICATOR_REQUIRED_VERSION=0.3.90 INDICATOR_PKG=indicator$INDICATOR_API_VERSION-0.4 PKG_CHECK_MODULES(APPLET, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION x11 libmatepanelapplet-4.0 + $INDICATOR_PKG >= $INDICATOR_REQUIRED_VERSION ) AC_SUBST(APPLET_CFLAGS) AC_SUBST(APPLET_LIBS) -PKG_CHECK_MODULES([INDICATOR4], [$INDICATOR_PKG >= $INDICATOR_REQUIRED_VERSION], - [ - AC_DEFINE([HAVE_INDICATOR4], [1], [Use Indicator 0.4]) - INDICATORDIR=`$PKG_CONFIG --variable=indicatordir $INDICATOR_PKG` - INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir $INDICATOR_PKG` - ], - [PKG_CHECK_MODULES([INDICATOR3], [indicator >= $INDICATOR_REQUIRED_VERSION], - [ - 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) -AC_SUBST(INDICATOR4_LIBS) -AC_SUBST(INDICATOR3_CFLAGS) -AC_SUBST(INDICATOR3_LIBS) - ########################### # Check to see if we're local ########################### @@ -89,6 +71,9 @@ 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_PKG` + INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir $INDICATOR_PKG` fi AC_SUBST(INDICATORDIR) -- cgit v1.2.1