mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 11:40:17 +00:00

Accidentally introduced by commit 39fc0cb
. The devname2devid utility
which depends on libudev must only be built when libudev headers are
available. This is accomplished through an AM_CONDITIONAL.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #4416
21 lines
575 B
Plaintext
21 lines
575 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], [
|
|
libudev=yes
|
|
AC_SUBST([LIBUDEV], ["-ludev"])
|
|
AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])
|
|
], [
|
|
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])], [])
|
|
|
|
])
|