diff options
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r-- | src/conf_macros.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 3c9827b4d..8f8479459 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -691,3 +691,33 @@ AC_ARG_ENABLE([dbus-tests], [build_dbus_tests=$enableval], [build_dbus_tests=yes]) AM_CONDITIONAL([BUILD_DBUS_TESTS], [test x$build_dbus_tests = xyes]) + +AC_DEFUN([WITH_NFS], + [ AC_ARG_WITH([nfs_idmap], + [AC_HELP_STRING([--with-nfsv4-idmapd-plugin], + [Whether to build with NFSv4 IDMAP support [yes]] + ) + ], + [with_nfs_idmap=$withval], + with_nfs_idmap=yes + ) + + if test x"$with_nfs_idmap" = xyes; then + AC_DEFINE(BUILD_NFS_IDMAP, 1, [whether to build with NFSv4 IDMAP support]) + fi + AM_CONDITIONAL([BUILD_NFS_IDMAP], [test x"$with_nfs_idmap" = xyes]) + ]) + +AC_DEFUN([WITH_NFS_LIB_PATH], + [ AC_ARG_WITH([nfs-lib-path], + [AC_HELP_STRING([--with-nfs-lib-path=<path>], + [Path to the nfs library [${libdir}]] + ) + ] + ) + nfslibpath="${libdir}" + if test x"$with_nfs_lib_path" != x; then + nfslibpath=$with_nfs_lib_path + fi + AC_SUBST(nfslibpath) + ]) |