| 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 |
| 4 |
> |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 |
|
# Free Software Foundation, Inc. |
| 6 |
|
|
| 7 |
< |
timestamp='2009-04-17' |
| 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 |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
# Please send patches to <config-patches@gnu.org>. Submit a context |
| 35 |
< |
# diff and a properly formatted ChangeLog entry. |
| 35 |
> |
# diff and a properly formatted GNU ChangeLog entry. |
| 36 |
|
# |
| 37 |
|
# Configuration subroutine to validate and canonicalize a configuration type. |
| 38 |
|
# Supply the specified configuration type as an argument. |
| 39 |
|
# If it is invalid, we print an error message on stderr and exit with code 1. |
| 40 |
|
# Otherwise, we print the canonical config type on stdout and succeed. |
| 41 |
|
|
| 42 |
+ |
# You can get the latest version of this script from: |
| 43 |
+ |
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| 44 |
+ |
|
| 45 |
|
# This file is supposed to be the same for all GNU packages |
| 46 |
|
# and recognize all the CPU types, system types and aliases |
| 47 |
|
# that are meaningful with *any* 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 |
| 154 |
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 155 |
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 156 |
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 157 |
< |
-apple | -axis | -knuth | -cray) |
| 157 |
> |
-apple | -axis | -knuth | -cray | -microblaze) |
| 158 |
|
os= |
| 159 |
|
basic_machine=$1 |
| 160 |
|
;; |
| 161 |
+ |
-bluegene*) |
| 162 |
+ |
os=-cnk |
| 163 |
+ |
;; |
| 164 |
|
-sim | -cisco | -oki | -wec | -winbond) |
| 165 |
|
os= |
| 166 |
|
basic_machine=$1 |
| 289 |
|
| pdp10 | pdp11 | pj | pjl \ |
| 290 |
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| 291 |
|
| pyramid \ |
| 292 |
+ |
| rx \ |
| 293 |
|
| score \ |
| 294 |
|
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 295 |
|
| sh64 | sh64le \ |
| 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 \ |
| 303 |
|
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
| 304 |
|
| z8k | z80) |
| 305 |
|
basic_machine=$basic_machine-unknown |
| 306 |
|
;; |
| 307 |
< |
m6811 | m68hc11 | m6812 | m68hc12) |
| 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 |
| 319 |
|
os=-none |
| 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-* \ |
| 356 |
|
| lm32-* \ |
| 357 |
|
| m32c-* | m32r-* | m32rle-* \ |
| 358 |
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 359 |
< |
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
| 359 |
> |
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
| 360 |
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| 361 |
|
| mips16-* \ |
| 362 |
|
| mips64-* | mips64el-* \ |
| 384 |
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 385 |
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| 386 |
|
| pyramid-* \ |
| 387 |
< |
| romp-* | rs6000-* \ |
| 387 |
> |
| romp-* | rs6000-* | rx-* \ |
| 388 |
|
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 389 |
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 390 |
|
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| 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-* \ |
| 399 |
|
| we32k-* \ |
| 400 |
|
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
| 488 |
|
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 489 |
|
os=-linux |
| 490 |
|
;; |
| 491 |
+ |
bluegene*) |
| 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 |
| 753 |
|
basic_machine=ns32k-utek |
| 754 |
|
os=-sysv |
| 755 |
|
;; |
| 756 |
+ |
microblaze) |
| 757 |
+ |
basic_machine=microblaze-xilinx |
| 758 |
+ |
;; |
| 759 |
|
mingw32) |
| 760 |
|
basic_machine=i386-pc |
| 761 |
|
os=-mingw32 |
| 1094 |
|
basic_machine=t90-cray |
| 1095 |
|
os=-unicos |
| 1096 |
|
;; |
| 1097 |
< |
tic54x | c54x*) |
| 1098 |
< |
basic_machine=tic54x-unknown |
| 1099 |
< |
os=-coff |
| 1100 |
< |
;; |
| 1064 |
< |
tic55x | c55x*) |
| 1065 |
< |
basic_machine=tic55x-unknown |
| 1066 |
< |
os=-coff |
| 1067 |
< |
;; |
| 1068 |
< |
tic6x | c6x*) |
| 1069 |
< |
basic_machine=tic6x-unknown |
| 1070 |
< |
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 |
| 1270 |
|
# First match some system type aliases |
| 1271 |
|
# that might get confused with valid system types. |
| 1272 |
|
# -solaris* is a basic system type, with this one exception. |
| 1273 |
+ |
-auroraux) |
| 1274 |
+ |
os=-auroraux |
| 1275 |
+ |
;; |
| 1276 |
|
-solaris1 | -solaris1.*) |
| 1277 |
|
os=`echo $os | sed -e 's|solaris1|sunos4|'` |
| 1278 |
|
;; |
| 1293 |
|
# Each alternative MUST END IN A *, to match a version number. |
| 1294 |
|
# -sysv* is not here because it comes later, after sysvr4. |
| 1295 |
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| 1296 |
< |
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
| 1297 |
< |
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
| 1298 |
< |
| -kopensolaris* \ |
| 1296 |
> |
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
| 1297 |
> |
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| 1298 |
> |
| -sym* | -kopensolaris* \ |
| 1299 |
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| 1300 |
|
| -aos* | -aros* \ |
| 1301 |
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 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* \ |
| 1317 |
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1318 |
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1319 |
|
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| 1320 |
< |
| -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
| 1320 |
> |
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
| 1321 |
|
# Remember, each alternative MUST END IN *, to match a version number. |
| 1322 |
|
;; |
| 1323 |
|
-qnx*) |
| 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 |
| 1658 |
|
-sunos*) |
| 1659 |
|
vendor=sun |
| 1660 |
|
;; |
| 1661 |
< |
-aix*) |
| 1661 |
> |
-cnk*|-aix*) |
| 1662 |
|
vendor=ibm |
| 1663 |
|
;; |
| 1664 |
|
-beos*) |