build-scripts/config.sub
changeset 11477 6987f7cb0a22
parent 9278 8900afb78a19
     1.1 --- a/build-scripts/config.sub	Sat Sep 09 07:45:31 2017 -0700
     1.2 +++ b/build-scripts/config.sub	Sat Sep 09 08:03:23 2017 -0700
     1.3 @@ -1,24 +1,18 @@
     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, 2007, 2008, 2009, 2010,
     1.8 -#   2011, 2012 Free Software Foundation, Inc.
     1.9 +#   Copyright 1992-2017 Free Software Foundation, Inc.
    1.10  
    1.11 -timestamp='2012-08-18'
    1.12 +timestamp='2017-04-02'
    1.13  
    1.14 -# This file is (in principle) common to ALL GNU software.
    1.15 -# The presence of a machine in this file suggests that SOME GNU software
    1.16 -# can handle that machine.  It does not imply ALL GNU software can.
    1.17 -#
    1.18 -# This file is free software; you can redistribute it and/or modify
    1.19 -# it under the terms of the GNU General Public License as published by
    1.20 -# the Free Software Foundation; either version 2 of the License, or
    1.21 +# This file is free software; you can redistribute it and/or modify it
    1.22 +# under the terms of the GNU General Public License as published by
    1.23 +# the Free Software Foundation; either version 3 of the License, or
    1.24  # (at your option) any later version.
    1.25  #
    1.26 -# This program is distributed in the hope that it will be useful,
    1.27 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.28 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.29 -# GNU General Public License for more details.
    1.30 +# This program is distributed in the hope that it will be useful, but
    1.31 +# WITHOUT ANY WARRANTY; without even the implied warranty of
    1.32 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.33 +# General Public License for more details.
    1.34  #
    1.35  # You should have received a copy of the GNU General Public License
    1.36  # along with this program; if not, see <http://www.gnu.org/licenses/>.
    1.37 @@ -26,11 +20,12 @@
    1.38  # As a special exception to the GNU General Public License, if you
    1.39  # distribute this file as part of a program that contains a
    1.40  # configuration script generated by Autoconf, you may include it under
    1.41 -# the same distribution terms that you use for the rest of that program.
    1.42 +# the same distribution terms that you use for the rest of that
    1.43 +# program.  This Exception is an additional permission under section 7
    1.44 +# of the GNU General Public License, version 3 ("GPLv3").
    1.45  
    1.46  
    1.47 -# Please send patches to <config-patches@gnu.org>.  Submit a context
    1.48 -# diff and a properly formatted GNU ChangeLog entry.
    1.49 +# Please send patches to <config-patches@gnu.org>.
    1.50  #
    1.51  # Configuration subroutine to validate and canonicalize a configuration type.
    1.52  # Supply the specified configuration type as an argument.
    1.53 @@ -38,7 +33,7 @@
    1.54  # Otherwise, we print the canonical config type on stdout and succeed.
    1.55  
    1.56  # You can get the latest version of this script from:
    1.57 -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
    1.58 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
    1.59  
    1.60  # This file is supposed to be the same for all GNU packages
    1.61  # and recognize all the CPU types, system types and aliases
    1.62 @@ -58,8 +53,7 @@
    1.63  me=`echo "$0" | sed -e 's,.*/,,'`
    1.64  
    1.65  usage="\
    1.66 -Usage: $0 [OPTION] CPU-MFR-OPSYS
    1.67 -       $0 [OPTION] ALIAS
    1.68 +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
    1.69  
    1.70  Canonicalize a configuration name.
    1.71  
    1.72 @@ -73,9 +67,7 @@
    1.73  version="\
    1.74  GNU config.sub ($timestamp)
    1.75  
    1.76 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    1.77 -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
    1.78 -Free Software Foundation, Inc.
    1.79 +Copyright 1992-2017 Free Software Foundation, Inc.
    1.80  
    1.81  This is free software; see the source for copying conditions.  There is NO
    1.82  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.83 @@ -124,8 +116,8 @@
    1.84  case $maybe_os in
    1.85    nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
    1.86    linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
    1.87 -  knetbsd*-gnu* | netbsd*-gnu* | \
    1.88 -  kopensolaris*-gnu* | \
    1.89 +  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
    1.90 +  kopensolaris*-gnu* | cloudabi*-eabi* | \
    1.91    storm-chaos* | os2-emx* | rtmk-nova*)
    1.92      os=-$maybe_os
    1.93      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    1.94 @@ -156,7 +148,7 @@
    1.95  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    1.96  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    1.97  	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    1.98 -	-apple | -axis | -knuth | -cray | -microblaze)
    1.99 +	-apple | -axis | -knuth | -cray | -microblaze*)
   1.100  		os=
   1.101  		basic_machine=$1
   1.102  		;;
   1.103 @@ -259,21 +251,25 @@
   1.104  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   1.105  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   1.106  	| am33_2.0 \
   1.107 -	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
   1.108 -        | be32 | be64 \
   1.109 +	| arc | arceb \
   1.110 +	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
   1.111 +	| avr | avr32 \
   1.112 +	| ba \
   1.113 +	| be32 | be64 \
   1.114  	| bfin \
   1.115 -	| c4x | clipper \
   1.116 +	| c4x | c8051 | clipper \
   1.117  	| d10v | d30v | dlx | dsp16xx \
   1.118 -	| epiphany \
   1.119 -	| fido | fr30 | frv \
   1.120 +	| e2k | epiphany \
   1.121 +	| fido | fr30 | frv | ft32 \
   1.122  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   1.123  	| hexagon \
   1.124 -	| i370 | i860 | i960 | ia64 \
   1.125 +	| i370 | i860 | i960 | ia16 | ia64 \
   1.126  	| ip2k | iq2000 \
   1.127 +	| k1om \
   1.128  	| le32 | le64 \
   1.129  	| lm32 \
   1.130  	| m32c | m32r | m32rle | m68000 | m68k | m88k \
   1.131 -	| maxq | mb | microblaze | mcore | mep | metag \
   1.132 +	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
   1.133  	| mips | mipsbe | mipseb | mipsel | mipsle \
   1.134  	| mips16 \
   1.135  	| mips64 | mips64el \
   1.136 @@ -287,26 +283,30 @@
   1.137  	| mips64vr5900 | mips64vr5900el \
   1.138  	| mipsisa32 | mipsisa32el \
   1.139  	| mipsisa32r2 | mipsisa32r2el \
   1.140 +	| mipsisa32r6 | mipsisa32r6el \
   1.141  	| mipsisa64 | mipsisa64el \
   1.142  	| mipsisa64r2 | mipsisa64r2el \
   1.143 +	| mipsisa64r6 | mipsisa64r6el \
   1.144  	| mipsisa64sb1 | mipsisa64sb1el \
   1.145  	| mipsisa64sr71k | mipsisa64sr71kel \
   1.146 +	| mipsr5900 | mipsr5900el \
   1.147  	| mipstx39 | mipstx39el \
   1.148  	| mn10200 | mn10300 \
   1.149  	| moxie \
   1.150  	| mt \
   1.151  	| msp430 \
   1.152  	| nds32 | nds32le | nds32be \
   1.153 -	| nios | nios2 \
   1.154 +	| nios | nios2 | nios2eb | nios2el \
   1.155  	| ns16k | ns32k \
   1.156 -	| open8 \
   1.157 -	| or32 \
   1.158 +	| open8 | or1k | or1knd | or32 \
   1.159  	| pdp10 | pdp11 | pj | pjl \
   1.160  	| powerpc | powerpc64 | powerpc64le | powerpcle \
   1.161 +	| pru \
   1.162  	| pyramid \
   1.163 +	| riscv32 | riscv64 \
   1.164  	| rl78 | rx \
   1.165  	| score \
   1.166 -	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   1.167 +	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   1.168  	| sh64 | sh64le \
   1.169  	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   1.170  	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   1.171 @@ -314,6 +314,8 @@
   1.172  	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
   1.173  	| ubicom32 \
   1.174  	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
   1.175 +	| visium \
   1.176 +	| wasm32 \
   1.177  	| we32k \
   1.178  	| x86 | xc16x | xstormy16 | xtensa \
   1.179  	| z8k | z80)
   1.180 @@ -328,7 +330,10 @@
   1.181  	c6x)
   1.182  		basic_machine=tic6x-unknown
   1.183  		;;
   1.184 -	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
   1.185 +	leon|leon[3-9])
   1.186 +		basic_machine=sparc-$basic_machine
   1.187 +		;;
   1.188 +	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
   1.189  		basic_machine=$basic_machine-unknown
   1.190  		os=-none
   1.191  		;;
   1.192 @@ -383,26 +388,29 @@
   1.193  	| aarch64-* | aarch64_be-* \
   1.194  	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
   1.195  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   1.196 -	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   1.197 +	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
   1.198  	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   1.199  	| avr-* | avr32-* \
   1.200 +	| ba-* \
   1.201  	| be32-* | be64-* \
   1.202  	| bfin-* | bs2000-* \
   1.203  	| c[123]* | c30-* | [cjt]90-* | c4x-* \
   1.204 -	| clipper-* | craynv-* | cydra-* \
   1.205 +	| c8051-* | clipper-* | craynv-* | cydra-* \
   1.206  	| d10v-* | d30v-* | dlx-* \
   1.207 -	| elxsi-* \
   1.208 +	| e2k-* | elxsi-* \
   1.209  	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
   1.210  	| h8300-* | h8500-* \
   1.211  	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   1.212  	| hexagon-* \
   1.213 -	| i*86-* | i860-* | i960-* | ia64-* \
   1.214 +	| i*86-* | i860-* | i960-* | ia16-* | ia64-* \
   1.215  	| ip2k-* | iq2000-* \
   1.216 +	| k1om-* \
   1.217  	| le32-* | le64-* \
   1.218  	| lm32-* \
   1.219  	| m32c-* | m32r-* | m32rle-* \
   1.220  	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   1.221 -	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
   1.222 +	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
   1.223 +	| microblaze-* | microblazeel-* \
   1.224  	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   1.225  	| mips16-* \
   1.226  	| mips64-* | mips64el-* \
   1.227 @@ -416,28 +424,34 @@
   1.228  	| mips64vr5900-* | mips64vr5900el-* \
   1.229  	| mipsisa32-* | mipsisa32el-* \
   1.230  	| mipsisa32r2-* | mipsisa32r2el-* \
   1.231 +	| mipsisa32r6-* | mipsisa32r6el-* \
   1.232  	| mipsisa64-* | mipsisa64el-* \
   1.233  	| mipsisa64r2-* | mipsisa64r2el-* \
   1.234 +	| mipsisa64r6-* | mipsisa64r6el-* \
   1.235  	| mipsisa64sb1-* | mipsisa64sb1el-* \
   1.236  	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
   1.237 +	| mipsr5900-* | mipsr5900el-* \
   1.238  	| mipstx39-* | mipstx39el-* \
   1.239  	| mmix-* \
   1.240  	| mt-* \
   1.241  	| msp430-* \
   1.242  	| nds32-* | nds32le-* | nds32be-* \
   1.243 -	| nios-* | nios2-* \
   1.244 +	| nios-* | nios2-* | nios2eb-* | nios2el-* \
   1.245  	| none-* | np1-* | ns16k-* | ns32k-* \
   1.246  	| open8-* \
   1.247 +	| or1k*-* \
   1.248  	| orion-* \
   1.249  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   1.250  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
   1.251 +	| pru-* \
   1.252  	| pyramid-* \
   1.253 +	| riscv32-* | riscv64-* \
   1.254  	| rl78-* | romp-* | rs6000-* | rx-* \
   1.255  	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   1.256  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   1.257  	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   1.258  	| sparclite-* \
   1.259 -	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
   1.260 +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
   1.261  	| tahoe-* \
   1.262  	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   1.263  	| tile*-* \
   1.264 @@ -445,6 +459,8 @@
   1.265  	| ubicom32-* \
   1.266  	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
   1.267  	| vax-* \
   1.268 +	| visium-* \
   1.269 +	| wasm32-* \
   1.270  	| we32k-* \
   1.271  	| x86-* | x86_64-* | xc16x-* | xps100-* \
   1.272  	| xstormy16-* | xtensa*-* \
   1.273 @@ -521,6 +537,9 @@
   1.274  		basic_machine=i386-pc
   1.275  		os=-aros
   1.276  		;;
   1.277 +	asmjs)
   1.278 +		basic_machine=asmjs-unknown
   1.279 +		;;
   1.280  	aux)
   1.281  		basic_machine=m68k-apple
   1.282  		os=-aux
   1.283 @@ -641,6 +660,14 @@
   1.284  		basic_machine=m68k-bull
   1.285  		os=-sysv3
   1.286  		;;
   1.287 +	e500v[12])
   1.288 +		basic_machine=powerpc-unknown
   1.289 +		os=$os"spe"
   1.290 +		;;
   1.291 +	e500v[12]-*)
   1.292 +		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.293 +		os=$os"spe"
   1.294 +		;;
   1.295  	ebmon29k)
   1.296  		basic_machine=a29k-amd
   1.297  		os=-ebmon
   1.298 @@ -782,6 +809,9 @@
   1.299  		basic_machine=m68k-isi
   1.300  		os=-sysv
   1.301  		;;
   1.302 +	leon-*|leon[3-9]-*)
   1.303 +		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
   1.304 +		;;
   1.305  	m68knommu)
   1.306  		basic_machine=m68k-unknown
   1.307  		os=-linux
   1.308 @@ -801,7 +831,7 @@
   1.309  		basic_machine=ns32k-utek
   1.310  		os=-sysv
   1.311  		;;
   1.312 -	microblaze)
   1.313 +	microblaze*)
   1.314  		basic_machine=microblaze-xilinx
   1.315  		;;
   1.316  	mingw64)
   1.317 @@ -809,7 +839,7 @@
   1.318  		os=-mingw64
   1.319  		;;
   1.320  	mingw32)
   1.321 -		basic_machine=i386-pc
   1.322 +		basic_machine=i686-pc
   1.323  		os=-mingw32
   1.324  		;;
   1.325  	mingw32ce)
   1.326 @@ -837,6 +867,10 @@
   1.327  		basic_machine=powerpc-unknown
   1.328  		os=-morphos
   1.329  		;;
   1.330 +	moxiebox)
   1.331 +		basic_machine=moxie-unknown
   1.332 +		os=-moxiebox
   1.333 +		;;
   1.334  	msdos)
   1.335  		basic_machine=i386-pc
   1.336  		os=-msdos
   1.337 @@ -845,7 +879,7 @@
   1.338  		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   1.339  		;;
   1.340  	msys)
   1.341 -		basic_machine=i386-pc
   1.342 +		basic_machine=i686-pc
   1.343  		os=-msys
   1.344  		;;
   1.345  	mvs)
   1.346 @@ -933,6 +967,9 @@
   1.347  	nsr-tandem)
   1.348  		basic_machine=nsr-tandem
   1.349  		;;
   1.350 +	nsx-tandem)
   1.351 +		basic_machine=nsx-tandem
   1.352 +		;;
   1.353  	op50n-* | op60c-*)
   1.354  		basic_machine=hppa1.1-oki
   1.355  		os=-proelf
   1.356 @@ -1017,7 +1054,7 @@
   1.357  	ppc-* | ppcbe-*)
   1.358  		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.359  		;;
   1.360 -	ppcle | powerpclittle | ppc-le | powerpc-little)
   1.361 +	ppcle | powerpclittle)
   1.362  		basic_machine=powerpcle-unknown
   1.363  		;;
   1.364  	ppcle-* | powerpclittle-*)
   1.365 @@ -1027,7 +1064,7 @@
   1.366  		;;
   1.367  	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.368  		;;
   1.369 -	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
   1.370 +	ppc64le | powerpc64little)
   1.371  		basic_machine=powerpc64le-unknown
   1.372  		;;
   1.373  	ppc64le-* | powerpc64little-*)
   1.374 @@ -1040,7 +1077,11 @@
   1.375  		basic_machine=i586-unknown
   1.376  		os=-pw32
   1.377  		;;
   1.378 -	rdos)
   1.379 +	rdos | rdos64)
   1.380 +		basic_machine=x86_64-pc
   1.381 +		os=-rdos
   1.382 +		;;
   1.383 +	rdos32)
   1.384  		basic_machine=i386-pc
   1.385  		os=-rdos
   1.386  		;;
   1.387 @@ -1224,6 +1265,9 @@
   1.388  		basic_machine=a29k-wrs
   1.389  		os=-vxworks
   1.390  		;;
   1.391 +	wasm32)
   1.392 +		basic_machine=wasm32-unknown
   1.393 +		;;
   1.394  	w65*)
   1.395  		basic_machine=w65-wdc
   1.396  		os=-none
   1.397 @@ -1367,29 +1411,30 @@
   1.398  	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
   1.399  	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
   1.400  	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
   1.401 -	      | -sym* | -kopensolaris* \
   1.402 +	      | -sym* | -kopensolaris* | -plan9* \
   1.403  	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
   1.404 -	      | -aos* | -aros* \
   1.405 +	      | -aos* | -aros* | -cloudabi* | -sortix* \
   1.406  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   1.407  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   1.408  	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
   1.409 -	      | -bitrig* | -openbsd* | -solidbsd* \
   1.410 +	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
   1.411  	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
   1.412  	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   1.413  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   1.414  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   1.415 -	      | -chorusos* | -chorusrdb* | -cegcc* \
   1.416 +	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
   1.417  	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1.418 -	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
   1.419 +	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
   1.420  	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
   1.421 -	      | -uxpv* | -beos* | -mpeix* | -udk* \
   1.422 +	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
   1.423  	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
   1.424  	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   1.425  	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
   1.426  	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   1.427  	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   1.428  	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   1.429 -	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
   1.430 +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
   1.431 +	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
   1.432  	# Remember, each alternative MUST END IN *, to match a version number.
   1.433  		;;
   1.434  	-qnx*)
   1.435 @@ -1437,6 +1482,9 @@
   1.436  	-os400*)
   1.437  		os=-os400
   1.438  		;;
   1.439 +	-cegcc*)
   1.440 +		os=-cegcc
   1.441 +		;;
   1.442  	-wince*)
   1.443  		os=-wince
   1.444  		;;
   1.445 @@ -1519,9 +1567,6 @@
   1.446  	-aros*)
   1.447  		os=-aros
   1.448  		;;
   1.449 -	-kaos*)
   1.450 -		os=-kaos
   1.451 -		;;
   1.452  	-zvmoe)
   1.453  		os=-zvmoe
   1.454  		;;
   1.455 @@ -1534,6 +1579,8 @@
   1.456  	-pnacl*)
   1.457  		os=-pnacl
   1.458  		;;
   1.459 +	-ios)
   1.460 +		;;
   1.461  	-emscripten*)
   1.462  		;;
   1.463  	-none)
   1.464 @@ -1576,6 +1623,9 @@
   1.465  	c4x-* | tic4x-*)
   1.466  		os=-coff
   1.467  		;;
   1.468 +	c8051-*)
   1.469 +		os=-elf
   1.470 +		;;
   1.471  	hexagon-*)
   1.472  		os=-elf
   1.473  		;;
   1.474 @@ -1628,6 +1678,9 @@
   1.475  	sparc-* | *-sun)
   1.476  		os=-sunos4.1.1
   1.477  		;;
   1.478 +	pru-*)
   1.479 +		os=-elf
   1.480 +		;;
   1.481  	*-be)
   1.482  		os=-beos
   1.483  		;;