diff options
author | Christian Persch <chpe@src.gnome.org> | 2007-12-27 02:03:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-12-27 02:03:14 +0800 |
commit | b3db2b35a492fc1560632bf54ddef6585048c289 (patch) | |
tree | 748c30c53a576947b9f334b3beb1785932d34b07 /configure.ac | |
parent | 9b52f831cf88a43363b1f2ca3af9e3eb099fb696 (diff) | |
download | gsoc2013-epiphany-b3db2b35a492fc1560632bf54ddef6585048c289.tar.gz gsoc2013-epiphany-b3db2b35a492fc1560632bf54ddef6585048c289.tar.zst gsoc2013-epiphany-b3db2b35a492fc1560632bf54ddef6585048c289.zip |
Make libnotify dep optional.
svn path=/trunk/; revision=7823
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e28914136..0f35bb677 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,14 @@ LIBSTARTUP_NOTIFICATION_REQUIRED=0.5 LIBNOTIFY_REQUIRED=0.4 DBUS_GLIB_REQUIRED=0.35 +PKG_CHECK_EXISTS([libnotify >= $LIBNOTIFY_REQUIRED],[have_libnotify=yes],[have_libnotify=no]) + +LIBNOTIFY_PACKAGE= +if test "$have_libnotify" = "yes"; then + LIBNOTIFY_PACKAGE="libnotify >= $LIBNOTIFY_REQUIRED" + AC_DEFINE([HAVE_LIBNOTIFY],[1],[Define if libnotify is available]) +fi + PKG_CHECK_MODULES([DEPENDENCIES], [ glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 @@ -122,7 +130,7 @@ PKG_CHECK_MODULES([DEPENDENCIES], [ gconf-2.0 gnome-desktop-2.0 >= $GNOME_DESKTOP_REQUIRED libstartup-notification-1.0 >= $LIBSTARTUP_NOTIFICATION_REQUIRED - libnotify >= $LIBNOTIFY_REQUIRED + $LIBNOTIFY_PACKAGE ]) AC_SUBST([DEPENDENCIES_CFLAGS]) AC_SUBST([DEPENDENCIES_LIBS]) |