mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
63e0828c17
Accidentally introduced by commit e4023e4
. The AM_CONDITIONAL
cannot be located where it can be invoked conditionally, as in
the `--with-config=user` case. Relocate it to the top level
ZFS_AC_CONFIG macro along with the other AM_CONDITIONALs.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #4416
20 lines
520 B
Plaintext
20 lines
520 B
Plaintext
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], [
|
|
user_libudev=yes
|
|
AC_SUBST([LIBUDEV], ["-ludev"])
|
|
AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])
|
|
], [
|
|
user_libudev=no
|
|
])
|
|
|
|
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])], [])
|
|
|
|
])
|