mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:43:32 +03:00
configure: disable nghttp2 too if HTTP has been disabled
This commit is contained in:
parent
0d39e5cc95
commit
3a283968f4
1 changed files with 7 additions and 0 deletions
|
|
@ -366,6 +366,7 @@ AC_HELP_STRING([--disable-http],[Disable HTTP support]),
|
|||
no)
|
||||
AC_MSG_RESULT(no)
|
||||
AC_DEFINE(CURL_DISABLE_HTTP, 1, [to disable HTTP])
|
||||
disable_http="yes"
|
||||
AC_MSG_WARN([disable HTTP disables FTP over proxy and RTSP])
|
||||
AC_SUBST(CURL_DISABLE_HTTP, [1])
|
||||
AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP])
|
||||
|
|
@ -2953,6 +2954,12 @@ dnl Check for nghttp2
|
|||
dnl **********************************************************************
|
||||
|
||||
OPT_H2="yes"
|
||||
|
||||
if test "x$disable_http" = "xyes"; then
|
||||
# without HTTP, nghttp2 is no use
|
||||
OPT_H2="no"
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(nghttp2,
|
||||
AC_HELP_STRING([--with-nghttp2=PATH],[Enable nghttp2 usage])
|
||||
AC_HELP_STRING([--without-nghttp2],[Disable nghttp2 usage]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue