1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-25 02:32:27 -05:00

Add appindicator to configure.ac

This commit is contained in:
TingPing 2015-02-05 00:10:08 -05:00
parent 296fbaf94f
commit 5e47a098b2

View File

@ -43,6 +43,7 @@ AH_VERBATIM([USE_LIBPROXY],[#undef USE_LIBPROXY])
AH_VERBATIM([HAVE_ISO_CODES],[#undef HAVE_ISO_CODES])
AH_VERBATIM([HAVE_GTK_MAC],[#undef HAVE_GTK_MAC])
AH_VERBATIM([USE_LIBNOTIFY],[#undef USE_LIBNOTIFY])
AH_VERBATIM([USE_APPINDICATOR],[#undef USE_APPINDICATOR])
AH_VERBATIM([USE_LIBCANBERRA],[#undef USE_LIBCANBERRA])
AH_VERBATIM([USE_OPENSSL],[#undef USE_OPENSSL])
AH_VERBATIM([USE_PLUGIN],[#undef USE_PLUGIN])
@ -136,6 +137,10 @@ AC_ARG_ENABLE(libnotify,
[AS_HELP_STRING([--disable-libnotify],[disable libnotify support])],
libnotify=$enableval, libnotify=yes)
AC_ARG_ENABLE(libappindicator,
[AS_HELP_STRING([--disable-libappindicator],[disable libappindicator support])],
appindicator=$enableval, appindicator=yes)
AC_ARG_ENABLE(libcanberra,
[AS_HELP_STRING([--disable-libcanberra],[disable libcanberra support])],
libcanberra=$enableval, libcanberra=yes)
@ -536,6 +541,21 @@ if test "x$libnotify" = "xyes" ; then
fi
fi
dnl *********************************************************************
dnl ** LIBAPPINDICATOR **************************************************
dnl *********************************************************************
if test "x$appindicator" = "xyes" ; then
PKG_CHECK_MODULES(APPINDICATOR, appindicator-0.1, [], [
appindicator=no
])
if test "$appindicator" != "no" ; then
GUI_LIBS="$GUI_LIBS $APPINDICATOR_LIBS"
GUI_CFLAGS="$GUI_CFLAGS $APPINDICATOR_CFLAGS"
AC_DEFINE(USE_APPINDICATOR)
fi
fi
dnl *********************************************************************
dnl ** LIBCANBERRA ******************************************************
dnl *********************************************************************
@ -817,6 +837,7 @@ echo
echo OpenSSL support ....... : $openssl
echo D-Bus support ......... : $dbus
echo libnotify support ..... : $libnotify
echo libappindicator support : $appindicator
echo libcanberra support ... : $libcanberra
echo Plugin interface ...... : $plugin
echo libproxy support ...... : $libproxy