]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: without pkg-config and no custom path, use -lnghttp2
authorDaniel Stenberg <daniel@haxx.se>
Fri, 26 May 2023 08:03:51 +0000 (10:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 28 May 2023 08:23:45 +0000 (10:23 +0200)
Reported-by: correctmost on github
Fixes #11186
Closes #11210

configure.ac

index 0f316d0bb87872d72be943f0490ce51a59c2ce72..b358f9a1fa4af21fc772d39dea37b3f3dbb2fea7 100644 (file)
@@ -2819,6 +2819,8 @@ if test X"$want_nghttp2" != Xno; then
     dnl no nghttp2 pkg-config found and no custom directory specified,
     dnl deal with it
     AC_MSG_ERROR([--with-nghttp2 was specified but could not find libnghttp2 pkg-config file.])
+  else
+    LIB_H2="-lnghttp2"
   fi
 
   LDFLAGS="$LDFLAGS $LD_H2"