]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure/cmake: set asyn-rr a feature only if httpsrr is enabled
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 Feb 2025 12:52:46 +0000 (13:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Feb 2025 10:42:17 +0000 (11:42 +0100)
Closes #16183

CMakeLists.txt
configure.ac

index 3c634cdd6a824ea9d7dff843bfee901aa96a3167..4cd8d6a635dc4ebec8258d52ab2fb567a2a5815d 100644 (file)
@@ -2122,7 +2122,7 @@ curl_add_if("brotli"        HAVE_BROTLI)
 curl_add_if("gsasl"         USE_GSASL)
 curl_add_if("zstd"          HAVE_ZSTD)
 curl_add_if("AsynchDNS"     USE_ARES OR USE_THREADS_POSIX OR USE_THREADS_WIN32)
-curl_add_if("asyn-rr"       USE_ARES AND ENABLE_THREADED_RESOLVER)
+curl_add_if("asyn-rr"       USE_ARES AND ENABLE_THREADED_RESOLVER AND USE_HTTPSRR)
 curl_add_if("IDN"           (HAVE_LIBIDN2 AND HAVE_IDN2_H) OR
                             USE_WIN32_IDN OR
                             USE_APPLE_IDN)
index ced717252f7c9a2f03dec4a88584542710e3e049..d492f9e9415cb9e57dc4009ee7c9ca01124c003f 100644 (file)
@@ -5017,7 +5017,7 @@ if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
                             -o "x$USE_THREADS_WIN32" = "x1"; then
   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
 fi
-if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes"; then
+if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes" -a "x$want_httpsrr" != "xno"; then
   SUPPORT_FEATURES="$SUPPORT_FEATURES asyn-rr"
 fi
 if test "x$IDN_ENABLED" = "x1"; then