Imported upstream 1.2.6 upstream/1.2.6
authorLuk Claes <luk@debian.org>
Tue, 22 May 2012 06:06:10 +0000 (08:06 +0200)
committerLuk Claes <luk@debian.org>
Tue, 22 May 2012 06:06:10 +0000 (08:06 +0200)
1  2 
configure.ac

diff --cc configure.ac
@@@ -265,10 -286,16 +286,19 @@@ if test "$enable_nfsv4" = yes; the
      AC_RPCSEC_VERSION
    fi
  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"])
 +
  
+ 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"])
  if test "$knfsd_cv_glibc2" = no; then
      AC_CHECK_LIB(bsd, daemon, [LIBBSD="-lbsd"])
  fi