configure: catch Apple in more target triplets

Before this patch, only these triplets were considered Apple:
`<cpu>-apple-darwin`

After this patch, these are also considered Apple:
`<cpu>-apple-(ios*|tvos*|visionos*|watchos*|<ETC>)`

`$host_os` (the last third of the triplet) still has a valid use
to differentiate between OS flavours, though for now this isn't
used, aligning with CMake.

Closes #14728
This commit is contained in:
Viktor Szakats 2024-08-29 17:05:43 +02:00
parent 9f56bb608e
commit 30ab1133c4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 20 additions and 19 deletions

View file

@ -34,8 +34,8 @@ if test "x$OPT_RUSTLS" != xno; then
CLEANLDFLAGS="$LDFLAGS"
CLEANCPPFLAGS="$CPPFLAGS"
case $host_os in
darwin*)
case $host in
*-apple-*)
LDFLAGS="$LDFLAGS -framework Security"
;;
*)