From: fredrik Date: Tue, 8 May 2007 02:58:06 +0000 (+0000) Subject: Added check for libnotify. X-Git-Tag: 0.4~41 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=bbc9d874b771a9b87b63e5d370491c0b0646f1df;p=doldaconnect.git Added check for libnotify. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1029 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/configure.in b/configure.in index 0f9bd3f..67dafb5 100644 --- a/configure.in +++ b/configure.in @@ -72,6 +72,23 @@ else HAS_LIBXML=no fi +# libnotify check +AC_MSG_CHECKING([for libnotify package information]) +if test "$PKG_CONFIG" = yes; then + if pkg-config --modversion libnotify >/dev/null 2>&1; then + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + HAS_LIBNOTIFY=no + fi +else + AC_MSG_RESULT(no) + HAS_LIBNOTIFY=no +fi +if test "$HAS_LIBNOTIFY" != no; then + AC_CHECK_LIB(notify, notify_init, [HAS_LIBNOTIFY=yes], [HAS_LIBNOTIFY=no], `pkg-config --libs libnotify`) +fi + # Gtk GUI check gtk2ui_msg=No AC_ARG_ENABLE(gtk2ui, [ --enable-gtk2ui Enable the GTK2 user interface])