From 4b27decace00754006d854a4bbbaa7dd305cba1c Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 15 Apr 2009 10:29:04 -0400 Subject: [PATCH] nfs-utils: make getnameinfo() required for --enable-gss Systems that are so old that they don't have getnameinfo() in glibc are probably also running kernels that are so old that they don't support gssapi upcalls anyway. Make --enable-gss dependent on the presence of the getnameinfo() function. This allows us to reduce some conditional compilation. Reviewed-by: Chuck Lever Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index f942238..251c7e4 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,9 @@ AC_SUBST(LIBBSD) AC_SUBST(LIBBLKID) if test "$enable_gss" = yes; then + dnl 'gss' requires getnameinfo - at least for gssd_proc.c + AC_CHECK_FUNC([getnameinfo], , [AC_MSG_ERROR([GSSAPI support requires 'getnameinfo' function])]) + dnl 'gss' also depends on nfsidmap.h - at least for svcgssd_proc.c AC_LIBNFSIDMAP -- 2.39.2