curl/m4
Viktor Szakats fbcce4da85
build: enable thread-safe getaddrinfo() for OpenBSD, and other tidy-ups
Aka `HAVE_GETADDRINFO_THREADSAFE`.

- enable it for OpenBSD 5.4+ (2013-11-01).
  Also adjust cmake pre-fill.

- explicitly opt-in DragonFly BSD, for 2.2.0+ (2009-02-17).
  Assuming this commit implemented this feature:
  21fcee4d6e (diff-498ff649e8770eb9a94e99a399a4b473fcea41ef58b033a2a2dae3809e17bb04)
  Prior to this patch it was enabled in autotools by accident, because
  its host ID misses `bsd` so the global BSD disable was not applied.

- autotools: fix to enable for Darwin 9+ / macOS 10.5+ (2007-10-26).
  Prior to this patch it was Darwin 6 / macOS 10.2.
  Source: https://github.com/python/cpython/issues/70112
  Ref: https://en.wikipedia.org/wiki/MacOS_version_history
  10.5 was the first one UNIX '03 certified, which requires this
  feature. iOS and others were forked from this codebase, so they also
  have support.

- cmake: add version numbers as comments.
  Sadly the OS versions are not verified. This and the autotools logic
  could possibly be implemented in `curl-setup.h` more accurately, for
  all build systems, without duplicating logic.

Also:
- cmake: `BSD` variable requires CMake 3.25+, add fallback code where
  missing.
  Ref: https://cmake.org/cmake/help/v3.25/variable/BSD.html
- unix-cache.cmake: stop listing all BSDs for `HAVE_PIPE2`,
  and fix generic BSD filter for CMake <3.25.
- unix-cache.cmake: stop listing all BSDs, since it's prefilled anyway
  for those via `OtherTests.cmake`.

Ref: https://github.com/curl/curl/pull/22138#issuecomment-4773617195

Closes #22148
2026-06-25 11:32:36 +02:00
..
.gitignore tidy-up: .gitignore lines mostly 2025-01-27 20:59:46 +01:00
curl-amissl.m4 tidy-up: make 'CA' uppercase, where missing 2026-06-22 21:04:45 +02:00
curl-apple-sectrust.m4 autotools: tidy-up if expressions 2025-12-10 22:29:19 +01:00
curl-compilers.m4 tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
curl-confopts.m4 build: say 'experimental' in option descriptions 2026-05-28 12:52:50 +02:00
curl-functions.m4 build: enable thread-safe getaddrinfo() for OpenBSD, and other tidy-ups 2026-06-25 11:32:36 +02:00
curl-gnutls.m4 tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
curl-mbedtls.m4 m4: drop redundant conditions in TLS library detections 2026-05-27 23:26:20 +02:00
curl-openssl.m4 m4: drop redundant conditions in TLS library detections 2026-05-27 23:26:20 +02:00
curl-override.m4 tidy-up: miscellaneous 2026-05-16 01:56:17 +02:00
curl-reentrant.m4 tidy-up: miscellaneous 2026-05-16 01:56:17 +02:00
curl-rustls.m4 m4: drop redundant conditions in TLS library detections 2026-05-27 23:26:20 +02:00
curl-schannel.m4 m4: drop redundant conditions in TLS library detections 2026-05-27 23:26:20 +02:00
curl-sysconfig.m4 autotools: tidy-up if expressions 2025-12-10 22:29:19 +01:00
curl-wolfssl.m4 m4: drop redundant conditions in TLS library detections 2026-05-27 23:26:20 +02:00
xc-am-iface.m4 configure: tidy up comments 2026-04-10 23:19:41 +02:00
xc-cc-check.m4 configure: tidy up comments 2026-04-10 23:19:41 +02:00
xc-lt-iface.m4 tidy-up: miscellaneous 2026-05-16 01:56:17 +02:00
xc-val-flgs.m4 configure: tidy up comments 2026-04-10 23:19:41 +02:00
zz40-xc-ovr.m4 tidy-up: miscellaneous 2026-05-16 01:56:17 +02:00
zz50-xc-ovr.m4 tidy-up: miscellaneous 2026-05-16 01:56:17 +02:00