@@ -2134,8 +2134,7 @@ case "$host" in
21342134 ;;
21352135 *-*-isc*)
21362136 AX_APPEND_FLAG ( [ -D_ISC] , [ CPPFLAGS] )
2137- LIB_CRYPT=1
2138- SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
2137+ ac_cv_search_crypt="-lcrypt"
21392138
21402139 shadow_funcs="getspnam"
21412140 shadow_libs="-lsec"
@@ -4009,12 +4008,14 @@ if test ${with_passwd-'no'} != "no"; then
40094008 dnl
40104009 dnl if crypt(3) not in libc, look elsewhere
40114010 dnl
4012- if test -z "$LIB_CRYPT"; then
4013- _LIBS="$LIBS"
4014- AC_SEARCH_LIBS ( [ crypt] , [ crypt crypt_d ufc] , [
4015- test "${ac_cv_search_crypt}" != "none required" && shadow_libs="${shadow_libs} ${ac_cv_search_crypt}"
4016- ] )
4017- LIBS="$_LIBS"
4011+ _LIBS="$LIBS"
4012+ AC_SEARCH_LIBS ( [ crypt] , [ crypt crypt_d ufc] , [
4013+ test "${ac_cv_search_crypt}" != "none required" && shadow_libs="${shadow_libs} ${ac_cv_search_crypt}"
4014+ AC_DEFINE ( HAVE_CRYPT )
4015+ ] )
4016+ LIBS="$_LIBS"
4017+ if test test "${ac_cv_search_crypt}" = "no"; then
4018+ AC_MSG_WARN ( [ No crypt function found, assuming plaintext passwords] )
40184019 fi
40194020
40204021 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
@@ -4858,6 +4859,7 @@ AH_TEMPLATE(HAVE_AFS, [Define to 1 if you use AFS.])
48584859AH_TEMPLATE ( HAVE_AIXAUTH , [ Define to 1 if you use AIX general authentication.] )
48594860AH_TEMPLATE ( HAVE_BSD_AUTH_H , [ Define to 1 if you use BSD authentication.] )
48604861AH_TEMPLATE ( HAVE_BSM_AUDIT , [ Define to 1 to enable BSM audit support.] )
4862+ AH_TEMPLATE ( HAVE_CRYPT , [ Define to 1 if you have the `crypt' function.] )
48614863AH_TEMPLATE ( HAVE_DCE , [ Define to 1 if you use OSF DCE.] )
48624864AH_TEMPLATE ( HAVE_DD_FD , [ Define to 1 if your `DIR' contains dd_fd.] )
48634865AH_TEMPLATE ( HAVE_DIRFD , [ Define to 1 if you have the `dirfd' function or macro.] )
0 commit comments