From: Daniel Stenberg Date: Fri, 9 Sep 2022 13:11:13 +0000 (+0200) Subject: configure: add --enable-websockets X-Git-Tag: curl-7_86_0~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a9b1d1c94b8109660dd3d52739a1ea0e600dae9;p=thirdparty%2Fcurl.git configure: add --enable-websockets --- diff --git a/configure.ac b/configure.ac index 1f299d4cd8..919370c43a 100644 --- a/configure.ac +++ b/configure.ac @@ -170,6 +170,7 @@ curl_verbose_msg="enabled (--disable-verbose)" curl_altsvc_msg="enabled (--disable-alt-svc)" curl_headers_msg="enabled (--disable-headers-api)" curl_hsts_msg="enabled (--disable-hsts)" + curl_ws_msg="no (--enable-websockets)" ssl_backends= curl_h1_msg="enabled (internal)" curl_h2_msg="no (--with-nghttp2, --with-hyper)" @@ -4180,6 +4181,31 @@ if test "x$want_ech" != "xno"; then fi fi +dnl ************************************************************* +dnl WebSockets +dnl +AC_MSG_CHECKING([whether to support WebSockets]) +AC_ARG_ENABLE(websockets, +AS_HELP_STRING([--enable-websockets],[Enable WebSockets support]) +AS_HELP_STRING([--disable-websockets],[Disable WebSockets support]), +[ case "$enableval" in + no) + AC_MSG_RESULT(no) + ;; + *) AC_MSG_RESULT(yes) + curl_ws_msg="enabled" + AC_DEFINE_UNQUOTED(USE_WEBSOCKETS, [1], [enable websockets support]) + SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS" + if test "x$SSL_ENABLED" = "x1"; then + SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS" + fi + experimental="$experimental Websockets" + ;; + esac ], + AC_MSG_RESULT(no) +) + + dnl ************************************************************ dnl hiding of library internal symbols dnl @@ -4559,6 +4585,7 @@ AC_MSG_NOTICE([Configured to build curl/libcurl: HTTP2: ${curl_h2_msg} HTTP3: ${curl_h3_msg} ECH: ${curl_ech_msg} + WebSockets: ${curl_ws_msg} Protocols: ${SUPPORT_PROTOCOLS} Features: ${SUPPORT_FEATURES} ])