diff options
author | Hans Nilsson <hans@erlang.org> | 2021-10-21 10:53:17 +0200 |
---|---|---|
committer | Hans Nilsson <hans@erlang.org> | 2021-10-21 10:53:53 +0200 |
commit | 5afd3560bb58de611b10629769721a0b0803b7b1 (patch) | |
tree | 9450bc0496e6dfe98a87f6f62c655906206db51a /lib/crypto | |
parent | 4ccdfee172f11dd9a393fcce21286d68645c2681 (diff) | |
download | erlang-5afd3560bb58de611b10629769721a0b0803b7b1.tar.gz |
crypto: Make a '--disable-deprecated-warnings' flag for crypto/configure
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/crypto/configure.in b/lib/crypto/configure.in index 0639a9f330..fd337b3d34 100644 --- a/lib/crypto/configure.in +++ b/lib/crypto/configure.in @@ -156,6 +156,14 @@ AS_HELP_STRING([--disable-evp-hmac], *) DISABLE_EVP_HMAC=0;; esac ], DISABLE_EVP_HMAC=0) +AC_ARG_ENABLE(deprecated_warnings, +AS_HELP_STRING([--disable-deprecated-warnings], + [disable warnings for deprecated functions in cryptolib (default is to warn, except for OpenSSL 3.x where the default is not to warn)]), +[ case "$enableval" in + no) deprecated_warnings=no;; + *) deprecated_warnings=yes;; + esac ], deprecated_warnings=default_yes) + AC_DEFUN([ERL_LINK_CRYPTO_IFELSE], [ test_cflags=$1 test_ldflags=$2 @@ -799,7 +807,11 @@ else SSL_FLAGS= fi -if test "x$v3_include" = "xyes" && test "$CRYPTO_APP" != ""; then +if test "x$v3_include" = "xyes" && test "x$deprecated_warnings" = "xdefault_yes" && test "$CRYPTO_APP" != ""; then + deprecated_warnings=no +fi + +if test "x$deprecated_warnings" = "xno" && test "$CRYPTO_APP" != "" ; then SSL_FLAGS="$SSL_FLAGS -Wno-deprecated-declarations" fi |