build-scripts/config.sub
branchSDL-1.2
changeset 4282 4909c960832e
parent 4134 31c7c57af8a4
child 12303 1e4343dedd37
     1.1 --- a/build-scripts/config.sub	Wed Oct 07 08:03:32 2009 +0000
     1.2 +++ b/build-scripts/config.sub	Thu Oct 08 07:09:04 2009 +0000
     1.3 @@ -1,10 +1,10 @@
     1.4  #! /bin/sh
     1.5  # Configuration validation subroutine script.
     1.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     1.7 -#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     1.8 -#   Inc.
     1.9 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    1.10 +#   Free Software Foundation, Inc.
    1.11  
    1.12 -timestamp='2007-12-05'
    1.13 +timestamp='2009-10-07'
    1.14  
    1.15  # This file is (in principle) common to ALL GNU software.
    1.16  # The presence of a machine in this file suggests that SOME GNU software
    1.17 @@ -32,13 +32,16 @@
    1.18  
    1.19  
    1.20  # Please send patches to <config-patches@gnu.org>.  Submit a context
    1.21 -# diff and a properly formatted ChangeLog entry.
    1.22 +# diff and a properly formatted GNU ChangeLog entry.
    1.23  #
    1.24  # Configuration subroutine to validate and canonicalize a configuration type.
    1.25  # Supply the specified configuration type as an argument.
    1.26  # If it is invalid, we print an error message on stderr and exit with code 1.
    1.27  # Otherwise, we print the canonical config type on stdout and succeed.
    1.28  
    1.29 +# You can get the latest version of this script from:
    1.30 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
    1.31 +
    1.32  # This file is supposed to be the same for all GNU packages
    1.33  # and recognize all the CPU types, system types and aliases
    1.34  # that are meaningful with *any* GNU software.
    1.35 @@ -72,8 +75,8 @@
    1.36  version="\
    1.37  GNU config.sub ($timestamp)
    1.38  
    1.39 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    1.40 -Free Software Foundation, Inc.
    1.41 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    1.42 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    1.43  
    1.44  This is free software; see the source for copying conditions.  There is NO
    1.45  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.46 @@ -122,6 +125,7 @@
    1.47  case $maybe_os in
    1.48    nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
    1.49    uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
    1.50 +  kopensolaris*-gnu* | \
    1.51    storm-chaos* | os2-emx* | rtmk-nova*)
    1.52      os=-$maybe_os
    1.53      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    1.54 @@ -148,10 +152,13 @@
    1.55  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    1.56  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    1.57  	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    1.58 -	-apple | -axis | -knuth | -cray)
    1.59 +	-apple | -axis | -knuth | -cray | -microblaze)
    1.60  		os=
    1.61  		basic_machine=$1
    1.62  		;;
    1.63 +        -bluegene*)
    1.64 +	        os=-cnk
    1.65 +		;;
    1.66  	-sim | -cisco | -oki | -wec | -winbond)
    1.67  		os=
    1.68  		basic_machine=$1
    1.69 @@ -249,13 +256,16 @@
    1.70  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    1.71  	| i370 | i860 | i960 | ia64 \
    1.72  	| ip2k | iq2000 \
    1.73 +	| lm32 \
    1.74  	| m32c | m32r | m32rle | m68000 | m68k | m88k \
    1.75 -	| maxq | mb | microblaze | mcore | mep \
    1.76 +	| maxq | mb | microblaze | mcore | mep | metag \
    1.77  	| mips | mipsbe | mipseb | mipsel | mipsle \
    1.78  	| mips16 \
    1.79  	| mips64 | mips64el \
    1.80 +	| mips64octeon | mips64octeonel \
    1.81 +	| mips64orion | mips64orionel \
    1.82 +	| mips64r5900 | mips64r5900el \
    1.83  	| mips64vr | mips64vrel \
    1.84 -	| mips64orion | mips64orionel \
    1.85  	| mips64vr4100 | mips64vr4100el \
    1.86  	| mips64vr4300 | mips64vr4300el \
    1.87  	| mips64vr5000 | mips64vr5000el \
    1.88 @@ -268,6 +278,7 @@
    1.89  	| mipsisa64sr71k | mipsisa64sr71kel \
    1.90  	| mipstx39 | mipstx39el \
    1.91  	| mn10200 | mn10300 \
    1.92 +	| moxie \
    1.93  	| mt \
    1.94  	| msp430 \
    1.95  	| nios | nios2 \
    1.96 @@ -276,8 +287,9 @@
    1.97  	| pdp10 | pdp11 | pj | pjl \
    1.98  	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    1.99  	| pyramid \
   1.100 +	| rx \
   1.101  	| score \
   1.102 -	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   1.103 +	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   1.104  	| sh64 | sh64le \
   1.105  	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   1.106  	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   1.107 @@ -286,10 +298,10 @@
   1.108  	| v850 | v850e \
   1.109  	| we32k \
   1.110  	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
   1.111 -	| z8k)
   1.112 +	| z8k | z80)
   1.113  		basic_machine=$basic_machine-unknown
   1.114  		;;
   1.115 -	m6811 | m68hc11 | m6812 | m68hc12)
   1.116 +	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
   1.117  		# Motorola 68HC11/12.
   1.118  		basic_machine=$basic_machine-unknown
   1.119  		os=-none
   1.120 @@ -329,14 +341,17 @@
   1.121  	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   1.122  	| i*86-* | i860-* | i960-* | ia64-* \
   1.123  	| ip2k-* | iq2000-* \
   1.124 +	| lm32-* \
   1.125  	| m32c-* | m32r-* | m32rle-* \
   1.126  	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   1.127 -	| m88110-* | m88k-* | maxq-* | mcore-* \
   1.128 +	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
   1.129  	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   1.130  	| mips16-* \
   1.131  	| mips64-* | mips64el-* \
   1.132 +	| mips64octeon-* | mips64octeonel-* \
   1.133 +	| mips64orion-* | mips64orionel-* \
   1.134 +	| mips64r5900-* | mips64r5900el-* \
   1.135  	| mips64vr-* | mips64vrel-* \
   1.136 -	| mips64orion-* | mips64orionel-* \
   1.137  	| mips64vr4100-* | mips64vr4100el-* \
   1.138  	| mips64vr4300-* | mips64vr4300el-* \
   1.139  	| mips64vr5000-* | mips64vr5000el-* \
   1.140 @@ -357,21 +372,21 @@
   1.141  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   1.142  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   1.143  	| pyramid-* \
   1.144 -	| romp-* | rs6000-* \
   1.145 -	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   1.146 +	| romp-* | rs6000-* | rx-* \
   1.147 +	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   1.148  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   1.149  	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   1.150  	| sparclite-* \
   1.151  	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
   1.152  	| tahoe-* | thumb-* \
   1.153 -	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   1.154 +	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
   1.155  	| tron-* \
   1.156  	| v850-* | v850e-* | vax-* \
   1.157  	| we32k-* \
   1.158  	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
   1.159  	| xstormy16-* | xtensa*-* \
   1.160  	| ymp-* \
   1.161 -	| z8k-*)
   1.162 +	| z8k-* | z80-*)
   1.163  		;;
   1.164  	# Recognize the basic CPU types without company name, with glob match.
   1.165  	xtensa*)
   1.166 @@ -439,6 +454,10 @@
   1.167  		basic_machine=m68k-apollo
   1.168  		os=-bsd
   1.169  		;;
   1.170 +	aros)
   1.171 +		basic_machine=i386-pc
   1.172 +		os=-aros
   1.173 +		;;
   1.174  	aux)
   1.175  		basic_machine=m68k-apple
   1.176  		os=-aux
   1.177 @@ -455,10 +474,18 @@
   1.178  		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.179  		os=-linux
   1.180  		;;
   1.181 +	bluegene*)
   1.182 +		basic_machine=powerpc-ibm
   1.183 +		os=-cnk
   1.184 +		;;
   1.185  	c90)
   1.186  		basic_machine=c90-cray
   1.187  		os=-unicos
   1.188  		;;
   1.189 +        cegcc)
   1.190 +		basic_machine=arm-unknown
   1.191 +		os=-cegcc
   1.192 +		;;
   1.193  	convex-c1)
   1.194  		basic_machine=c1-convex
   1.195  		os=-bsd
   1.196 @@ -526,6 +553,10 @@
   1.197  		basic_machine=m88k-motorola
   1.198  		os=-sysv3
   1.199  		;;
   1.200 +	dicos)
   1.201 +		basic_machine=i686-pc
   1.202 +		os=-dicos
   1.203 +		;;
   1.204  	djgpp)
   1.205  		basic_machine=i586-pc
   1.206  		os=-msdosdjgpp
   1.207 @@ -699,6 +730,9 @@
   1.208  		basic_machine=ns32k-utek
   1.209  		os=-sysv
   1.210  		;;
   1.211 +        microblaze)
   1.212 +		basic_machine=microblaze-xilinx
   1.213 +		;;
   1.214  	mingw32)
   1.215  		basic_machine=i386-pc
   1.216  		os=-mingw32
   1.217 @@ -1049,6 +1083,10 @@
   1.218  		basic_machine=tic6x-unknown
   1.219  		os=-coff
   1.220  		;;
   1.221 +	tile*)
   1.222 +		basic_machine=tile-unknown
   1.223 +		os=-linux-gnu
   1.224 +		;;
   1.225  	tx39)
   1.226  		basic_machine=mipstx39-unknown
   1.227  		;;
   1.228 @@ -1124,6 +1162,10 @@
   1.229  		basic_machine=z8k-unknown
   1.230  		os=-sim
   1.231  		;;
   1.232 +	z80-*-coff)
   1.233 +		basic_machine=z80-unknown
   1.234 +		os=-sim
   1.235 +		;;
   1.236  	none)
   1.237  		basic_machine=none-none
   1.238  		os=-none
   1.239 @@ -1162,7 +1204,7 @@
   1.240  	we32k)
   1.241  		basic_machine=we32k-att
   1.242  		;;
   1.243 -	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
   1.244 +	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
   1.245  		basic_machine=sh-unknown
   1.246  		;;
   1.247  	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
   1.248 @@ -1232,10 +1274,11 @@
   1.249  	# Each alternative MUST END IN A *, to match a version number.
   1.250  	# -sysv* is not here because it comes later, after sysvr4.
   1.251  	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
   1.252 -	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
   1.253 +	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
   1.254  	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
   1.255 +	      | -kopensolaris* \
   1.256  	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
   1.257 -	      | -aos* \
   1.258 +	      | -aos* | -aros* \
   1.259  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   1.260  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   1.261  	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
   1.262 @@ -1244,7 +1287,7 @@
   1.263  	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   1.264  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   1.265  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   1.266 -	      | -chorusos* | -chorusrdb* \
   1.267 +	      | -chorusos* | -chorusrdb* | -cegcc* \
   1.268  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1.269  	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
   1.270  	      | -uxpv* | -beos* | -mpeix* | -udk* \
   1.271 @@ -1254,7 +1297,7 @@
   1.272  	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   1.273  	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   1.274  	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   1.275 -	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
   1.276 +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
   1.277  	# Remember, each alternative MUST END IN *, to match a version number.
   1.278  		;;
   1.279  	-qnx*)
   1.280 @@ -1296,9 +1339,6 @@
   1.281          -os400*)
   1.282  		os=-os400
   1.283  		;;
   1.284 -	-cegcc*)
   1.285 -		os=-cegcc
   1.286 -		;;
   1.287  	-wince*)
   1.288  		os=-wince
   1.289  		;;
   1.290 @@ -1387,6 +1427,9 @@
   1.291  	-zvmoe)
   1.292  		os=-zvmoe
   1.293  		;;
   1.294 +	-dicos*)
   1.295 +		os=-dicos
   1.296 +		;;
   1.297  	-none)
   1.298  		;;
   1.299  	*)
   1.300 @@ -1584,7 +1627,7 @@
   1.301  			-sunos*)
   1.302  				vendor=sun
   1.303  				;;
   1.304 -			-aix*)
   1.305 +			-cnk*|-aix*)
   1.306  				vendor=ibm
   1.307  				;;
   1.308  			-beos*)