[blam] Add configuration for notification support



commit 03715626b52305608353e366d1c62346d1663320
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Sat Jun 5 15:25:02 2010 +0200

    Add configuration for notification support

 configure.in    |    8 ++++++++
 src/Makefile.am |    5 +++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index aa53600..d2b2059 100644
--- a/configure.in
+++ b/configure.in
@@ -59,6 +59,13 @@ PKG_CHECK_MODULES(DBUS, ndesk-dbus-glib-1.0, ENABLE_DBUS="yes", ENABLE_DBUS="no"
 AM_CONDITIONAL(ENABLE_DBUS, test "$ENABLE_DBUS" = "yes")
 AC_SUBST(DBUS_LIBS)
 
+#
+# Use libnotify is available
+#
+PKG_CHECK_MODULES(NOTIFY, notify-sharp, ENABLE_NOTIFY="yes", ENABLE_NOTIFY="no")
+AM_CONDITIONAL(ENABLE_NOTIFY, test "$ENABLE_NOTIFY" = "yes")
+AC_SUBST(NOTIFY_LIBS)
+
 
 dnl Intl
 ALL_LINGUAS="ar bg bs ca cs da de dz el en_CA en_GB es et eu fi fr ga gl gu he hr hu it lt lv ja nb ne nl oc pa pl pt_BR pt ru rw sk sl sq sr Latn sr sv tr uk vi zh_CN zh_HK zh_TW"
@@ -94,4 +101,5 @@ echo
 echo "Installing in prefix: $prefix"
 echo 
 echo "Enable D-Bus: $ENABLE_DBUS"
+echo "Enable notifications: $ENABLE_NOTIFY"
 echo
diff --git a/src/Makefile.am b/src/Makefile.am
index f9ebc9a..4ac7584 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -45,6 +45,11 @@ FLAGS += -define:ENABLE_DBUS
 ASSEMBLIES += $(DBUS_LIBS)
 endif
 
+if ENABLE_NOTIFY
+FLAGS += -define:ENABLE_NOTIFY
+ASSEMBLIES += $(NOTIFY_LIBS)
+endif
+
 
 Defines.cs: Defines.cs.in ../config.log
 	sed -e "s|\ version\@|$(VERSION)|" \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]