summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 01bfc9003..05500b27f 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -423,3 +423,25 @@ AC_DEFUN([WITH_SUDO],
fi
AM_CONDITIONAL([BUILD_SUDO], [test x"$with_sudo" = xyes])
])
+
+AC_DEFUN([WITH_AUTOFS],
+ [ AC_ARG_WITH([autofs],
+ [AC_HELP_STRING([--with-autofs],
+ [Whether to build with autofs support [no]]
+ )
+ ],
+ [with_autofs=$withval],
+ )
+
+ dnl Remove when autofs goes out of experimental
+ if test x"$enable_all_experimental_features" = xyes; then
+ if test x"$with_autofs" != xno; then
+ with_autofs=yes
+ fi
+ fi
+
+ if test x"$with_autofs" = xyes; then
+ AC_DEFINE(BUILD_AUTOFS, 1, [whether to build with AUTOFS support])
+ fi
+ AM_CONDITIONAL([BUILD_AUTOFS], [test x"$with_autofs" = xyes])
+ ])