diff --git a/configure.ac b/configure.ac index c92ab9e22f..3d8c0d1d35 100644 --- a/configure.ac +++ b/configure.ac @@ -2541,11 +2541,10 @@ 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 -ne 's/.*-l *\(nghttp2[^ ]*\).*/\1/p'` # use nghttp2_session_set_local_window_size to require nghttp2 # >= 1.12.0 - AC_CHECK_LIB($LIB_H2_NAME, nghttp2_session_set_local_window_size, + AC_CHECK_LIB(nghttp2, nghttp2_session_set_local_window_size, [ AC_CHECK_HEADERS(nghttp2/nghttp2.h, curl_h2_msg="enabled (nghttp2)"