]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: require a QUIC library if nghttp3 is used
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Jun 2024 08:27:08 +0000 (10:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Jun 2024 11:14:11 +0000 (13:14 +0200)
Instead of just silently disabling HTTP/3.

Reported-by: Matt Jolly
Fixes #13995
Closes #13999

configure.ac

index d844bbdfac6c192780261fb0c8e60aabd07de1e0..a766caf0f0e4af1c51a459ad146a798ab165c122 100644 (file)
@@ -3231,6 +3231,11 @@ esac
 curl_http3_msg="no      (--with-nghttp3)"
 if test X"$want_nghttp3" != Xno; 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
+    AC_MSG_ERROR([nghttp3 enabled without a QUIC library; enable ngtcp2 or OpenSSL-QUIC])
+  fi
+
   dnl backup the pre-nghttp3 variables
   CLEANLDFLAGS="$LDFLAGS"
   CLEANCPPFLAGS="$CPPFLAGS"