diff options
author | Gerald Carter <jerry@samba.org> | 2001-08-07 19:34:38 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-08-07 19:34:38 +0000 |
commit | a7bf5e2ab84e21198a22e893e8640710a9ba2f7b (patch) | |
tree | e293f43fad49cbe2f3e9d2eefa82b0b2c3828133 /source/configure.in | |
parent | e4a295b730b3d1ee784c896611d184c7699c74e7 (diff) | |
download | samba-a7bf5e2ab84e21198a22e893e8640710a9ba2f7b.tar.gz samba-a7bf5e2ab84e21198a22e893e8640710a9ba2f7b.tar.xz samba-a7bf5e2ab84e21198a22e893e8640710a9ba2f7b.zip |
merge from 2.2
Diffstat (limited to 'source/configure.in')
-rw-r--r-- | source/configure.in | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/source/configure.in b/source/configure.in index 12148d40780..8cc8b5d4cdb 100644 --- a/source/configure.in +++ b/source/configure.in @@ -1472,13 +1472,6 @@ exit(1); fi fi -AC_CACHE_CHECK([for a crypt that needs truncated salt],samba_cv_HAVE_TRUNCATED_SALT,[ -AC_TRY_RUN([#include "${srcdir-.}/tests/crypttest.c"], - samba_cv_HAVE_TRUNCATED_SALT=no,samba_cv_HAVE_TRUNCATED_SALT=yes,samba_cv_HAVE_TRUNCATED_SALT=cross)]) -if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then - AC_DEFINE(HAVE_TRUNCATED_SALT) -fi - AC_CACHE_CHECK([for broken nisplus include files],samba_cv_BROKEN_NISPLUS_INCLUDE_FILES,[ AC_TRY_COMPILE([#include <sys/acl.h> #if defined(HAVE_RPCSVC_NIS_H) @@ -1650,7 +1643,7 @@ AC_ARG_WITH(smbmount, ################################################# # check for a PAM password database - +with_pam_for_crypt=no AC_MSG_CHECKING(whether to use PAM password database) AC_ARG_WITH(pam, [ --with-pam Include PAM password database support @@ -1660,6 +1653,7 @@ AC_ARG_WITH(pam, AC_MSG_RESULT(yes) AC_DEFINE(WITH_PAM) LIBS="$LIBS -lpam" + with_pam_for_crypt=yes ;; *) AC_MSG_RESULT(no) @@ -1705,7 +1699,7 @@ AC_ARG_WITH(pam_smbpass, ############################################### # test for where we get crypt() from, but only # if not using PAM -if test "$with_pam" != yes; then +if test $with_pam_for_crypt = no; then AC_CHECK_FUNCS(crypt) if test x"$ac_cv_func_crypt" = x"no"; then AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt"; @@ -1713,6 +1707,21 @@ if test x"$ac_cv_func_crypt" = x"no"; then fi fi +## +## moved after the check for -lcrypt in order to +## ensure that the necessary libraries are included +## check checking for truncated salt. Wrapped by the +## $with_pam_for_crypt variable as above --jerry +## +if test $with_pam_for_crypt = no; then +AC_CACHE_CHECK([for a crypt that needs truncated salt],samba_cv_HAVE_TRUNCATED_SALT,[ +AC_TRY_RUN([#include "${srcdir-.}/tests/crypttest.c"], + samba_cv_HAVE_TRUNCATED_SALT=no,samba_cv_HAVE_TRUNCATED_SALT=yes,samba_cv_HAVE_TRUNCATED_SALT=cross)]) +if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then + AC_DEFINE(HAVE_TRUNCATED_SALT) +fi +fi + ################################################# # check for a TDB password database |