summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-02 00:59:13 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-05 19:16:16 -0500
commitf36078af138f052cd9a30360867b0ebd0805af5e (patch)
tree7ad0a67db59ff6e28f3850eac4e68b496e2ba689
parent5f5a6990e027cb822bced67b662296b9d9a8b618 (diff)
downloadsssd-f36078af138f052cd9a30360867b0ebd0805af5e.tar.gz
sssd-f36078af138f052cd9a30360867b0ebd0805af5e.tar.bz2
sssd-f36078af138f052cd9a30360867b0ebd0805af5e.zip
BUILD: Introduce a --with-autofs config option
This would allow to select the autofs feature during build without having to select the other features.
-rw-r--r--configure.ac1
-rw-r--r--src/conf_macros.m422
2 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 65136e1c..c465c56c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,7 @@ WITH_LIBNL
WITH_NOLOGIN_SHELL
WITH_APP_LIBS
WITH_SUDO
+WITH_AUTOFS
m4_include([src/external/pkg.m4])
m4_include([src/external/libpopt.m4])
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 01bfc900..05500b27 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])
+ ])