Add check for udev library
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Nov 2008 15:47:33 +0000 (16:47 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Nov 2008 15:47:33 +0000 (16:47 +0100)
configure.ac

index 4807420..bcb38ea 100644 (file)
@@ -74,6 +74,11 @@ AC_SUBST(DBUS_LIBS)
 AC_SUBST([GDBUS_CFLAGS], ['$(DBUS_CFLAGS) -I$(top_srcdir)/gdbus'])
 AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.la $(DBUS_LIBS)'])
 
+PKG_CHECK_MODULES(UDEV, libudev >= 130, udev_found=yes, udev_found=no)
+AC_SUBST(UDEV_CFLAGS)
+AC_SUBST(UDEV_LIBS)
+AM_CONDITIONAL(UDEV, test "${udev_found}" = "yes")
+
 PKG_CHECK_MODULES(POLKIT, polkit-dbus >= 0.7, polkit_found=yes, polkit_found=no)
 AC_SUBST(POLKIT_CFLAGS)
 AC_SUBST(POLKIT_LIBS)