From: Viktor Szakats Date: Sun, 14 Jul 2024 19:49:35 +0000 (+0200) Subject: configure: limit `__builtin_available` test to Darwin X-Git-Tag: curl-8_9_1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c879554b7db4f2daf36bfccdc31ff66d8ac775da;p=thirdparty%2Fcurl.git configure: limit `__builtin_available` test to Darwin This feature test always fails on non-Apple systems. (For Apple targets it's supported by llvm and Apple clang.) Syncs behaviour with CMake. Follow-up to cfd6f43d6ca7e57670b422bab7bbf10221a2cf3e #14127 Cherry-picked from #14097 Closes #14196 --- diff --git a/configure.ac b/configure.ac index fb7e178a79..1e18b8156e 100644 --- a/configure.ac +++ b/configure.ac @@ -597,7 +597,11 @@ CURL_CHECK_WIN32_LARGEFILE CURL_CHECK_WIN32_CRYPTO CURL_DARWIN_CFLAGS -CURL_SUPPORTS_BUILTIN_AVAILABLE +case $host_os in + darwin*) + CURL_SUPPORTS_BUILTIN_AVAILABLE + ;; +esac AM_CONDITIONAL([HAVE_WINDRES], [test "$curl_cv_native_windows" = "yes" && test -n "${RC}"])