]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfsidmap: auto disable when keyutils is not found
authorMike Frysinger <vapier@gentoo.org>
Wed, 14 Sep 2011 18:22:21 +0000 (14:22 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 14 Sep 2011 18:25:52 +0000 (14:25 -0400)
Since we already auto-disable based on libnfsidmap capabilities, don't
make keyutils a hard failure.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
aclocal/keyutils.m4
aclocal/libnfsidmap.m4
configure.ac

index 84bc112b3ae559da7163f5798ea80eb22a1a89c6..a392c0e99ee12d77f6de225bd460814909351dbc 100644 (file)
@@ -6,6 +6,6 @@ AC_DEFUN([AC_KEYUTILS], [
   AC_CHECK_LIB([keyutils], [keyctl_instantiate], [LIBKEYUTILS=-lkeyutils], ,)
   AC_SUBST(LIBKEYUTILS)
 
-  AC_CHECK_HEADERS([keyutils.h], ,
-                  [AC_MSG_ERROR([keyutils.h header not found.])])
+  AC_CHECK_HEADERS([keyutils.h])
+
 ])dnl
index 4faa923f190c2b14df663ee93697e42b9ecf4b75..484b1ecebfdcb3120464997e5a4b5c900830a260 100644 (file)
@@ -15,7 +15,6 @@ AC_DEFUN([AC_LIBNFSIDMAP], [
                           [Define to 1 if you have the `nfs4_set_debug' function.])])
 
   dnl only enable nfsidmap when libnfsidmap supports it
-  AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid], [enable_nfsidmap=yes],
-               [enable_nfsidmap=no])
+  AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid])
 
 ])dnl
index c9fb27b7bc0734330e7879809c11aa7d6856b3cf..1a28f8a4cd50367397d478e64626027ef35c4ca3 100644 (file)
@@ -266,7 +266,7 @@ if test "$enable_nfsv4" = yes; then
   fi
 fi
 dnl enable nfsidmap when its support by libnfsidmap
-AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$enable_nfsidmap" = "yes"])
+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