Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41b977c

Browse files
committed
- update config.guess and config.sub
1 parent d17ca23 commit 41b977c

2 files changed

Lines changed: 70 additions & 48 deletions

File tree

config.guess

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# Attempt to guess a canonical system name.
33
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
44
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5-
# 2011, 2012 Free Software Foundation, Inc.
5+
# 2011, 2012, 2013 Free Software Foundation, Inc.
66

7-
timestamp='2012-02-10'
7+
timestamp='2012-12-29'
88

99
# This file is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by
11-
# the Free Software Foundation; either version 2 of the License, or
11+
# the Free Software Foundation; either version 3 of the License, or
1212
# (at your option) any later version.
1313
#
1414
# This program is distributed in the hope that it will be useful, but
@@ -22,19 +22,17 @@ timestamp='2012-02-10'
2222
# As a special exception to the GNU General Public License, if you
2323
# distribute this file as part of a program that contains a
2424
# configuration script generated by Autoconf, you may include it under
25-
# the same distribution terms that you use for the rest of that program.
26-
27-
28-
# Originally written by Per Bothner. Please send patches (context
29-
# diff format) to <[email protected]> and include a ChangeLog
30-
# entry.
25+
# the same distribution terms that you use for the rest of that
26+
# program. This Exception is an additional permission under section 7
27+
# of the GNU General Public License, version 3 ("GPLv3").
3128
#
32-
# This script attempts to guess a canonical system name similar to
33-
# config.sub. If it succeeds, it prints the system name on stdout, and
34-
# exits with 0. Otherwise, it exits with 1.
29+
# Originally written by Per Bothner.
3530
#
3631
# You can get the latest version of this script from:
3732
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
33+
#
34+
# Please send patches with a ChangeLog entry to [email protected].
35+
3836

3937
me=`echo "$0" | sed -e 's,.*/,,'`
4038

@@ -55,8 +53,8 @@ GNU config.guess ($timestamp)
5553
5654
Originally written by Per Bothner.
5755
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
58-
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
59-
Free Software Foundation, Inc.
56+
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
57+
2012, 2013 Free Software Foundation, Inc.
6058
6159
This is free software; see the source for copying conditions. There is NO
6260
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -200,6 +198,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
200198
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201199
echo "${machine}-${os}${release}"
202200
exit ;;
201+
*:Bitrig:*:*)
202+
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
203+
echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
204+
exit ;;
203205
*:OpenBSD:*:*)
204206
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205207
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
@@ -302,7 +304,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
302304
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
303305
echo arm-acorn-riscix${UNAME_RELEASE}
304306
exit ;;
305-
arm:riscos:*:*|arm:RISCOS:*:*)
307+
arm*:riscos:*:*|arm*:RISCOS:*:*)
306308
echo arm-unknown-riscos
307309
exit ;;
308310
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -801,6 +803,9 @@ EOF
801803
i*:CYGWIN*:*)
802804
echo ${UNAME_MACHINE}-pc-cygwin
803805
exit ;;
806+
*:MINGW64*:*)
807+
echo ${UNAME_MACHINE}-pc-mingw64
808+
exit ;;
804809
*:MINGW*:*)
805810
echo ${UNAME_MACHINE}-pc-mingw32
806811
exit ;;
@@ -1201,6 +1206,9 @@ EOF
12011206
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12021207
echo i586-pc-haiku
12031208
exit ;;
1209+
x86_64:Haiku:*:*)
1210+
echo x86_64-unknown-haiku
1211+
exit ;;
12041212
SX-4:SUPER-UX:*:*)
12051213
echo sx4-nec-superux${UNAME_RELEASE}
12061214
exit ;;
@@ -1256,7 +1264,7 @@ EOF
12561264
NEO-?:NONSTOP_KERNEL:*:*)
12571265
echo neo-tandem-nsk${UNAME_RELEASE}
12581266
exit ;;
1259-
NSE-?:NONSTOP_KERNEL:*:*)
1267+
NSE-*:NONSTOP_KERNEL:*:*)
12601268
echo nse-tandem-nsk${UNAME_RELEASE}
12611269
exit ;;
12621270
NSR-?:NONSTOP_KERNEL:*:*)
@@ -1330,9 +1338,6 @@ EOF
13301338
exit ;;
13311339
esac
13321340

1333-
#echo '(No uname command or uname output not recognized.)' 1>&2
1334-
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1335-
13361341
eval $set_cc_for_build
13371342
cat >$dummy.c <<EOF
13381343
#ifdef _SEQUENT_

config.sub

Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,32 @@
22
# Configuration validation subroutine script.
33
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
44
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5-
# 2011, 2012 Free Software Foundation, Inc.
5+
# 2011, 2012, 2013 Free Software Foundation, Inc.
66

7-
timestamp='2012-02-10'
7+
timestamp='2012-12-29'
88

