summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2021-07-23 17:05:05 -0400
committerJay Satiro <raysatiro@yahoo.com>2021-07-25 01:29:38 -0400
commitb4b34db65f9f877384b00b9c20931bed5be1ff44 (patch)
tree73f369b2c849e93ea6563d89e769ec4e675562e4 /configure.ac
parent83245d9ff352b742753cff1216781ff041e4e987 (diff)
downloadcurl-b4b34db65f9f877384b00b9c20931bed5be1ff44.tar.gz
configure.ac: tweak nghttp2 library name fix again
- 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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ec360bcc5..c92ab9e22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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