diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 974231d..34b8681 100644 --- a/configure.in +++ b/configure.in @@ -64,7 +64,19 @@ AC_PATH_PROG([PERL],[perl],) LIBNOTIFY_REQUIRED=0.6.1 -PKG_CHECK_MODULES([LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED]) +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 # ******************************* # Debug |