]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - configure.ac
Avoid DNS reverse resolution for server names (take 3)
[nfs-utils.git] / configure.ac
index cc7f3b4b4933c218d2e4cab7369ba5c1afc4e4d7..a594a7b53952359159d9e97878bf18d1d1fdb9c2 100644 (file)
@@ -274,9 +274,14 @@ if test "$enable_nfsv4" = yes; then
        AC_CHECK_HEADERS([libgen.h sys/inotify.h], ,
                AC_MSG_ERROR([Cannot find header needed for nfsdcltrack]))
 
-       if test "$libsqlite3_cv_is_recent" != "yes" ; then
-               AC_MSG_ERROR([nfsdcltrack requires sqlite-devel])
-       fi
+    case $libsqlite3_cv_is_recent in
+    yes) ;;
+    unknown)
+      dnl do not fail when cross-compiling
+      AC_MSG_WARN([assuming sqlite is at least v3.3]) ;;
+    *)
+      AC_MSG_ERROR([nfsdcltrack requires sqlite-devel]) ;;
+    esac
   fi
 
 else
@@ -344,6 +349,15 @@ if test "$enable_gss" = yes; then
   dnl but we need to make sure we get the right version
   if test "$enable_gss" = yes; then
     AC_RPCSEC_VERSION
+    if test x"$GSSGLUE_LIBS" != x""; then
+      GSSAPI_CFLAGS=$GSSGLUE_CFLAGS
+      GSSAPI_LIBS=$GSSGLUE_LIBS
+    else
+      GSSAPI_CFLAGS=$GSSKRB_CFLAGS
+      GSSAPI_LIBS=$GSSKRB_LIBS
+    fi
+    AC_SUBST([GSSAPI_CFLAGS])
+    AC_SUBST([GSSAPI_LIBS])
   fi
 fi