|
1 | 1 | #! /bin/sh |
2 | 2 | # Attempt to guess a canonical system name. |
3 | | -# Copyright 1992-2023 Free Software Foundation, Inc. |
| 3 | +# Copyright 1992-2024 Free Software Foundation, Inc. |
4 | 4 |
|
5 | 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale |
6 | 6 |
|
7 | | -timestamp='2023-07-20' |
| 7 | +timestamp='2024-01-01' |
8 | 8 |
|
9 | 9 | # This file is free software; you can redistribute it and/or modify it |
10 | 10 | # under the terms of the GNU General Public License as published by |
@@ -60,7 +60,7 @@ version="\ |
60 | 60 | GNU config.guess ($timestamp) |
61 | 61 |
|
62 | 62 | Originally written by Per Bothner. |
63 | | -Copyright 1992-2023 Free Software Foundation, Inc. |
| 63 | +Copyright 1992-2024 Free Software Foundation, Inc. |
64 | 64 |
|
65 | 65 | This is free software; see the source for copying conditions. There is NO |
66 | 66 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
@@ -155,20 +155,26 @@ Linux|GNU|GNU/*) |
155 | 155 |
|
156 | 156 | set_cc_for_build |
157 | 157 | cat <<-EOF > "$dummy.c" |
| 158 | + #if defined(__ANDROID__) |
| 159 | + LIBC=android |
| 160 | + #else |
158 | 161 | #include <features.h> |
159 | 162 | #if defined(__UCLIBC__) |
160 | 163 | LIBC=uclibc |
161 | 164 | #elif defined(__dietlibc__) |
162 | 165 | LIBC=dietlibc |
163 | 166 | #elif defined(__GLIBC__) |
164 | 167 | LIBC=gnu |
| 168 | + #elif defined(__LLVM_LIBC__) |
| 169 | + LIBC=llvm |
165 | 170 | #else |
166 | 171 | #include <stdarg.h> |
167 | 172 | /* First heuristic to detect musl libc. */ |
168 | 173 | #ifdef __DEFINED_va_list |
169 | 174 | LIBC=musl |
170 | 175 | #endif |
171 | 176 | #endif |
| 177 | + #endif |
172 | 178 | EOF |
173 | 179 | cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` |
174 | 180 | eval "$cc_set_libc" |
|
904 | 910 | fi |
905 | 911 | ;; |
906 | 912 | *:FreeBSD:*:*) |
907 | | - UNAME_PROCESSOR=`/usr/bin/uname -p` |
| 913 | + UNAME_PROCESSOR=`uname -p` |
908 | 914 | case $UNAME_PROCESSOR in |
909 | 915 | amd64) |
910 | 916 | UNAME_PROCESSOR=x86_64 ;; |
@@ -1589,6 +1595,9 @@ EOF |
1589 | 1595 | *:Unleashed:*:*) |
1590 | 1596 | GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE |
1591 | 1597 | ;; |
| 1598 | + *:Ironclad:*:*) |
| 1599 | + GUESS=$UNAME_MACHINE-unknown-ironclad |
| 1600 | + ;; |
1592 | 1601 | esac |
1593 | 1602 |
|
1594 | 1603 | # Do we have a guess based on uname results? |
|
0 commit comments