summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub40
1 files changed, 30 insertions, 10 deletions
diff --git a/config.sub b/config.sub
index a649350a6..eb0389a69 100755
--- a/config.sub
+++ b/config.sub
@@ -1,10 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5# Free Software Foundation, Inc. 5# Free Software Foundation, Inc.
6 6
7timestamp='2008-06-16' 7timestamp='2009-06-11'
8 8
9# This file is (in principle) common to ALL GNU software. 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 10# The presence of a machine in this file suggests that SOME GNU software
@@ -122,6 +122,7 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122case $maybe_os in 122case $maybe_os in
123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 kopensolaris*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*) 126 storm-chaos* | os2-emx* | rtmk-nova*)
126 os=-$maybe_os 127 os=-$maybe_os
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
@@ -152,6 +153,9 @@ case $os in
152 os= 153 os=
153 basic_machine=$1 154 basic_machine=$1
154 ;; 155 ;;
156 -bluegene*)
157 os=-cnk
158 ;;
155 -sim | -cisco | -oki | -wec | -winbond) 159 -sim | -cisco | -oki | -wec | -winbond)
156 os= 160 os=
157 basic_machine=$1 161 basic_machine=$1
@@ -249,6 +253,7 @@ case $basic_machine in
249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 253 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250 | i370 | i860 | i960 | ia64 \ 254 | i370 | i860 | i960 | ia64 \
251 | ip2k | iq2000 \ 255 | ip2k | iq2000 \
256 | lm32 \
252 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 257 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore | mep | metag \ 258 | maxq | mb | microblaze | mcore | mep | metag \
254 | mips | mipsbe | mipseb | mipsel | mipsle \ 259 | mips | mipsbe | mipseb | mipsel | mipsle \
@@ -270,6 +275,7 @@ case $basic_machine in
270 | mipsisa64sr71k | mipsisa64sr71kel \ 275 | mipsisa64sr71k | mipsisa64sr71kel \
271 | mipstx39 | mipstx39el \ 276 | mipstx39 | mipstx39el \
272 | mn10200 | mn10300 \ 277 | mn10200 | mn10300 \
278 | moxie \
273 | mt \ 279 | mt \
274 | msp430 \ 280 | msp430 \
275 | nios | nios2 \ 281 | nios | nios2 \
@@ -279,7 +285,7 @@ case $basic_machine in
279 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 285 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
280 | pyramid \ 286 | pyramid \
281 | score \ 287 | score \
282 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 288 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
283 | sh64 | sh64le \ 289 | sh64 | sh64le \
284 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 290 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
285 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 291 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
@@ -288,7 +294,7 @@ case $basic_machine in
288 | v850 | v850e \ 294 | v850 | v850e \
289 | we32k \ 295 | we32k \
290 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 296 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
291 | z8k) 297 | z8k | z80)
292 basic_machine=$basic_machine-unknown 298 basic_machine=$basic_machine-unknown
293 ;; 299 ;;
294 m6811 | m68hc11 | m6812 | m68hc12) 300 m6811 | m68hc11 | m6812 | m68hc12)
@@ -331,6 +337,7 @@ case $basic_machine in
331 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 337 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
332 | i*86-* | i860-* | i960-* | ia64-* \ 338 | i*86-* | i860-* | i960-* | ia64-* \
333 | ip2k-* | iq2000-* \ 339 | ip2k-* | iq2000-* \
340 | lm32-* \
334 | m32c-* | m32r-* | m32rle-* \ 341 | m32c-* | m32r-* | m32rle-* \
335 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 342 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
336 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 343 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
@@ -362,7 +369,7 @@ case $basic_machine in
362 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 369 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
363 | pyramid-* \ 370 | pyramid-* \
364 | romp-* | rs6000-* \ 371 | romp-* | rs6000-* \
365 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 372 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
366 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 373 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
367 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 374 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
368 | sparclite-* \ 375 | sparclite-* \
@@ -375,7 +382,7 @@ case $basic_machine in
375 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 382 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
376 | xstormy16-* | xtensa*-* \ 383 | xstormy16-* | xtensa*-* \
377 | ymp-* \ 384 | ymp-* \
378 | z8k-*) 385 | z8k-* | z80-*)
379 ;; 386 ;;
380 # Recognize the basic CPU types without company name, with glob match. 387 # Recognize the basic CPU types without company name, with glob match.
381 xtensa*) 388 xtensa*)
@@ -443,6 +450,10 @@ case $basic_machine in
443 basic_machine=m68k-apollo 450 basic_machine=m68k-apollo
444 os=-bsd 451 os=-bsd
445 ;; 452 ;;
453 aros)
454 basic_machine=i386-pc
455 os=-aros
456 ;;
446 aux) 457 aux)
447 basic_machine=m68k-apple 458 basic_machine=m68k-apple
448 os=-aux 459 os=-aux
@@ -459,6 +470,10 @@ case $basic_machine in
459 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 470 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
460 os=-linux 471 os=-linux
461 ;; 472 ;;
473 bluegene*)
474 basic_machine=powerpc-ibm
475 os=-cnk
476 ;;
462 c90) 477 c90)
463 basic_machine=c90-cray 478 basic_machine=c90-cray
464 os=-unicos 479 os=-unicos
@@ -1140,6 +1155,10 @@ case $basic_machine in
1140 basic_machine=z8k-unknown 1155 basic_machine=z8k-unknown
1141 os=-sim 1156 os=-sim
1142 ;; 1157 ;;
1158 z80-*-coff)
1159 basic_machine=z80-unknown
1160 os=-sim
1161 ;;
1143 none) 1162 none)
1144 basic_machine=none-none 1163 basic_machine=none-none
1145 os=-none 1164 os=-none
@@ -1178,7 +1197,7 @@ case $basic_machine in
1178 we32k) 1197 we32k)
1179 basic_machine=we32k-att 1198 basic_machine=we32k-att
1180 ;; 1199 ;;
1181 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1200 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1182 basic_machine=sh-unknown 1201 basic_machine=sh-unknown
1183 ;; 1202 ;;
1184 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1203 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
@@ -1248,10 +1267,11 @@ case $os in
1248 # Each alternative MUST END IN A *, to match a version number. 1267 # Each alternative MUST END IN A *, to match a version number.
1249 # -sysv* is not here because it comes later, after sysvr4. 1268 # -sysv* is not here because it comes later, after sysvr4.
1250 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1269 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1251 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1270 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1252 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1271 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1272 | -kopensolaris* \
1253 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1273 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1254 | -aos* \ 1274 | -aos* | -aros* \
1255 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1275 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1256 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1276 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1257 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1277 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
@@ -1600,7 +1620,7 @@ case $basic_machine in
1600 -sunos*) 1620 -sunos*)
1601 vendor=sun 1621 vendor=sun
1602 ;; 1622 ;;
1603 -aix*) 1623 -cnk*|-aix*)
1604 vendor=ibm 1624 vendor=ibm
1605 ;; 1625 ;;
1606 -beos*) 1626 -beos*)