diff options
-rw-r--r-- | configure.ac | 14 | ||||
-rw-r--r-- | support/include/nfs/nfs.h | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1dc4249..f6b1189 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,20 @@ AC_ARG_ENABLE(nfsv4, AC_SUBST(IDMAPD) AC_SUBST(enable_nfsv4) AM_CONDITIONAL(CONFIG_NFSV4, [test "$enable_nfsv4" = "yes"]) + +AC_ARG_ENABLE(nfsv41, + [AC_HELP_STRING([--enable-nfsv41], + [enable support for NFSv41 @<:@default=no@:>@])], + enable_nfsv41=$enableval, + enable_nfsv41=no) + if test "$enable_nfsv41" = yes; then + AC_DEFINE(NFS41_SUPPORTED, 1, [Define this if you want NFSv41 support compiled in]) + else + enable_nfsv4= + fi + AC_SUBST(enable_nfsv41) + AM_CONDITIONAL(CONFIG_NFSV41, [test "$enable_nfsv41" = "yes"]) + AC_ARG_ENABLE(gss, [AC_HELP_STRING([--enable-gss], [enable support for rpcsec_gss @<:@default=yes@:>@])], diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h index a64eb0a..c939d78 100644 --- a/support/include/nfs/nfs.h +++ b/support/include/nfs/nfs.h @@ -1,6 +1,8 @@ #ifndef _NFS_NFS_H #define _NFS_NFS_H +#include <config.h> + #include <linux/posix_types.h> #include <sys/types.h> #include <netinet/in.h> @@ -14,7 +16,11 @@ #define NFSD_MAXVERS 4 #define NFSD_MINMINORVERS4 1 +#ifdef NFS41_SUPPORTED #define NFSD_MAXMINORVERS4 1 +#else +#define NFSD_MAXMINORVERS4 0 +#endif struct nfs_fh_len { int fh_size; |