diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-03 15:05:20 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-03 15:05:20 -0700 |
commit | f2419468e93e2dba548d02a511993a8443f9d1eb (patch) | |
tree | 067173226418aaa75e307485fd18a05ab34b6bae /configure.ac | |
parent | a2f953500ea73dd3580e0865cdadd87e70cc561b (diff) | |
download | connman-f2419468e93e2dba548d02a511993a8443f9d1eb.tar.gz connman-f2419468e93e2dba548d02a511993a8443f9d1eb.tar.bz2 connman-f2419468e93e2dba548d02a511993a8443f9d1eb.zip |
Require udev and if not present use a compat layer
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 7223efa7..7e37a961 100644 --- a/configure.ac +++ b/configure.ac @@ -195,16 +195,13 @@ AC_CHECK_LIB(c, inotify_init, dummy=yes, AC_CHECK_LIB(dl, dlopen, dummy=yes, AC_MSG_ERROR(dynamic linking loader is required)) -AC_ARG_ENABLE(udev, AC_HELP_STRING([--enable-udev], - [enable udev support]), [enable_udev=${enableval}]) +PKG_CHECK_MODULES(UDEV, libudev >= 141, + [enable_udev="yes"], [enable_udev="no"]) if (test "${enable_udev}" = "yes"); then - AC_DEFINE(HAVE_UDEV, 1, [Define if udev support is available]) - PKG_CHECK_MODULES(UDEV, libudev >= 141, dummy=yes, - AC_MSG_ERROR(udev >= 141 is required)) AC_CHECK_LIB(udev, udev_monitor_filter_update, dummy=yes, AC_DEFINE(NEED_UDEV_MONITOR_FILTER, 1, [Define to 1 if you need the - udev_monitor_filter...() functions.])) + udev_monitor_filter...() functions.])) UDEV_DATADIR="`$PKG_CONFIG --variable=rulesdir libudev`" if (test -z "${UDEV_DATADIR}"); then UDEV_DATADIR="${sysconfdir}/udev/rules.d" |