]> git.0d.be Git - empathy.git/commitdiff
Add check for new NetworkManager-glib pkgconfig file.
authorBrian Pepple <bpepple@fedoraproject.org>
Fri, 27 Nov 2009 21:56:22 +0000 (16:56 -0500)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 30 Nov 2009 11:22:44 +0000 (11:22 +0000)
Fixes bug #599315.

configure.ac

index a72c6f7ad6ea426919cab47af4a2287708eacaed..241fedfdc2bf988d77626ad5a567238718b982b4 100644 (file)
@@ -233,6 +233,16 @@ else
    if test "x$have_nm" = "xyes"; then
       AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
       have_connman=no
+   else
+      PKG_CHECK_MODULES(NETWORK_MANAGER,
+      [
+          libnm-glib >= $NETWORK_MANAGER_REQUIRED
+      ], have_nm="yes", have_nm="no")
+
+      if test "x$have_nm" = "xyes"; then
+      AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
+      have_connman=no
+      fi
    fi
 fi