# Check if cURL has support for WebSockets
AC_CHECK_PROG(CURL_CONFIG, curl-config, curl-config)
if test "$CURL_CONFIG" != ""; then
- # Check curl version
- CURL_VERSION=$($CURL_CONFIG --version)
-
# Check for WebSocket support
AC_MSG_CHECKING([for curl WebSocket support])
- CURL_FEATURES=$($CURL_CONFIG --features)
+ CURL_PROTOCOLS=$($CURL_CONFIG --protocols)
- if echo "$CURL_FEATURES" | grep -q "websockets"; then
+ if echo "$CURL_PROTOCOLS" | grep -qw "WSS"; then
AC_MSG_RESULT([yes])
CURL_HAS_WEBSOCKETS=yes
else