Added check for libnotify.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 8 May 2007 02:58:06 +0000 (02:58 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 8 May 2007 02:58:06 +0000 (02:58 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1029 959494ce-11ee-0310-bf91-de5d638817bd

configure.in

index 0f9bd3f..67dafb5 100644 (file)
@@ -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])