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-08-22 '
7
+ timestamp=' 2024-07-27 '
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."
@@ -123,7 +123,7 @@ set_cc_for_build() {
123
123
dummy=$tmp /dummy
124
124
case ${CC_FOR_BUILD-} ,${HOST_CC-} ,${CC-} in
125
125
,,) echo " int x;" > " $dummy .c"
126
- for driver in cc gcc c89 c99 ; do
126
+ for driver in cc gcc c17 c99 c89 ; do
127
127
if ($driver -c -o " $dummy .o" " $dummy .c" ) > /dev/null 2>&1 ; then
128
128
CC_FOR_BUILD=$driver
129
129
break
@@ -165,6 +165,8 @@ Linux|GNU|GNU/*)
165
165
LIBC=dietlibc
166
166
#elif defined(__GLIBC__)
167
167
LIBC=gnu
168
+ #elif defined(__LLVM_LIBC__)
169
+ LIBC=llvm
168
170
#else
169
171
#include <stdarg.h>
170
172
/* First heuristic to detect musl libc. */
632
634
sed ' s/^ //' << EOF > "$dummy .c"
633
635
#include <sys/systemcfg.h>
634
636
635
- main()
637
+ int
638
+ main ()
636
639
{
637
640
if (!__power_pc())
638
641
exit(1);
716
719
#include <stdlib.h>
717
720
#include <unistd.h>
718
721
719
- int main ()
722
+ int
723
+ main ()
720
724
{
721
725
#if defined(_SC_KERNEL_BITS)
722
726
long bits = sysconf(_SC_KERNEL_BITS);
@@ -1593,6 +1597,9 @@ EOF
1593
1597
* :Unleashed:* :* )
1594
1598
GUESS=$UNAME_MACHINE -unknown-unleashed$UNAME_RELEASE
1595
1599
;;
1600
+ * :Ironclad:* :* )
1601
+ GUESS=$UNAME_MACHINE -unknown-ironclad
1602
+ ;;
1596
1603
esac
1597
1604
1598
1605
# Do we have a guess based on uname results?
@@ -1616,6 +1623,7 @@ cat > "$dummy.c" <<EOF
1616
1623
#endif
1617
1624
#endif
1618
1625
#endif
1626
+ int
1619
1627
main ()
1620
1628
{
1621
1629
#if defined (sony)
0 commit comments