summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-11-20 15:01:21 -0500
committerSteve Dickson <steved@redhat.com>2010-11-22 11:38:54 -0500
commit0868dcccb9a3bf3d022a32ff31311fe371484e77 (patch)
tree25910a9e148f39f0718049f6cb17ba2868e77f9e /aclocal
parent6f07548141e710767d425e119d9823691293771d (diff)
downloadnfs-utils-0868dcccb9a3bf3d022a32ff31311fe371484e77.tar.gz
nfs-utils-0868dcccb9a3bf3d022a32ff31311fe371484e77.tar.xz
nfs-utils-0868dcccb9a3bf3d022a32ff31311fe371484e77.zip
Enable nfsidmap to compile
Only enable the compilation of nfsidmap when libnfsidmap support it. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/libnfsidmap.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/aclocal/libnfsidmap.m4 b/aclocal/libnfsidmap.m4
index cfcde2f..4faa923 100644
--- a/aclocal/libnfsidmap.m4
+++ b/aclocal/libnfsidmap.m4
@@ -14,4 +14,8 @@ AC_DEFUN([AC_LIBNFSIDMAP], [
[AC_DEFINE([HAVE_NFS4_SET_DEBUG], 1,
[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])
+
])dnl