summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/user-libudev.m45
-rw-r--r--config/zfs-build.m48
2 files changed, 7 insertions, 6 deletions
diff --git a/config/user-libudev.m4 b/config/user-libudev.m4
index 2a8025903..9b7454927 100644
--- a/config/user-libudev.m4
+++ b/config/user-libudev.m4
@@ -5,14 +5,13 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [
LIBUDEV=
AC_CHECK_HEADER([libudev.h], [
- libudev=yes
+ user_libudev=yes
AC_SUBST([LIBUDEV], ["-ludev"])
AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])
], [
- libudev=no
+ user_libudev=no
])
- 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])], [])
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index 9ff7fb371..a584b0813 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -100,10 +100,12 @@ AC_DEFUN([ZFS_AC_CONFIG], [
esac
AM_CONDITIONAL([CONFIG_USER],
- [test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all])
+ [test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all])
AM_CONDITIONAL([CONFIG_KERNEL],
- [test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all] &&
- [test "x$enable_linux_builtin" != xyes ])
+ [test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all] &&
+ [test "x$enable_linux_builtin" != xyes ])
+ AM_CONDITIONAL([WANT_DEVNAME2DEVID],
+ [test "x$user_libudev" = xyes ])
])
dnl #