From: Karel Zak Date: Mon, 15 Aug 2011 10:45:20 +0000 (+0200) Subject: build-sys: require PAM for login-utils X-Git-Tag: v2.21-rc1~320 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c94b3604f794c3e3794f055e43dd47526dffa9d7;p=thirdparty%2Futil-linux.git build-sys: require PAM for login-utils Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 88aced94fe..66d0794f57 100644 --- a/configure.ac +++ b/configure.ac @@ -1099,19 +1099,12 @@ AC_ARG_ENABLE([login-utils], ) AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$enable_login_utils" = xyes) -AC_ARG_WITH([pam], - [AS_HELP_STRING([--without-pam], [compile login-utils without PAM support])]) - -AM_CONDITIONAL(HAVE_PAM, false) -if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then - AC_CHECK_HEADERS([security/pam_misc.h], - [AM_CONDITIONAL(HAVE_PAM, true)], - [if test "x$with_pam" = xyes; then - AC_MSG_ERROR([PAM selected but security/pam_misc.h not found]) - fi - ]) +if test "x$enable_login_utils" = xyes; then + AC_CHECK_HEADERS([security/pam_misc.h], [], + [AC_MSG_ERROR([login-utils enabled, but security/pam_misc.h not found])]) fi + AC_ARG_WITH([selinux], AS_HELP_STRING([--with-selinux], [compile with SELinux support]), [], with_selinux=no