1 |
|
#! /bin/sh |
2 |
|
# Configuration validation subroutine script. |
3 |
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
< |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
4 |
> |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
5 |
|
# Free Software Foundation, Inc. |
6 |
|
|
7 |
< |
timestamp='2009-11-20' |
7 |
> |
timestamp='2010-05-21' |
8 |
|
|
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 |
75 |
|
version="\ |
76 |
|
GNU config.sub ($timestamp) |
77 |
|
|
78 |
< |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
79 |
< |
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
78 |
> |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
79 |
> |
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free |
80 |
> |
Software Foundation, Inc. |
81 |
|
|
82 |
|
This is free software; see the source for copying conditions. There is NO |
83 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
124 |
|
# Here we must recognize all the valid KERNEL-OS combinations. |
125 |
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
126 |
|
case $maybe_os in |
127 |
< |
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
128 |
< |
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
127 |
> |
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
128 |
> |
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
129 |
> |
knetbsd*-gnu* | netbsd*-gnu* | \ |
130 |
|
kopensolaris*-gnu* | \ |
131 |
|
storm-chaos* | os2-emx* | rtmk-nova*) |
132 |
|
os=-$maybe_os |
296 |
|
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
297 |
|
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
298 |
|
| spu | strongarm \ |
299 |
< |
| tahoe | thumb | tic4x | tic80 | tron \ |
299 |
> |
| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
300 |
|
| ubicom32 \ |
301 |
|
| v850 | v850e \ |
302 |
|
| we32k \ |
304 |
|
| z8k | z80) |
305 |
|
basic_machine=$basic_machine-unknown |
306 |
|
;; |
307 |
+ |
c54x) |
308 |
+ |
basic_machine=tic54x-unknown |
309 |
+ |
;; |
310 |
+ |
c55x) |
311 |
+ |
basic_machine=tic55x-unknown |
312 |
+ |
;; |
313 |
+ |
c6x) |
314 |
+ |
basic_machine=tic6x-unknown |
315 |
+ |
;; |
316 |
|
m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
317 |
|
# Motorola 68HC11/12. |
318 |
|
basic_machine=$basic_machine-unknown |
344 |
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
345 |
|
| avr-* | avr32-* \ |
346 |
|
| bfin-* | bs2000-* \ |
347 |
< |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
347 |
> |
| c[123]* | c30-* | [cjt]90-* | c4x-* \ |
348 |
|
| clipper-* | craynv-* | cydra-* \ |
349 |
|
| d10v-* | d30v-* | dlx-* \ |
350 |
|
| elxsi-* \ |
391 |
|
| sparclite-* \ |
392 |
|
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
393 |
|
| tahoe-* | thumb-* \ |
394 |
< |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
394 |
> |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
395 |
> |
| tile-* | tilegx-* \ |
396 |
|
| tron-* \ |
397 |
|
| ubicom32-* \ |
398 |
|
| v850-* | v850e-* | vax-* \ |
492 |
|
basic_machine=powerpc-ibm |
493 |
|
os=-cnk |
494 |
|
;; |
495 |
+ |
c54x-*) |
496 |
+ |
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
497 |
+ |
;; |
498 |
+ |
c55x-*) |
499 |
+ |
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
500 |
+ |
;; |
501 |
+ |
c6x-*) |
502 |
+ |
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
503 |
+ |
;; |
504 |
|
c90) |
505 |
|
basic_machine=c90-cray |
506 |
|
os=-unicos |
1094 |
|
basic_machine=t90-cray |
1095 |
|
os=-unicos |
1096 |
|
;; |
1097 |
< |
tic54x | c54x*) |
1098 |
< |
basic_machine=tic54x-unknown |
1099 |
< |
os=-coff |
1100 |
< |
;; |
1080 |
< |
tic55x | c55x*) |
1081 |
< |
basic_machine=tic55x-unknown |
1082 |
< |
os=-coff |
1083 |
< |
;; |
1084 |
< |
tic6x | c6x*) |
1085 |
< |
basic_machine=tic6x-unknown |
1086 |
< |
os=-coff |
1097 |
> |
# This must be matched before tile*. |
1098 |
> |
tilegx*) |
1099 |
> |
basic_machine=tilegx-unknown |
1100 |
> |
os=-linux-gnu |
1101 |
|
;; |
1102 |
|
tile*) |
1103 |
|
basic_machine=tile-unknown |
1308 |
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1309 |
|
| -chorusos* | -chorusrdb* | -cegcc* \ |
1310 |
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1311 |
< |
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
1311 |
> |
| -mingw32* | -linux-gnu* | -linux-android* \ |
1312 |
> |
| -linux-newlib* | -linux-uclibc* \ |
1313 |
|
| -uxpv* | -beos* | -mpeix* | -udk* \ |
1314 |
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1315 |
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1450 |
|
-dicos*) |
1451 |
|
os=-dicos |
1452 |
|
;; |
1453 |
+ |
-nacl*) |
1454 |
+ |
;; |
1455 |
|
-none) |
1456 |
|
;; |
1457 |
|
*) |
1492 |
|
c4x-* | tic4x-*) |
1493 |
|
os=-coff |
1494 |
|
;; |
1495 |
+ |
tic54x-*) |
1496 |
+ |
os=-coff |
1497 |
+ |
;; |
1498 |
+ |
tic55x-*) |
1499 |
+ |
os=-coff |
1500 |
+ |
;; |
1501 |
+ |
tic6x-*) |
1502 |
+ |
os=-coff |
1503 |
+ |
;; |
1504 |
|
# This must come before the *-dec entry. |
1505 |
|
pdp10-*) |
1506 |
|
os=-tops20 |