diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/user-libudev.m4 | 13 | ||||
-rw-r--r-- | config/user.m4 | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/config/user-libudev.m4 b/config/user-libudev.m4 new file mode 100644 index 000000000..143f77f76 --- /dev/null +++ b/config/user-libudev.m4 @@ -0,0 +1,13 @@ +dnl # +dnl # Check for libudev - needed for vdev auto-online and auto-replace +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_SEARCH_LIBS(i[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/user.m4 b/config/user.m4 index 69d103c10..307ec48f0 100644 --- a/config/user.m4 +++ b/config/user.m4 @@ -12,6 +12,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [ ZFS_AC_CONFIG_USER_LIBUUID ZFS_AC_CONFIG_USER_LIBBLKID ZFS_AC_CONFIG_USER_LIBATTR + ZFS_AC_CONFIG_USER_LIBUDEV ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN ZFS_AC_CONFIG_USER_RUNSTATEDIR |