]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: detect `HAVE_GETADDRINFO_THREADSAFE`
authorViktor Szakats <commit@vsz.me>
Fri, 29 Sep 2023 00:38:06 +0000 (00:38 +0000)
committerViktor Szakats <commit@vsz.me>
Fri, 29 Sep 2023 18:30:34 +0000 (18:30 +0000)
commit04a3a377d83fd72c4cf7a96c9cb6d44785e33264
treef4abf888561435fde00401c253dcbb1d84b1cfa1
parentca7daadd9b6e7c68607a53c48dd8ab2a753306f0
cmake: detect `HAVE_GETADDRINFO_THREADSAFE`

Based on existing autotools logic.

autotools checks for old versions of the allowlisted target OSes and
disables this feature when seeing them. In CMake we assume we're running
on newer systems and enable regardless of OS version.

autotools always runs all 3 probes for non-fast-tracked systems and
enables this feature if any one of them was successful. To save
configuration time,  CMake stops at the first successful check.

OpenBSD is not fast-tracked and then gets blocklisted as a generic BSD
system. I haven't double-checked if this is correct, but looks odd.

Ref: #11964 (effort to sync cmake detections with autotools)

Closes #11979
CMake/OtherTests.cmake
CMakeLists.txt