diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-01-29 19:04:12 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-04 08:27:16 -0500 |
commit | be65f065fef1d387281096ef095a2acef39ecc12 (patch) | |
tree | 748b305da6116c396d6a1e3fcc8810c21faa0575 /src | |
parent | 7312d03a87ae9713c46c275aff0102f79f5237ed (diff) | |
download | sssd-be65f065fef1d387281096ef095a2acef39ecc12.tar.gz sssd-be65f065fef1d387281096ef095a2acef39ecc12.tar.xz sssd-be65f065fef1d387281096ef095a2acef39ecc12.zip |
SUDO: introduce a new config option --with-sudo
At the time being the option is also turned on when
--enable-all-experimental-features is specified.
https://fedorahosted.org/sssd/ticket/1145
Diffstat (limited to 'src')
-rw-r--r-- | src/conf_macros.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 537b9857a..f33194444 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -401,3 +401,26 @@ AC_DEFUN([WITH_APP_LIBS], AC_SUBST(appmodpath) AC_DEFINE_UNQUOTED(APP_MODULES_PATH, "$config_appmodpath", [Path to the 3rd party modules]) ]) + +AC_DEFUN([WITH_SUDO], + [ AC_ARG_WITH([sudo], + [AC_HELP_STRING([--with-sudo], + [Whether to build with sudo support [no]] + ) + ], + [with_sudo=$withval], + [] + ) + + dnl Remove when sudo goes out of experimental + if test x"$enable_all_experimental_features" = xyes; then + if test x"$with_sudo" != xno; then + with_sudo=yes + fi + fi + + if test x"$with_sudo" = xyes; then + AC_DEFINE(BUILD_SUDO, 1, [whether to build with SUDO support]) + fi + AM_CONDITIONAL([BUILD_SUDO], [test x"$with_sudo" = xyes]) + ]) |