curl/m4
Viktor Szakats e1f6192939
configure: fix SystemConfiguration detection
Before this patch, `SystemConfiguration` detection failed due to this
error when compiling the detection snippet:
```
/Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/TargetConditionals.h:140:50: error: missing binary operator before token "("
  140 | #if !defined(__has_extension) || !__has_extension(define_target_os_macros)
      |                                                  ^
```
Ref: https://github.com/curl/curl/actions/runs/9821817534/job/27117929218#step:6:1079

It occured with gcc-11 when combined with macOS SDK 14.4 and 14.5
(default SDKs in Xcode 15.3 and 15.4 respectively). It did not happen
with earlier releases.

Despite the failure in `./configure`, `lib/macos.c` compiled with
Apple's `TargetConditionals.h` just fine.

Turns out that including the `sys/types.h` header before the SDK
header fixes the error and makes the detection snippet compile.

Cherry-picked from #14097
Closes #14130
2024-07-10 11:30:40 +02:00
..
.gitignore
curl-amissl.m4 tidy-up: use OPENSSL_VERSION_NUMBER 2023-11-08 17:55:22 +00:00
curl-bearssl.m4 tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
curl-compilers.m4 build: sync warning options between autotools, cmake & compilers 2024-07-10 11:30:40 +02:00
curl-confopts.m4 configure: use AC_MSG_WARN for TLS/experimental warning texts 2024-06-13 17:17:15 +02:00
curl-functions.m4 configure: sort feature list, lowercase protocols, use backticks 2024-07-09 04:13:04 +02:00
curl-gnutls.m4 libcurl.pc: add Requires.private, Requires for static linking 2024-06-13 11:17:33 +02:00
curl-mbedtls.m4 libcurl.pc: add Requires.private, Requires for static linking 2024-06-13 11:17:33 +02:00
curl-openssl.m4 quic: require at least OpenSSL 3.3 for QUIC 2024-06-26 13:21:52 +02:00
curl-override.m4
curl-reentrant.m4
curl-rustls.m4 libcurl.pc: add Requires.private, Requires for static linking 2024-06-13 11:17:33 +02:00
curl-schannel.m4
curl-sectransp.m4 cmake, configure: also link with CoreServices 2023-09-20 08:38:19 +02:00
curl-sysconfig.m4 configure: fix SystemConfiguration detection 2024-07-10 11:30:40 +02:00
curl-wolfssl.m4 libcurl.pc: add Requires.private, Requires for static linking 2024-06-13 11:17:33 +02:00
xc-am-iface.m4 build: drop the use of XC_AMEND_DISTCLEAN 2023-03-03 09:54:44 +01:00
xc-cc-check.m4
xc-lt-iface.m4
xc-translit.m4
xc-val-flgs.m4
zz40-xc-ovr.m4
zz50-xc-ovr.m4
zz60-xc-ovr.m4