[ekiga] Detect GUDev in the configure script



commit 4702016e51e3151536b1138fdc975a6488f8b3f5
Author: Julien Puydt <jpuydt free fr>
Date:   Mon Mar 3 15:38:40 2014 +0100

    Detect GUDev in the configure script

 configure.ac |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 971b2b1..4071156 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,6 +195,28 @@ dnl ###############################
 
 GLIB_GSETTINGS
 
+dnl ###############################
+dnl   GUDev support
+dnl ###############################
+
+GUDEV="disabled"
+if test "x${gm_platform}" == "xlinux" ; then
+  AC_ARG_ENABLE(gudev, AS_HELP_STRING([--enable-gudev],[enable GUDev support (default is enabled)]),
+[if test "x$enableval" = "xyes"; then
+    enable_gudev=yes
+fi],enable_gudev=yes)
+
+  if test "x$enable_gudev" = "xyes"; then
+    PKG_CHECK_MODULES([GUDEV], [gudev-1.0], [found_gudev=yes])
+    AC_SUBST(GUDEV_CFLAGS)
+    AC_SUBST(GUDEV_LIBS)
+    GUDEV="enabled"
+    AC_DEFINE(HAVE_GUDEV,1,[GUDev support])
+  fi
+fi
+
+AM_CONDITIONAL(HAVE_GUDEV, test "x$found_gudev" = "xyes")
+
 
 dnl ###############################
 dnl   Evolution-data-server support
@@ -780,6 +802,9 @@ echo "                  NOTIFY support  :  $NOTIFY"
 echo ""
 echo "             Video4Linux support  :  $VIDEO4LINUX"
 fi
+if test "x${gm_platform}" = "xlinux" ; then
+echo "                   GUDev support  :  $GUDEV"
+fi
 echo "                    LDAP support  :  $LDAP"
 echo ""
 if test "x${gm_platform}" != "xmingw" ; then


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]