From 7da5c6a0e719470e234ad6597ba33c9667786ab2 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 4 Sep 2003 00:51:50 +0000 Subject: Produce an error if --with-pam is specified but no PAM headers can be found. (This used to be commit dc43c2dd1b4cd02e996fe10f1684a6571b2fd3de) --- source3/configure.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/configure.in b/source3/configure.in index b152f0b46c..50ac676bee 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2710,6 +2710,13 @@ AC_ARG_WITH(pam, [ case "$withval" in yes) AC_MSG_RESULT(yes) + if test x"$ac_cv_header_security_pam_appl_h" = x"no"; then + if test x"$ac_cv_header_security_pam_modules_h" = x"no"; then + if test x"$ac_cv_header_security__pam_macros_h" = x"no"; then + AC_MSG_ERROR(--with-pam specified but no PAM headers found) + fi + fi + fi AC_DEFINE(WITH_PAM,1,[Whether to include PAM support]) AUTHLIBS="$AUTHLIBS -lpam" with_pam_for_crypt=yes -- cgit