]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: check for nghttp2_session_get_stream_local_window_size
authorDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jul 2023 13:48:05 +0000 (15:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jul 2023 19:05:26 +0000 (21:05 +0200)
The http2 code uses it now. Introduced in nghttp2 1.15.0 (Sep 2016)

Fixes #11470
Reported-by: Paul Howarth
Closes #11473

configure.ac
docs/INTERNALS.md

index f93a3deaac78babc30ec30c7e88703ca0e5de599..71b9f5bf75f7c525c4ac0cbc40d3d008a21e06cb 100644 (file)
@@ -2835,9 +2835,9 @@ if test X"$want_nghttp2" != Xno; then
   CPPFLAGS="$CPPFLAGS $CPP_H2"
   LIBS="$LIB_H2 $LIBS"
 
-  # use nghttp2_session_set_local_window_size to require nghttp2
-  # >= 1.12.0
-  AC_CHECK_LIB(nghttp2, nghttp2_session_set_local_window_size,
+  # use nghttp2_session_get_stream_local_window_size to require nghttp2
+  # >= 1.15.0
+  AC_CHECK_LIB(nghttp2, nghttp2_session_get_stream_local_window_size,
     [
      AC_CHECK_HEADERS(nghttp2/nghttp2.h,
         curl_h2_msg="enabled (nghttp2)"
index 0737044a7148bbd7ae81ec2003801225fa63ea10..cd8cc8fe28f4e3b5090bab8d3ff87f7f7a542798 100644 (file)
@@ -30,7 +30,7 @@ versions of libs and build tools.
  - GSKit        V5R3M0
  - NSS          3.14.x
  - Heimdal      ?
- - nghttp2      1.12.0
+ - nghttp2      1.15.0
  - WinSock      2.2 (on Windows 95+ and Windows CE .NET 4.1+)
 
 ## Build tools