Multipath autoreplace, control enclosure LEDs, event rate limiting
[zfs.git] / config / user-libdevmapper.m4
blobaf4dd41c3ae1b6e1f7a664baed998ce342c62c05
1 dnl #
2 dnl # Check for libdevmapper.  libdevmapper is optional for building, but
3 dnl # required for auto-online/auto-replace functionality for DM/multipath
4 dnl # disks.
5 dnl #
6 AC_DEFUN([ZFS_AC_CONFIG_USER_LIBDEVMAPPER], [
7         AC_CHECK_HEADER([libdevmapper.h], [
8             AC_SUBST([LIBDEVMAPPER], ["-ldevmapper"])
9             AC_DEFINE([HAVE_LIBDEVMAPPER], 1, [Define if you have libdevmapper])
11             user_libdevmapper=yes
12         ], [
13             user_libdevmapper=no
14         ])