configure: do not link with nghttp3 unless necessary

Fixes #12833
Closes #12864
Reported-by: Ryan Carsten Schmidt
This commit is contained in:
Stefan Eissing 2024-02-05 17:02:21 +01:00 committed by Daniel Stenberg
parent a982d19ab9
commit 577182a6df
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -3124,9 +3124,10 @@ dnl **********************************************************************
OPT_NGHTTP3="yes"
if test "x$USE_NGTCP2" = "x" -a "$USE_OPENSSL_QUIC" = "x"; then
if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then
# without ngtcp2 or openssl quic, nghttp3 is of no use for us
OPT_NGHTTP3="no"
want_nghttp3="no"
fi
AC_ARG_WITH(nghttp3,