]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure.ac: tweak nghttp2 library name fix again
authorJay Satiro <raysatiro@yahoo.com>
Fri, 23 Jul 2021 21:05:05 +0000 (17:05 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 25 Jul 2021 05:29:38 +0000 (01:29 -0400)
- Change extraction to handle multiple library names returned by
  pkg-config (eg a possible scenario with pkg-config --static).

Ref: https://github.com/curl/curl/pull/7472

Closes https://github.com/curl/curl/pull/7485

configure.ac

index ec360bcc51c26cad9dd81c93f18179eab11981a2..c92ab9e22fa86c215b545561c37da4e19c15bca8 100644 (file)
@@ -2541,7 +2541,7 @@ 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 -e 's/-l//'`
+    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