autotools: detect wolfSSL_set_quic_use_legacy_code like cmake does

Cherry-picked from #17082

Closes #17172
This commit is contained in:
Viktor Szakats 2025-04-17 16:27:53 +02:00
parent 4bfc379b90
commit 4a15cfc99f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 4 additions and 1 deletions

View file

@ -76,6 +76,7 @@ my %remove = (
'#define HAVE_SYS_XATTR_H 1' => 1,
'#define HAVE_UNICODE_UIDNA_H 1' => 1,
'#define HAVE_WOLFSSH_SSH_H 1' => 1,
'#define HAVE_WOLFSSL_SET_QUIC_USE_LEGACY_CODEPOINT 1' => 1,
'#define HAVE_ZSTD 1' => 1,
'#define HAVE_ZSTD_H 1' => 1,
'#define LT_OBJDIR ".libs/"' => 1,

View file

@ -108,7 +108,6 @@ if test "x$OPT_WOLFSSL" != xno; then
WOLFSSL_ENABLED=1
USE_WOLFSSL="yes"
ssl_msg="wolfSSL"
QUIC_ENABLED=yes
test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
],
[
@ -130,6 +129,9 @@ if test "x$OPT_WOLFSSL" != xno; then
LIBS="$addlib -lm $LIBS"
dnl is this wolfSSL providing the original QUIC API?
AC_CHECK_FUNCS([wolfSSL_set_quic_use_legacy_codepoint], [QUIC_ENABLED=yes])
dnl wolfSSL needs configure --enable-opensslextra to have *get_peer*
dnl DES* is needed for NTLM support and lives in the OpenSSL compatibility
dnl layer