summaryrefslogtreecommitdiffstats
path: root/config/user-libudev.m4
blob: 143f77f76955e711d37b91a2627b4c0c0537d303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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])], [])
])