]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: limit `__builtin_available` test to Darwin
authorViktor Szakats <commit@vsz.me>
Sun, 14 Jul 2024 19:49:35 +0000 (21:49 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 29 Jul 2024 19:39:17 +0000 (21:39 +0200)
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

configure.ac

index fb7e178a793bcc18f87c45d7764683f84a634077..1e18b8156e3ae613e0b20aa5da1f30da647c0c55 100644 (file)
@@ -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}"])