]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure.ac: revert bad nghttp2 library detection improvements
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jul 2021 21:27:30 +0000 (23:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 8 Aug 2021 20:57:29 +0000 (22:57 +0200)
This reverts commit b4b34db65f9f8673753344c5f and 29c7cf79e8b.

The logic is now back to assuming that the nghttp2 lib is called nghttp2 and
nothing else.

Reported-by: Rui Pinheiro
Reported-by: Alex Crichton
Fixes #7514
Closes #7515

configure.ac

index c92ab9e22fa86c215b545561c37da4e19c15bca8..3d8c0d1d35d78247a78be0e7e0d62fbbab865968 100644 (file)
@@ -2541,11 +2541,10 @@ if test X"$want_h2" != Xno; then
     LDFLAGS="$LDFLAGS $LD_H2"
     CPPFLAGS="$CPPFLAGS $CPP_H2"
     LIBS="$LIB_H2 $LIBS"
-    LIB_H2_NAME=`echo $LIB_H2 | $SED -ne 's/.*-l *\(nghttp2[^ ]*\).*/\1/p'`
 
     # use nghttp2_session_set_local_window_size to require nghttp2
     # >= 1.12.0
-    AC_CHECK_LIB($LIB_H2_NAME, nghttp2_session_set_local_window_size,
+    AC_CHECK_LIB(nghttp2, nghttp2_session_set_local_window_size,
       [
        AC_CHECK_HEADERS(nghttp2/nghttp2.h,
           curl_h2_msg="enabled (nghttp2)"