X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=aclocal%2Flibnfsidmap.m4;h=ae697e814026aabddd926ecb8c89eab88f665def;hp=cfcde2f8fafc1594295ded6079e2c1463e0b9973;hb=HEAD;hpb=767773f33c10dfeaf44ef7d6aea0946f5d9d248f diff --git a/aclocal/libnfsidmap.m4 b/aclocal/libnfsidmap.m4 index cfcde2f..ae697e8 100644 --- a/aclocal/libnfsidmap.m4 +++ b/aclocal/libnfsidmap.m4 @@ -3,7 +3,7 @@ dnl AC_DEFUN([AC_LIBNFSIDMAP], [ dnl Check for libnfsidmap, but do not add -lnfsidmap to LIBS - AC_CHECK_LIB([nfsidmap], [nfs4_init_name_mapping], [libnfsidmap=1], + AC_CHECK_LIB([nfsidmap], [nfs4_init_name_mapping], [LIBNFSIDMAP=-lnfsidmap], [AC_MSG_ERROR([libnfsidmap not found.])]) AC_CHECK_HEADERS([nfsidmap.h], , @@ -14,4 +14,10 @@ AC_DEFUN([AC_LIBNFSIDMAP], [ [AC_DEFINE([HAVE_NFS4_SET_DEBUG], 1, [Define to 1 if you have the `nfs4_set_debug' function.])]) + dnl nfs4_owner_to_uid() doesn't appear in all versions of libnfsidmap + dnl We just need this test to set $ac_cv_lib_nfsidmap_nfs4_owner_to_uid + AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid], [:]) + + AC_SUBST(LIBNFSIDMAP) + ])dnl