diff options
author | Damien Miller <djm@mindrot.org> | 2015-03-04 05:02:45 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-03-04 05:02:45 +1100 |
commit | 00797e86b2d98334d1bb808f65fa1fd47f328ff1 (patch) | |
tree | 411677c9b76978532818877bfad8893bd5bddd6e /configure.ac | |
parent | 1598419e38afbaa8aa5df8dd6b0af98301e2c908 (diff) |
check for crypt and DES_crypt in openssl block
fixes builds on systems that use DES_crypt; based on patch
from Roumen Petrov
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2ef9db6d..b4d6598d 100644 --- a/configure.ac +++ b/configure.ac @@ -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([ \ |