aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-29 21:44:10 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-03-01 15:10:25 +0000
commitcdcc9df182727b744b1baf686685a2ac41d0f36d (patch)
tree4eec3ab45aef408d61e51a859160492250f4652b /configure.ac
parentc770609238fa9b2eb5da0f063efdf987b7c3b7cf (diff)
configure.ac: Disable metalink support if an incompatible SSL/TLS specified
tool_metalink only supports cryptography from OpenSSL, GnuTLS, NSS, The Win32 Crypto library and Apple's Common Crypto library. If an TLS backend such as mbedTLS or WolfSSL is specified then the following error is given during compilation along, with a load of unresolved extern errors: Can't compile METALINK support without a crypto library. Reviewed-by: Daniel Stenberg Closes #5006
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bde7d8853..6feab9284 100755
--- a/configure.ac
+++ b/configure.ac
@@ -2770,6 +2770,12 @@ if test X"$OPT_LIBMETALINK" != Xno; then
AC_MSG_NOTICE([libmetalink library defective or too old])
want_metalink="no"
])
+ if test "x$OPENSSL_ENABLED" != "x1" -a "x$USE_WINDOWS_SSPI" != "x1" \
+ -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1" \
+ -a "x$NSS_ENABLED" != "x1" -a "x$SECURETRANSPORT_ENABLED" != "x1"; then
+ AC_MSG_WARN([metalink support requires a compatible SSL/TLS backend])
+ want_metalink="no"
+ fi
CPPFLAGS="$clean_CPPFLAGS"
LDFLAGS="$clean_LDFLAGS"
LIBS="$clean_LIBS"