From deef0ba55e45e275e4f23bdf93fcd24c0750d8ae Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 8 Feb 2007 15:19:36 +0100 Subject: [PATCH] build-sys: configure.am selinux support cleanup Changes: - don't include SELinux as default (--with-selinux is required) - the SELinux is not useful for login-utils only - clean up PAM and login-utils tests in the configure.am Signed-off-by: Karel Zak --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index dd7da82c..ccd05b36 100644 --- a/configure.ac +++ b/configure.ac @@ -277,7 +277,7 @@ AM_CONDITIONAL(BUILD_LOGIN_UTILS, test x$enable_login_utils = xyes) AC_ARG_WITH([pam], AC_HELP_STRING([--without-pam], [compile login-utils without PAM support]), - with_pam=$withval, with_pam=not_checked + with_pam=$withval, with_pam=yes ) if test x$enable_login_utils = xyes && test x$with_pam != xno; then @@ -289,11 +289,11 @@ fi AM_CONDITIONAL(HAVE_PAM, test x$ac_cv_header_security_pam_misc_h = xyes) AC_ARG_WITH([selinux], - AC_HELP_STRING([--without-selinux], [compile login-utils without SELinux support]), - with_selinux=$withval, with_selinux=not_checked + AC_HELP_STRING([--with-selinux], [compile with SELinux support]), + with_selinux=$withval, with_selinux=no ) -if test x$enable_login_utils = xyes && test x$with_selinux != xno; then +if test x$with_selinux != xno; then AC_CHECK_LIB(selinux, getprevcon) if test x$with_selinux = xyes && test x$ac_cv_lib_selinux_getprevcon = xno; then AC_MSG_ERROR([SELinux selected but libselinux not found]) -- 2.39.5