]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfs-utils: make getnameinfo() required for --enable-gss
authorJeff Layton <jlayton@redhat.com>
Wed, 15 Apr 2009 14:29:04 +0000 (10:29 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 15 Apr 2009 14:29:04 +0000 (10:29 -0400)
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 <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
configure.ac

index f942238a6092d83dfa0a0b2746f6d685dcbf9561..251c7e48b8e3f311ecbe71e058e27595bfd691a8 100644 (file)
@@ -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