From: Yann Ylavic Date: Wed, 15 Feb 2023 11:43:44 +0000 (+0000) Subject: configure: Assume crypt() does not support SHA-2 when cross-compiling. X-Git-Tag: 2.5.0-alpha2-ci-test-only~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05b4010efc52fb90149be01a5cfc321aba273425;p=thirdparty%2Fapache%2Fhttpd.git configure: Assume crypt() does not support SHA-2 when cross-compiling. Can be forced with "./configure ap_cv_crypt_sha2=yes ..." still. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907672 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 4989ec34044..daaae7d2004 100644 --- a/configure.in +++ b/configure.in @@ -519,7 +519,7 @@ if test "$ac_cv_search_crypt" != "no"; then ]], [char *result = crypt(PASSWD_0, SALT_0); if (!result) return 1; if (strcmp(result, EXPECT_0)) return 2; -])], [ap_cv_crypt_sha2=yes], [ap_cv_crypt_sha2=no])]) +])], [ap_cv_crypt_sha2=yes], [ap_cv_crypt_sha2=no], [ap_cv_crypt_sha2=no])]) if test "$ap_cv_crypt_sha2" = yes; then AC_DEFINE([HAVE_CRYPT_SHA2], 1, [Define if crypt() supports SHA-2 hashes]) fi