1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Produce an error if --with-pam is specified but no PAM headers can be

found.
(This used to be commit dc43c2dd1b4cd02e996fe10f1684a6571b2fd3de)
This commit is contained in:
Tim Potter 2003-09-04 00:51:50 +00:00
parent a9a9d170a6
commit 7da5c6a0e7

View File

@ -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