summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2007-05-14 21:49:32 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2007-05-14 21:49:32 +0000
commitab6159f84b497d0b73a0212632095e2cabbefcfa (patch)
tree372781e8283e56a60acea17dd5c70dd5b8c61312
parentdouble-click on day results in dialog response (Fixes bug #395152). Patch (diff)
downloadzenity-ab6159f84b497d0b73a0212632095e2cabbefcfa.tar.gz
zenity-ab6159f84b497d0b73a0212632095e2cabbefcfa.tar.bz2
zenity-ab6159f84b497d0b73a0212632095e2cabbefcfa.zip
make libnotify support an option (Fixes bug #346843). Patch from Saleem
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>. svn path=/trunk/; revision=1210
-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