From c7accf6a720d9df0e4cddeeea5ebc53cc382e101 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 4 Sep 2003 02:23:43 +0000 Subject: Produce an error if --with-pam_smbpass is specified and we can't find libpam or security/pam_appl.h Also change the warnings when we can't do --with-pam_smbpass when is was requested to errors. (This used to be commit fe3fb58623c27472d54722b780af43c3e272abaf) --- source3/configure.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index 50ac676bee..92fdfc10cd 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2740,13 +2740,16 @@ AC_ARG_WITH(pam_smbpass, yes) AC_MSG_RESULT(yes) -# Conditions under which pam_smbpass should not be built. + # Conditions under which pam_smbpass should not be built. if test x$PICFLAG = x; then - AC_MSG_RESULT([No support for PIC code - disabling pam_smbpass]) + AC_MSG_ERROR([No support for PIC code]) + elif test x"$ac_cv_header_security_pam_appl_h" = x"no"; then + AC_MSG_ERROR([No security/pam_appl.h found]) elif test x$ac_cv_lib_pam_pam_get_data = xno; then - AC_MSG_RESULT([No libpam found -- disabling pam_smbpass]) + AC_MSG_ERROR([No libpam found]) else + AUTHLIBS="$AUTHLIBS -lpam" SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.$SHLIBEXT" fi ;; @@ -4110,6 +4113,7 @@ fi if test x"$with_ldap_support" != x"no"; then AC_MSG_RESULT([ LDAP_LIBS = $LDAP_LIBS]) fi +AC_MSG_RESULT([ AUTHLIBS = $AUTHLIBS]) ################################################# # final configure stuff -- cgit