[systemd-commits] configure.ac

Michael Biebl mbiebl at kemper.freedesktop.org
Sat Nov 27 04:30:30 PST 2010


 configure.ac |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit ab85c225e0bf0ea432027715976cea00182f03c5
Author: Michael Biebl <biebl at debian.org>
Date:   Sat Nov 27 13:29:14 2010 +0100

    Ensure LIBNOTIFY07 conditional is always set
    
    Also use PKG_CHECK_EXISTS to test if libnotify is recent enough

diff --git a/configure.ac b/configure.ac
index dfbce11..4d29d5f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,14 +259,13 @@ if test "$have_gtk" = "yes"; then
         AC_SUBST(DBUSGLIB_CFLAGS)
         AC_SUBST(DBUSGLIB_LIBS)
 
-        PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify >= 0.7.0 ],
-          [ libnotify07=yes ],
-          [ PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ]) ]
-        )
-        AM_CONDITIONAL(LIBNOTIFY07, [ test "$libnotify07" = "yes" ])
+        PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ])
+        PKG_CHECK_EXISTS([ libnotify >= 0.7.0 ], [ libnotify07=yes ])
+
         AC_SUBST(LIBNOTIFY_CFLAGS)
         AC_SUBST(LIBNOTIFY_LIBS)
 fi
+AM_CONDITIONAL(LIBNOTIFY07, [ test "$libnotify07" = "yes" ])
 
 AM_PROG_VALAC([0.10])
 AC_SUBST(VAPIDIR)



More information about the systemd-commits mailing list