summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-25 13:52:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-25 13:52:46 +0100
commit6cb86a22fcd5ee43aa6840b3a9664d7576e99c87 (patch)
tree38293b336a1cc4ccfacfc95eea59c1af2895d5f9
parente4b7eaa048cede222c2fd97591d5b8f8b1ef7257 (diff)
downloadcurl-bagder/openssl3-deprecations.tar.gz
fixup configure use -DOPENSSL_SUPPRESS_DEPRECATED insteadbagder/openssl3-deprecations
-rwxr-xr-xconfigure.ac10
1 files changed, 3 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index cfea58d18..31fc8ffb7 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1891,13 +1891,9 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
[Define to 1 if using OpenSSL 3 or later.])
dnl OpenSSLv3 marks the DES functions deprecated but we have no
dnl replacements (yet) so tell the compiler to not warn for them
- case "$compiler_id" in
- CLANG | GNU_C)
- CFLAGS="$CFLAGS -Wno-deprecated-declarations"
- ;;
- *)
- ;;
- esac
+ dnl
+ dnl Ask OpenSSL to suppress the warnings.
+ CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
ssl_msg="OpenSSL v3+"
],[
AC_MSG_RESULT([no])