2016-03-14 19:04:21 +03:00
|
|
|
dnl #
|
|
|
|
dnl # Check for libudev - needed for vdev auto-online and auto-replace
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [
|
|
|
|
LIBUDEV=
|
|
|
|
|
2016-04-01 00:50:16 +03:00
|
|
|
AC_CHECK_HEADER([libudev.h], [
|
2016-04-01 18:49:19 +03:00
|
|
|
user_libudev=yes
|
2016-04-01 00:50:16 +03:00
|
|
|
AC_SUBST([LIBUDEV], ["-ludev"])
|
|
|
|
AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])
|
|
|
|
], [
|
2016-04-01 18:49:19 +03:00
|
|
|
user_libudev=no
|
2016-04-01 00:50:16 +03:00
|
|
|
])
|
2016-03-14 19:04:21 +03:00
|
|
|
|
2016-04-01 00:50:16 +03:00
|
|
|
AC_SEARCH_LIBS([udev_device_get_is_initialized], [udev], [
|
2016-03-14 19:04:21 +03:00
|
|
|
AC_DEFINE([HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED], 1, [
|
|
|
|
Define if udev_device_get_is_initialized is available])], [])
|
2016-04-01 00:50:16 +03:00
|
|
|
|
2016-03-14 19:04:21 +03:00
|
|
|
])
|