configure: without pkg-config and no custom path, use -lnghttp2

Reported-by: correctmost on github
Fixes #11186
Closes #11210
This commit is contained in:
Daniel Stenberg 2023-05-26 10:03:51 +02:00
parent 64dedb45b5
commit 814d3ffe74
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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"