From fef991230b6a4070e0793adf03d42514639111d3 Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Mon, 26 Sep 2011 15:21:16 -0400 Subject: [PATCH] configure.ac: Add dependency on devmapper for blkmapd Signed-off-by: Steve Dickson --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 80fb39d..f101b86 100644 --- a/configure.ac +++ b/configure.ac @@ -265,6 +265,12 @@ if test "$enable_nfsv4" = yes; then AC_RPCSEC_VERSION fi fi + +if test "$enable_nfsv41" = yes; then + AC_CHECK_LIB([devmapper], [dm_task_create], [LIBDEVMAPPER="-ldevmapper"], AC_MSG_ERROR([libdevmapper needed])) + AC_CHECK_HEADER(libdevmapper.h, , AC_MSG_ERROR([Cannot find devmapper header file libdevmapper.h])) +fi + dnl enable nfsidmap when its support by libnfsidmap AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"]) -- 2.39.5