9-
# This file is (in principle) common to ALL GNU software.
10-
# The presence of a machine in this file suggests that SOME GNU software
11-
# can handle that machine. It does not imply ALL GNU software can.
12-
#
13-
# This file is free software; you can redistribute it and/or modify
14-
# it under the terms of the GNU General Public License as published by
15-
# the Free Software Foundation; either version 2 of the License, or
9+
# This file is free software; you can redistribute it and/or modify it
10+
# under the terms of the GNU General Public License as published by
11+
# the Free Software Foundation; either version 3 of the License, or
1612
# (at your option) any later version.
1713
#
18-
# This program is distributed in the hope that it will be useful,
19-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21-
# GNU General Public License for more details.
14+
# This program is distributed in the hope that it will be useful, but
15+
# WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
# General Public License for more details.
2218
#
2319
# You should have received a copy of the GNU General Public License
2420
# along with this program; if not, see <http://www.gnu.org/licenses/>.
2521
#
2622
# As a special exception to the GNU General Public License, if you
2723
# distribute this file as part of a program that contains a
2824
# configuration script generated by Autoconf, you may include it under
29-
# the same distribution terms that you use for the rest of that program.
25+
# the same distribution terms that you use for the rest of that
26+
# program. This Exception is an additional permission under section 7
27+
# of the GNU General Public License, version 3 ("GPLv3").
3028

3129

32-
# Please send patches to <[email protected]>. Submit a context
33-
# diff and a properly formatted GNU ChangeLog entry.
30+
# Please send patches with a ChangeLog entry to [email protected].
3431
#
3532
# Configuration subroutine to validate and canonicalize a configuration type.
3633
# Supply the specified configuration type as an argument.
@@ -74,8 +71,8 @@ version="\
7471
GNU config.sub ($timestamp)
7572
7673
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
77-
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
78-
Free Software Foundation, Inc.
74+
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
75+
2012, 2013 Free Software Foundation, Inc.
7976
8077
This is free software; see the source for copying conditions. There is NO
8178
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -123,7 +120,7 @@ esac
123120
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124121
case $maybe_os in
125122
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126-
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
123+
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127124
knetbsd*-gnu* | netbsd*-gnu* | \
128125
kopensolaris*-gnu* | \
129126
storm-chaos* | os2-emx* | rtmk-nova*)
@@ -156,7 +153,7 @@ case $os in
156153
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
157154
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
158155
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
159-
-apple | -axis | -knuth | -cray | -microblaze)
156+
-apple | -axis | -knuth | -cray | -microblaze*)
160157
os=
161158
basic_machine=$1
162159
;;
@@ -225,6 +222,12 @@ case $os in
225222
-isc*)
226223
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227224
;;
225+
-lynx*178)
226+
os=-lynxos178
227+
;;
228+
-lynx*5)
229+
os=-lynxos5
230+
;;
228231
-lynx*)
229232
os=-lynxos
230233
;;
@@ -253,8 +256,10 @@ case $basic_machine in
253256
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
254257
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
255258
| am33_2.0 \
256-
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
257-
| be32 | be64 \
259+
| arc \
260+
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
261+
| avr | avr32 \
262+
| be32 | be64 \
258263
| bfin \
259264
| c4x | clipper \
260265
| d10v | d30v | dlx | dsp16xx \
@@ -267,7 +272,7 @@ case $basic_machine in
267272
| le32 | le64 \
268273
| lm32 \
269274
| m32c | m32r | m32rle | m68000 | m68k | m88k \
270-
| maxq | mb | microblaze | mcore | mep | metag \
275+
| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
271276
| mips | mipsbe | mipseb | mipsel | mipsle \
272277
| mips16 \
273278
| mips64 | mips64el \
@@ -383,7 +388,8 @@ case $basic_machine in
383388
| lm32-* \
384389
| m32c-* | m32r-* | m32rle-* \
385390
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
386-
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
391+
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
392+
| microblaze-* | microblazeel-* \
387393
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
388394
| mips16-* \
389395
| mips64-* | mips64el-* \
@@ -782,9 +788,13 @@ case $basic_machine in
782788
basic_machine=ns32k-utek
783789
os=-sysv
784790
;;
785-
microblaze)
791+
microblaze*)
786792
basic_machine=microblaze-xilinx
787793
;;
794+
mingw64)
795+
basic_machine=x86_64-pc
796+
os=-mingw64
797+
;;
788798
mingw32)
789799
basic_machine=i386-pc
790800
os=-mingw32
@@ -1013,7 +1023,11 @@ case $basic_machine in
10131023
basic_machine=i586-unknown
10141024
os=-pw32
10151025
;;
1016-
rdos)
1026+
rdos | rdos64)
1027+
basic_machine=x86_64-pc
1028+
os=-rdos
1029+
;;
1030+
rdos32)
10171031
basic_machine=i386-pc
10181032
os=-rdos
10191033
;;
@@ -1346,15 +1360,15 @@ case $os in
13461360
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13471361
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13481362
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1349-
| -openbsd* | -solidbsd* \
1363+
| -bitrig* | -openbsd* | -solidbsd* \
13501364
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13511365
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13521366
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13531367
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13541368
| -chorusos* | -chorusrdb* | -cegcc* \
13551369
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1356-
| -mingw32* | -linux-gnu* | -linux-android* \
1357-
| -linux-newlib* | -linux-uclibc* \
1370+
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1371+
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
13581372
| -uxpv* | -beos* | -mpeix* | -udk* \
13591373
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13601374
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1537,6 +1551,9 @@ case $basic_machine in
15371551
c4x-* | tic4x-*)
15381552
os=-coff
15391553
;;
1554+
hexagon-*)
1555+
os=-elf
1556+
;;
15401557
tic54x-*)
15411558
os=-coff
15421559
;;

0 commit comments

Comments
 (0)