- Support both nghttp2.lib and nghttp2_static.lib for static nghttp2.
nghttp2 briefly changed its static lib name to nghttp2_static, but then
made the _static suffix optional.
Ref: https://github.com/nghttp2/nghttp2/pull/1394
Ref: https://github.com/nghttp2/nghttp2/pull/1418
Ref: https://github.com/nghttp2/nghttp2/issues/1466
Reported-by: Pierre Yager
Fixes https://github.com/curl/curl/issues/7446
Closes https://github.com/curl/curl/pull/7447
NGHTTP2_LIBS = nghttp2.lib\r
!ELSEIF "$(WITH_NGHTTP2)"=="static"\r
NGHTTP2_CFLAGS = /DUSE_NGHTTP2 /DNGHTTP2_STATICLIB /I"$(NGHTTP2_INC_DIR)"\r
+!IF EXISTS("$(NGHTTP2_LIB_DIR)\nghttp2_static.lib")\r
NGHTTP2_LIBS = nghttp2_static.lib\r
+!ELSE\r
+NGHTTP2_LIBS = nghttp2.lib\r
+!ENDIF\r
!ENDIF\r
\r
\r