check for crypt and DES_crypt in openssl block

fixes builds on systems that use DES_crypt; based on patch
from Roumen Petrov
This commit is contained in:
Damien Miller 2015-03-04 05:02:45 +11:00
parent 1598419e38
commit 00797e86b2
1 changed files with 2 additions and 1 deletions

View File

@ -2572,6 +2572,7 @@ if test "x$openssl" = "xyes" ; then
if test "x$check_for_libcrypt_later" = "x1"; then
AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
fi
AC_CHECK_FUNCS([crypt DES_crypt])
# Search for SHA256 support in libc and/or OpenSSL
AC_CHECK_FUNCS([SHA256_Update EVP_sha256], ,
@ -2710,7 +2711,7 @@ if test "x$openssl" = "xyes" ; then
AC_SUBST([COMMENT_OUT_ECC])
else
AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
AC_CHECK_FUNCS([crypt DES_crypt])
AC_CHECK_FUNCS([crypt])
fi
AC_CHECK_FUNCS([ \