config.sub
changeset 2 e273b0e38b8b
parent 0 76be7dab668c
child 16 3f4734b3c97e
     1.1 --- a/config.sub	Thu Aug 10 06:06:57 2000 +0000
     1.2 +++ b/config.sub	Thu Aug 10 06:12:39 2000 +0000
     1.3 @@ -1,6 +1,10 @@
     1.4  #! /bin/sh
     1.5  # Configuration validation subroutine script, version 1.1.
     1.6 -#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
     1.7 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
     1.8 +#   Free Software Foundation, Inc.
     1.9 +
    1.10 +version='2000-07-27'
    1.11 +
    1.12  # This file is (in principle) common to ALL GNU software.
    1.13  # The presence of a machine in this file suggests that SOME GNU software
    1.14  # can handle that machine.  It does not imply ALL GNU software can.
    1.15 @@ -25,6 +29,8 @@
    1.16  # configuration script generated by Autoconf, you may include it under
    1.17  # the same distribution terms that you use for the rest of that program.
    1.18  
    1.19 +# Please send patches to <config-patches@gnu.org>.
    1.20 +#
    1.21  # Configuration subroutine to validate and canonicalize a configuration type.
    1.22  # Supply the specified configuration type as an argument.
    1.23  # If it is invalid, we print an error message on stderr and exit with code 1.
    1.24 @@ -45,30 +51,61 @@
    1.25  #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    1.26  # It is wrong to echo any other type of specification.
    1.27  
    1.28 -if [ x$1 = x ]
    1.29 -then
    1.30 -	echo Configuration name missing. 1>&2
    1.31 -	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
    1.32 -	echo "or     $0 ALIAS" 1>&2
    1.33 -	echo where ALIAS is a recognized configuration type. 1>&2
    1.34 -	exit 1
    1.35 -fi
    1.36 +me=`echo "$0" | sed -e 's,.*/,,'`
    1.37  
    1.38 -# First pass through any local machine types.
    1.39 -case $1 in
    1.40 -	*local*)
    1.41 -		echo $1
    1.42 -		exit 0
    1.43 -		;;
    1.44 -	*)
    1.45 -	;;
    1.46 +usage="\
    1.47 +Usage: $0 [OPTION] CPU-MFR-OPSYS
    1.48 +       $0 [OPTION] ALIAS
    1.49 +
    1.50 +Canonicalize a configuration name.
    1.51 +
    1.52 +Operation modes:
    1.53 +  -h, --help               print this help, then exit
    1.54 +  -V, --version            print version number, then exit"
    1.55 +
    1.56 +help="
    1.57 +Try \`$me --help' for more information."
    1.58 +
    1.59 +# Parse command line
    1.60 +while test $# -gt 0 ; do
    1.61 +  case "$1" in
    1.62 +    --version | --vers* | -V )
    1.63 +       echo "$version" ; exit 0 ;;
    1.64 +    --help | --h* | -h )
    1.65 +       echo "$usage"; exit 0 ;;
    1.66 +    -- )     # Stop option processing
    1.67 +       shift; break ;;
    1.68 +    - )	# Use stdin as input.
    1.69 +       break ;;
    1.70 +    -* )
    1.71 +       exec >&2
    1.72 +       echo "$me: invalid option $1"
    1.73 +       echo "$help"
    1.74 +       exit 1 ;;
    1.75 +
    1.76 +    *local*)
    1.77 +       # First pass through any local machine types.
    1.78 +       echo $1
    1.79 +       exit 0;;
    1.80 +
    1.81 +    * )
    1.82 +       break ;;
    1.83 +  esac
    1.84 +done
    1.85 +
    1.86 +case $# in
    1.87 + 0) echo "$me: missing argument$help" >&2
    1.88 +    exit 1;;
    1.89 + 1) ;;
    1.90 + *) echo "$me: too many arguments$help" >&2
    1.91 +    exit 1;;
    1.92  esac
    1.93  
    1.94  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    1.95  # Here we must recognize all the valid KERNEL-OS combinations.
    1.96  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    1.97  case $maybe_os in
    1.98 -  linux-gnu*)
    1.99 +  nto-qnx* | linux-gnu*)
   1.100      os=-$maybe_os
   1.101      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   1.102      ;;
   1.103 @@ -94,7 +131,7 @@
   1.104  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   1.105  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   1.106  	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   1.107 -	-apple)
   1.108 +	-apple | -axis)
   1.109  		os=
   1.110  		basic_machine=$1
   1.111  		;;
   1.112 @@ -105,7 +142,7 @@
   1.113  	-scout)
   1.114  		;;
   1.115  	-wrs)
   1.116 -		os=vxworks
   1.117 +		os=-vxworks
   1.118  		basic_machine=$1
   1.119  		;;
   1.120  	-hiux*)
   1.121 @@ -156,33 +193,46 @@
   1.122  	-psos*)
   1.123  		os=-psos
   1.124  		;;
   1.125 +	-mint | -mint[0-9]*)
   1.126 +		basic_machine=m68k-atari
   1.127 +		os=-mint
   1.128 +		;;
   1.129  esac
   1.130  
   1.131  # Decode aliases for certain CPU-COMPANY combinations.
   1.132  case $basic_machine in
   1.133  	# Recognize the basic CPU types without company name.
   1.134  	# Some are omitted here because they have special meanings below.
   1.135 -	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
   1.136 +	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
   1.137  		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
   1.138  		| 580 | i960 | h8300 \
   1.139 +		| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
   1.140  		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
   1.141 -		| alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
   1.142 -		| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
   1.143 +		| hppa64 \
   1.144 +		| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
   1.145 +		| alphaev6[78] \
   1.146 +		| we32k | ns16k | clipper | i370 | sh | sh[34] \
   1.147 +		| powerpc | powerpcle \
   1.148  		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
   1.149  		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
   1.150  		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
   1.151 -		| mips64vr5000 | miprs64vr5000el \
   1.152 +		| mips64vr5000 | miprs64vr5000el | mcore \
   1.153  		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
   1.154 -		| thumb | d10v)
   1.155 +		| thumb | d10v | d30v | fr30 | avr)
   1.156  		basic_machine=$basic_machine-unknown
   1.157  		;;
   1.158 -	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65)
   1.159 +	m6811 | m68hc11 | m6812 | m68hc12)
   1.160 +		# Motorola 68HC11/12.
   1.161 +		basic_machine=$basic_machine-unknown
   1.162 +		os=-none
   1.163 +		;;
   1.164 +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
   1.165  		;;
   1.166  
   1.167  	# We use `pc' rather than `unknown'
   1.168  	# because (1) that's what they normally are, and
   1.169  	# (2) the word "unknown" tends to confuse beginning users.
   1.170 -	i[34567]86)
   1.171 +	i[234567]86)
   1.172  	  basic_machine=$basic_machine-pc
   1.173  	  ;;
   1.174  	# Object if more than one company name word.
   1.175 @@ -191,23 +241,28 @@
   1.176  		exit 1
   1.177  		;;
   1.178  	# Recognize the basic CPU types with company name.
   1.179 -	vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
   1.180 +	# FIXME: clean up the formatting here.
   1.181 +	vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
   1.182  	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
   1.183  	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   1.184  	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
   1.185  	      | xmp-* | ymp-* \
   1.186 -	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
   1.187 -	      | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
   1.188 +	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
   1.189 +	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
   1.190 +	      | hppa2.0n-* | hppa64-* \
   1.191 +	      | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
   1.192 +	      | alphaev6[78]-* \
   1.193  	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
   1.194  	      | clipper-* | orion-* \
   1.195  	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   1.196  	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
   1.197  	      | mips64el-* | mips64orion-* | mips64orionel-* \
   1.198  	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
   1.199 -	      | mipstx39-* | mipstx39el-* \
   1.200 -	      | f301-* | armv*-* | t3e-* \
   1.201 +	      | mipstx39-* | mipstx39el-* | mcore-* \
   1.202 +	      | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
   1.203  	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
   1.204 -	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
   1.205 +	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
   1.206 +	      | bs2000-* | tic54x-* | c54x-*)
   1.207  		;;
   1.208  	# Recognize the various machine names and aliases which stand
   1.209  	# for a CPU type and a company and sometimes even an OS.
   1.210 @@ -244,14 +299,14 @@
   1.211  		os=-sysv
   1.212  		;;
   1.213  	amiga | amiga-*)
   1.214 -		basic_machine=m68k-cbm
   1.215 +		basic_machine=m68k-unknown
   1.216  		;;
   1.217  	amigaos | amigados)
   1.218 -		basic_machine=m68k-cbm
   1.219 +		basic_machine=m68k-unknown
   1.220  		os=-amigaos
   1.221  		;;
   1.222  	amigaunix | amix)
   1.223 -		basic_machine=m68k-cbm
   1.224 +		basic_machine=m68k-unknown
   1.225  		os=-sysv4
   1.226  		;;
   1.227  	apollo68)
   1.228 @@ -305,6 +360,9 @@
   1.229  	crds | unos)
   1.230  		basic_machine=m68k-crds
   1.231  		;;
   1.232 +	cris | cris-* | etrax*)
   1.233 +		basic_machine=cris-axis
   1.234 +		;;
   1.235  	da30 | da30-*)
   1.236  		basic_machine=m68k-da30
   1.237  		;;
   1.238 @@ -425,7 +483,6 @@
   1.239  		;;
   1.240  	i370-ibm* | ibm*)
   1.241  		basic_machine=i370-ibm
   1.242 -		os=-mvs
   1.243  		;;
   1.244  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   1.245  	i[34567]86v32)
   1.246 @@ -488,7 +545,7 @@
   1.247  	miniframe)
   1.248  		basic_machine=m68000-convergent
   1.249  		;;
   1.250 -	*mint | *MiNT)
   1.251 +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
   1.252  		basic_machine=m68k-atari
   1.253  		os=-mint
   1.254  		;;
   1.255 @@ -506,6 +563,10 @@
   1.256  	mips3*)
   1.257  		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   1.258  		;;
   1.259 +	mmix*)
   1.260 +		basic_machine=mmix-knuth
   1.261 +		os=-mmixware
   1.262 +		;;
   1.263  	monitor)
   1.264  		basic_machine=m68k-rom68k
   1.265  		os=-coff
   1.266 @@ -514,6 +575,10 @@
   1.267  		basic_machine=i386-unknown
   1.268  		os=-msdos
   1.269  		;;
   1.270 +	mvs)
   1.271 +		basic_machine=i370-ibm
   1.272 +		os=-mvs
   1.273 +		;;
   1.274  	ncr3000)
   1.275  		basic_machine=i486-ncr
   1.276  		os=-sysv4
   1.277 @@ -523,7 +588,7 @@
   1.278  		os=-netbsd
   1.279  		;;
   1.280  	netwinder)
   1.281 -		basic_machine=armv4l-corel
   1.282 +		basic_machine=armv4l-rebel
   1.283  		os=-linux
   1.284  		;;
   1.285  	news | news700 | news800 | news900)
   1.286 @@ -574,6 +639,9 @@
   1.287  	np1)
   1.288  		basic_machine=np1-gould
   1.289  		;;
   1.290 +	nsr-tandem)
   1.291 +		basic_machine=nsr-tandem
   1.292 +		;;
   1.293  	op50n-* | op60c-*)
   1.294  		basic_machine=hppa1.1-oki
   1.295  		os=-proelf
   1.296 @@ -606,7 +674,7 @@
   1.297  	pentium | p5 | k5 | k6 | nexen)
   1.298  		basic_machine=i586-pc
   1.299  		;;
   1.300 -	pentiumpro | p6 | 6x86)
   1.301 +	pentiumpro | p6 | 6x86 | athlon)
   1.302  		basic_machine=i686-pc
   1.303  		;;
   1.304  	pentiumii | pentium2)
   1.305 @@ -615,7 +683,7 @@
   1.306  	pentium-* | p5-* | k5-* | k6-* | nexen-*)
   1.307  		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.308  		;;
   1.309 -	pentiumpro-* | p6-* | 6x86-*)
   1.310 +	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   1.311  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.312  		;;
   1.313  	pentiumii-* | pentium2-*)
   1.314 @@ -718,6 +786,10 @@
   1.315  	sun386 | sun386i | roadrunner)
   1.316  		basic_machine=i386-sun
   1.317  		;;
   1.318 +	sv1)
   1.319 +		basic_machine=sv1-cray
   1.320 +		os=-unicos
   1.321 +		;;
   1.322  	symmetry)
   1.323  		basic_machine=i386-sequent
   1.324  		os=-dynix
   1.325 @@ -726,6 +798,10 @@
   1.326  		basic_machine=t3e-cray
   1.327  		os=-unicos
   1.328  		;;
   1.329 +	tic54x | c54x*)
   1.330 +		basic_machine=tic54x-unknown
   1.331 +		os=-coff
   1.332 +		;;
   1.333  	tx39)
   1.334  		basic_machine=mipstx39-unknown
   1.335  		;;
   1.336 @@ -827,6 +903,9 @@
   1.337  	we32k)
   1.338  		basic_machine=we32k-att
   1.339  		;;
   1.340 +	sh3 | sh4)
   1.341 +		base_machine=sh-unknown
   1.342 +		;;
   1.343  	sparc | sparcv9)
   1.344  		basic_machine=sparc-sun
   1.345  		;;
   1.346 @@ -907,12 +986,25 @@
   1.347  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   1.348  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1.349  	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
   1.350 -	      | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
   1.351 +	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
   1.352 +	      | -openstep* | -oskit*)
   1.353  	# Remember, each alternative MUST END IN *, to match a version number.
   1.354  		;;
   1.355 +	-qnx*)
   1.356 +		case $basic_machine in
   1.357 +		    x86-* | i[34567]86-*)
   1.358 +			;;
   1.359 +		    *)
   1.360 +			os=-nto$os
   1.361 +			;;
   1.362 +		esac
   1.363 +		;;
   1.364 +	-nto*)
   1.365 +		os=-nto-qnx
   1.366 +		;;
   1.367  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
   1.368  	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
   1.369 -	      | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
   1.370 +	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
   1.371  		;;
   1.372  	-mac*)
   1.373  		os=`echo $os | sed -e 's|mac|macos|'`
   1.374 @@ -926,6 +1018,12 @@
   1.375  	-sunos6*)
   1.376  		os=`echo $os | sed -e 's|sunos6|solaris3|'`
   1.377  		;;
   1.378 +	-opened*)
   1.379 +		os=-openedition
   1.380 +		;;
   1.381 +	-wince*)
   1.382 +		os=-wince
   1.383 +		;;
   1.384  	-osfrose*)
   1.385  		os=-osfrose
   1.386  		;;
   1.387 @@ -950,6 +1048,9 @@
   1.388  	-ns2 )
   1.389  	        os=-nextstep2
   1.390  		;;
   1.391 +	-nsk)
   1.392 +		os=-nsk
   1.393 +		;;
   1.394  	# Preserve the version number of sinix5.
   1.395  	-sinix5.*)
   1.396  		os=`echo $os | sed -e 's|sinix|sysv|'`
   1.397 @@ -1012,7 +1113,7 @@
   1.398  	*-acorn)
   1.399  		os=-riscix1.2
   1.400  		;;
   1.401 -	arm*-corel)
   1.402 +	arm*-rebel)
   1.403  		os=-linux
   1.404  		;;
   1.405  	arm*-semi)
   1.406 @@ -1186,7 +1287,7 @@
   1.407  			-genix*)
   1.408  				vendor=ns
   1.409  				;;
   1.410 -			-mvs*)
   1.411 +			-mvs* | -opened*)
   1.412  				vendor=ibm
   1.413  				;;
   1.414  			-ptx*)
   1.415 @@ -1213,3 +1314,11 @@
   1.416  esac
   1.417  
   1.418  echo $basic_machine$os
   1.419 +exit 0
   1.420 +
   1.421 +# Local variables:
   1.422 +# eval: (add-hook 'write-file-hooks 'time-stamp)
   1.423 +# time-stamp-start: "version='"
   1.424 +# time-stamp-format: "%:y-%02m-%02d"
   1.425 +# time-stamp-end: "'"
   1.426 +# End: