aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-libudev.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/user-libudev.m4')
-rw-r--r--config/user-libudev.m413
1 files changed, 10 insertions, 3 deletions
diff --git a/config/user-libudev.m4 b/config/user-libudev.m4
index 143f77f76..2a8025903 100644
--- a/config/user-libudev.m4
+++ b/config/user-libudev.m4
@@ -4,10 +4,17 @@ dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [
LIBUDEV=
- AC_CHECK_HEADER([libudev.h], [AC_SUBST([LIBUDEV], ["-ludev"])
- AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])], [])
+ AC_CHECK_HEADER([libudev.h], [
+ libudev=yes
+ AC_SUBST([LIBUDEV], ["-ludev"])
+ AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])
+ ], [
+ libudev=no
+ ])
- AC_SEARCH_LIBS(i[udev_device_get_is_initialized], [udev], [
+ AM_CONDITIONAL([WANT_DEVNAME2DEVID], [ test x$libudev = xyes ])
+ AC_SEARCH_LIBS([udev_device_get_is_initialized], [udev], [
AC_DEFINE([HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED], 1, [
Define if udev_device_get_is_initialized is available])], [])
+
])