configure: Don't fail if gudev is not present
authorOlivier Crête <tester@tester.ca>
Mon, 17 Mar 2014 03:19:55 +0000 (23:19 -0400)
committerOlivier Crête <tester@tester.ca>
Mon, 17 Mar 2014 03:19:55 +0000 (23:19 -0400)
PKG_CHECK_MODULES has the bad habit of failing the build if it doesn't
get what it wants, prevent that.

configure.ac

index f05434c..282f511 100644 (file)
@@ -522,7 +522,8 @@ if test x$with_gudev != xno; then
   PKG_CHECK_MODULES(GUDEV, [ gudev-1.0 >= 147 ],
     [ AC_DEFINE(HAVE_GUDEV, 1,
         [Whether gudev is available for device detection])
-    ])
+    ],
+    [true])
 fi
 
 AC_SUBST(GUDEV_CFLAGS)