summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--configure.in20
2 files changed, 19 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cfd1cd3..e2f9efe2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-05-15 Lucas Rocha <lucasr@gnome.org>
+ * configure.ac: make libnotify support an option (Fixes bug #346843).
+ Patch from Saleem Abdulrasool <compnerd@gentoo.org>.
+
+2007-05-15 Lucas Rocha <lucasr@gnome.org>
+
* src/calendar.c (zenity_calendar, zenity_calendar_double_click):
double-click on day results in dialog response (Fixes bug #395152).
Patch from Tom Tromey <tromey@redhat.com>.
diff --git a/configure.in b/configure.in
index 132d9fe6..8af20648 100644
--- a/configure.in
+++ b/configure.in
@@ -33,13 +33,21 @@ AC_PATH_PROG([PERL],[perl],)
# *******************************
LIBNOTIFY_REQUIRED=0.4.1
-PKG_CHECK_MODULES([LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED],
- [HAVE_LIBNOTIFY="yes"],[HAVE_LIBNOTIFY="no"])
-AC_SUBST([LIBNOTIFY_CFLAGS])
-AC_SUBST([LIBNOTIFY_LIBS])
-if test "x$HAVE_LIBNOTIFY" = "xyes"; then
- AC_DEFINE([HAVE_LIBNOTIFY],[1],[libnotify is available on this machine])
+AC_ARG_ENABLE([libnotify],
+ AC_HELP_STRING([--enable-libnotify],[enable libnotify support]),,
+ [enable_libnotify=yes])
+
+if test x$enable_libnotify = xyes ; then
+ PKG_CHECK_MODULES([LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED],
+ [HAVE_LIBNOTIFY="yes"],[HAVE_LIBNOTIFY="no"])
+
+ AC_SUBST([LIBNOTIFY_CFLAGS])
+ AC_SUBST([LIBNOTIFY_LIBS])
+
+ if test "x$HAVE_LIBNOTIFY" = "xyes"; then
+ AC_DEFINE([HAVE_LIBNOTIFY],[1],[libnotify is available on this machine])
+ fi
fi
# *******************************
bgstack15