Revision 3292 config.sub

View differences:

config.sub
1 1
#! /bin/sh
2 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, 2009
5
#   Free Software Foundation, Inc.
3
#   Copyright 1992-2013 Free Software Foundation, Inc.
6 4

  
7
timestamp='2009-06-11'
5
timestamp='2013-10-01'
8 6

  
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
11
# can handle that machine.  It does not imply ALL GNU software can.
12
#
13
# This file is free software; you can redistribute it and/or modify
14
# it under the terms of the GNU General Public License as published by
15
# the Free Software Foundation; either version 2 of the License, or
7
# This file is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
16 10
# (at your option) any later version.
17 11
#
18
# This program is distributed in the hope that it will be useful,
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
# GNU General Public License for more details.
12
# This program is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
# General Public License for more details.
22 16
#
23 17
# You should have received a copy of the GNU General Public License
24
# along with this program; if not, write to the Free Software
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
# 02110-1301, USA.
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27 19
#
28 20
# As a special exception to the GNU General Public License, if you
29 21
# distribute this file as part of a program that contains a
30 22
# configuration script generated by Autoconf, you may include it under
31
# the same distribution terms that you use for the rest of that program.
23
# the same distribution terms that you use for the rest of that
24
# program.  This Exception is an additional permission under section 7
25
# of the GNU General Public License, version 3 ("GPLv3").
32 26

  
33 27

  
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
# diff and a properly formatted ChangeLog entry.
28
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
36 29
#
37 30
# Configuration subroutine to validate and canonicalize a configuration type.
38 31
# Supply the specified configuration type as an argument.
39 32
# If it is invalid, we print an error message on stderr and exit with code 1.
40 33
# Otherwise, we print the canonical config type on stdout and succeed.
41 34

  
35
# You can get the latest version of this script from:
36
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
37

  
42 38
# This file is supposed to be the same for all GNU packages
43 39
# and recognize all the CPU types, system types and aliases
44 40
# that are meaningful with *any* GNU software.
......
72 68
version="\
73 69
GNU config.sub ($timestamp)
74 70

  
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
76
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
71
Copyright 1992-2013 Free Software Foundation, Inc.
77 72

  
78 73
This is free software; see the source for copying conditions.  There is NO
79 74
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
......
120 115
# Here we must recognize all the valid KERNEL-OS combinations.
121 116
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122 117
case $maybe_os in
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
118
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
119
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
120
  knetbsd*-gnu* | netbsd*-gnu* | \
125 121
  kopensolaris*-gnu* | \
126 122
  storm-chaos* | os2-emx* | rtmk-nova*)
127 123
    os=-$maybe_os
128 124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
129 125
    ;;
126
  android-linux)
127
    os=-linux-android
128
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
129
    ;;
130 130
  *)
131 131
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
132 132
    if [ $basic_machine != $1 ]
......
149 149
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
150 150
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
151 151
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
152
	-apple | -axis | -knuth | -cray)
152
	-apple | -axis | -knuth | -cray | -microblaze*)
153 153
		os=
154 154
		basic_machine=$1
155 155
		;;
156
        -bluegene*)
157
	        os=-cnk
156
	-bluegene*)
157
		os=-cnk
158 158
		;;
159 159
	-sim | -cisco | -oki | -wec | -winbond)
160 160
		os=
......
170 170
		os=-chorusos
171 171
		basic_machine=$1
172 172
		;;
173
 	-chorusrdb)
174
 		os=-chorusrdb
173
	-chorusrdb)
174
		os=-chorusrdb
175 175
		basic_machine=$1
176
 		;;
176
		;;
177 177
	-hiux*)
178 178
		os=-hiuxwe2
179 179
		;;
......
218 218
	-isc*)
219 219
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
220 220
		;;
221
	-lynx*178)
222
		os=-lynxos178
223
		;;
224
	-lynx*5)
225
		os=-lynxos5
226
		;;
221 227
	-lynx*)
222 228
		os=-lynxos
223 229
		;;
......
242 248
	# Some are omitted here because they have special meanings below.
243 249
	1750a | 580 \
244 250
	| a29k \
251
	| aarch64 | aarch64_be \
245 252
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
246 253
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
247 254
	| am33_2.0 \
248
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
255
	| arc | arceb \
256
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
257
	| avr | avr32 \
258
	| be32 | be64 \
249 259
	| bfin \
250
	| c4x | clipper \
260
	| c4x | c8051 | clipper \
251 261
	| d10v | d30v | dlx | dsp16xx \
262
	| epiphany \
252 263
	| fido | fr30 | frv \
253 264
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265
	| hexagon \
254 266
	| i370 | i860 | i960 | ia64 \
255 267
	| ip2k | iq2000 \
268
	| k1om \
269
	| le32 | le64 \
256 270
	| lm32 \
257 271
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
258
	| maxq | mb | microblaze | mcore | mep | metag \
272
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
259 273
	| mips | mipsbe | mipseb | mipsel | mipsle \
260 274
	| mips16 \
261 275
	| mips64 | mips64el \
......
273 287
	| mipsisa64r2 | mipsisa64r2el \
274 288
	| mipsisa64sb1 | mipsisa64sb1el \
275 289
	| mipsisa64sr71k | mipsisa64sr71kel \
290
	| mipsr5900 | mipsr5900el \
276 291
	| mipstx39 | mipstx39el \
277 292
	| mn10200 | mn10300 \
278 293
	| moxie \
279 294
	| mt \
280 295
	| msp430 \
281
	| nios | nios2 \
296
	| nds32 | nds32le | nds32be \
297
	| nios | nios2 | nios2eb | nios2el \
282 298
	| ns16k | ns32k \
283
	| or32 \
299
	| open8 \
300
	| or1k | or32 \
284 301
	| pdp10 | pdp11 | pj | pjl \
285
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
302
	| powerpc | powerpc64 | powerpc64le | powerpcle \
286 303
	| pyramid \
304
	| rl78 | rx \
287 305
	| score \
288 306
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
289 307
	| sh64 | sh64le \
290 308
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
291 309
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
292
	| spu | strongarm \
293
	| tahoe | thumb | tic4x | tic80 | tron \
294
	| v850 | v850e \
310
	| spu \
311
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
312
	| ubicom32 \
313
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
295 314
	| we32k \
296
	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
315
	| x86 | xc16x | xstormy16 | xtensa \
297 316
	| z8k | z80)
298 317
		basic_machine=$basic_machine-unknown
299 318
		;;
300
	m6811 | m68hc11 | m6812 | m68hc12)
301
		# Motorola 68HC11/12.
319
	c54x)
320
		basic_machine=tic54x-unknown
321
		;;
322
	c55x)
323
		basic_machine=tic55x-unknown
324
		;;
325
	c6x)
326
		basic_machine=tic6x-unknown
327
		;;
328
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
302 329
		basic_machine=$basic_machine-unknown
303 330
		os=-none
304 331
		;;
......
308 335
		basic_machine=mt-unknown
309 336
		;;
310 337

  
338
	strongarm | thumb | xscale)
339
		basic_machine=arm-unknown
340
		;;
341
	xgate)
342
		basic_machine=$basic_machine-unknown
343
		os=-none
344
		;;
345
	xscaleeb)
346
		basic_machine=armeb-unknown
347
		;;
348

  
349
	xscaleel)
350
		basic_machine=armel-unknown
351
		;;
352

  
311 353
	# We use `pc' rather than `unknown'
312 354
	# because (1) that's what they normally are, and
313 355
	# (2) the word "unknown" tends to confuse beginning users.
......
322 364
	# Recognize the basic CPU types with company name.
323 365
	580-* \
324 366
	| a29k-* \
367
	| aarch64-* | aarch64_be-* \
325 368
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
326 369
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
327
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
370
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
328 371
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
329 372
	| avr-* | avr32-* \
373
	| be32-* | be64-* \
330 374
	| bfin-* | bs2000-* \
331
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
332
	| clipper-* | craynv-* | cydra-* \
375
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
376
	| c8051-* | clipper-* | craynv-* | cydra-* \
333 377
	| d10v-* | d30v-* | dlx-* \
334 378
	| elxsi-* \
335 379
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
336 380
	| h8300-* | h8500-* \
337 381
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
382
	| hexagon-* \
338 383
	| i*86-* | i860-* | i960-* | ia64-* \
339 384
	| ip2k-* | iq2000-* \
385
	| k1om-* \
386
	| le32-* | le64-* \
340 387
	| lm32-* \
341 388
	| m32c-* | m32r-* | m32rle-* \
342 389
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
343 390
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
391
	| microblaze-* | microblazeel-* \
344 392
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
345 393
	| mips16-* \
346 394
	| mips64-* | mips64el-* \
......
358 406
	| mipsisa64r2-* | mipsisa64r2el-* \
359 407
	| mipsisa64sb1-* | mipsisa64sb1el-* \
360 408
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
409
	| mipsr5900-* | mipsr5900el-* \
361 410
	| mipstx39-* | mipstx39el-* \
362 411
	| mmix-* \
363 412
	| mt-* \
364 413
	| msp430-* \
365
	| nios-* | nios2-* \
414
	| nds32-* | nds32le-* | nds32be-* \
415
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
366 416
	| none-* | np1-* | ns16k-* | ns32k-* \
417
	| open8-* \
367 418
	| orion-* \
368 419
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
369
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
420
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
370 421
	| pyramid-* \
371
	| romp-* | rs6000-* \
422
	| rl78-* | romp-* | rs6000-* | rx-* \
372 423
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
373 424
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
374 425
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
375 426
	| sparclite-* \
376
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
377
	| tahoe-* | thumb-* \
378
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
427
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
428
	| tahoe-* \
429
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
430
	| tile*-* \
379 431
	| tron-* \
380
	| v850-* | v850e-* | vax-* \
432
	| ubicom32-* \
433
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
434
	| vax-* \
381 435
	| we32k-* \
382
	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
436
	| x86-* | x86_64-* | xc16x-* | xps100-* \
383 437
	| xstormy16-* | xtensa*-* \
384 438
	| ymp-* \
385 439
	| z8k-* | z80-*)
......
404 458
		basic_machine=a29k-amd
405 459
		os=-udi
406 460
		;;
407
    	abacus)
461
	abacus)
408 462
		basic_machine=abacus-unknown
409 463
		;;
410 464
	adobe68k)
......
474 528
		basic_machine=powerpc-ibm
475 529
		os=-cnk
476 530
		;;
531
	c54x-*)
532
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
533
		;;
534
	c55x-*)
535
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
536
		;;
537
	c6x-*)
538
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
539
		;;
477 540
	c90)
478 541
		basic_machine=c90-cray
479 542
		os=-unicos
480 543
		;;
481
        cegcc)
544
	cegcc)
482 545
		basic_machine=arm-unknown
483 546
		os=-cegcc
484 547
		;;
......
510 573
		basic_machine=craynv-cray
511 574
		os=-unicosmp
512 575
		;;
513
	cr16)
576
	cr16 | cr16-*)
514 577
		basic_machine=cr16-unknown
515 578
		os=-elf
516 579
		;;
......
668 731
	i370-ibm* | ibm*)
669 732
		basic_machine=i370-ibm
670 733
		;;
671
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
672 734
	i*86v32)
673 735
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
674 736
		os=-sysv32
......
726 788
		basic_machine=ns32k-utek
727 789
		os=-sysv
728 790
		;;
791
	microblaze*)
792
		basic_machine=microblaze-xilinx
793
		;;
794
	mingw64)
795
		basic_machine=x86_64-pc
796
		os=-mingw64
797
		;;
729 798
	mingw32)
730
		basic_machine=i386-pc
799
		basic_machine=i686-pc
731 800
		os=-mingw32
732 801
		;;
733 802
	mingw32ce)
......
762 831
	ms1-*)
763 832
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
764 833
		;;
834
	msys)
835
		basic_machine=i686-pc
836
		os=-msys
837
		;;
765 838
	mvs)
766 839
		basic_machine=i370-ibm
767 840
		os=-mvs
768 841
		;;
842
	nacl)
843
		basic_machine=le32-unknown
844
		os=-nacl
845
		;;
769 846
	ncr3000)
770 847
		basic_machine=i486-ncr
771 848
		os=-sysv4
......
830 907
	np1)
831 908
		basic_machine=np1-gould
832 909
		;;
910
	neo-tandem)
911
		basic_machine=neo-tandem
912
		;;
913
	nse-tandem)
914
		basic_machine=nse-tandem
915
		;;
833 916
	nsr-tandem)
834 917
		basic_machine=nsr-tandem
835 918
		;;
......
912 995
		;;
913 996
	power)	basic_machine=power-ibm
914 997
		;;
915
	ppc)	basic_machine=powerpc-unknown
998
	ppc | ppcbe)	basic_machine=powerpc-unknown
916 999
		;;
917
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1000
	ppc-* | ppcbe-*)
1001
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
918 1002
		;;
919 1003
	ppcle | powerpclittle | ppc-le | powerpc-little)
920 1004
		basic_machine=powerpcle-unknown
......
939 1023
		basic_machine=i586-unknown
940 1024
		os=-pw32
941 1025
		;;
942
	rdos)
1026
	rdos | rdos64)
1027
		basic_machine=x86_64-pc
1028
		os=-rdos
1029
		;;
1030
	rdos32)
943 1031
		basic_machine=i386-pc
944 1032
		os=-rdos
945 1033
		;;
......
1008 1096
		basic_machine=i860-stratus
1009 1097
		os=-sysv4
1010 1098
		;;
1099
	strongarm-* | thumb-*)
1100
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1101
		;;
1011 1102
	sun2)
1012 1103
		basic_machine=m68000-sun
1013 1104
		;;
......
1064 1155
		basic_machine=t90-cray
1065 1156
		os=-unicos
1066 1157
		;;
1067
	tic54x | c54x*)
1068
		basic_machine=tic54x-unknown
1069
		os=-coff
1070
		;;
1071
	tic55x | c55x*)
1072
		basic_machine=tic55x-unknown
1073
		os=-coff
1074
		;;
1075
	tic6x | c6x*)
1076
		basic_machine=tic6x-unknown
1077
		os=-coff
1078
		;;
1079 1158
	tile*)
1080
		basic_machine=tile-unknown
1159
		basic_machine=$basic_machine-unknown
1081 1160
		os=-linux-gnu
1082 1161
		;;
1083 1162
	tx39)
......
1147 1226
	xps | xps100)
1148 1227
		basic_machine=xps100-honeywell
1149 1228
		;;
1229
	xscale-* | xscalee[bl]-*)
1230
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1231
		;;
1150 1232
	ymp)
1151 1233
		basic_machine=ymp-cray
1152 1234
		os=-unicos
......
1244 1326
if [ x"$os" != x"" ]
1245 1327
then
1246 1328
case $os in
1247
        # First match some system type aliases
1248
        # that might get confused with valid system types.
1329
	# First match some system type aliases
1330
	# that might get confused with valid system types.
1249 1331
	# -solaris* is a basic system type, with this one exception.
1332
	-auroraux)
1333
		os=-auroraux
1334
		;;
1250 1335
	-solaris1 | -solaris1.*)
1251 1336
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
1252 1337
		;;
......
1268 1353
	# -sysv* is not here because it comes later, after sysvr4.
1269 1354
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1270 1355
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1271
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1272
	      | -kopensolaris* \
1356
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1357
	      | -sym* | -kopensolaris* | -plan9* \
1273 1358
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1274 1359
	      | -aos* | -aros* \
1275 1360
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1276 1361
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1277 1362
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1278
	      | -openbsd* | -solidbsd* \
1363
	      | -bitrig* | -openbsd* | -solidbsd* \
1279 1364
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1280 1365
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1281 1366
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1282 1367
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1283 1368
	      | -chorusos* | -chorusrdb* | -cegcc* \
1284
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1285
	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1369
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1370
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1371
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1286 1372
	      | -uxpv* | -beos* | -mpeix* | -udk* \
1287 1373
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1288 1374
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
......
1290 1376
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1291 1377
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1292 1378
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1293
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1379
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1294 1380
	# Remember, each alternative MUST END IN *, to match a version number.
1295 1381
		;;
1296 1382
	-qnx*)
......
1329 1415
	-opened*)
1330 1416
		os=-openedition
1331 1417
		;;
1332
        -os400*)
1418
	-os400*)
1333 1419
		os=-os400
1334 1420
		;;
1335 1421
	-wince*)
......
1378 1464
	-sinix*)
1379 1465
		os=-sysv4
1380 1466
		;;
1381
        -tpf*)
1467
	-tpf*)
1382 1468
		os=-tpf
1383 1469
		;;
1384 1470
	-triton*)
......
1414 1500
	-aros*)
1415 1501
		os=-aros
1416 1502
		;;
1417
	-kaos*)
1418
		os=-kaos
1419
		;;
1420 1503
	-zvmoe)
1421 1504
		os=-zvmoe
1422 1505
		;;
1423 1506
	-dicos*)
1424 1507
		os=-dicos
1425 1508
		;;
1509
	-nacl*)
1510
		;;
1426 1511
	-none)
1427 1512
		;;
1428 1513
	*)
......
1445 1530
# system, and we'll never get to this point.
1446 1531

  
1447 1532
case $basic_machine in
1448
        score-*)
1533
	score-*)
1449 1534
		os=-elf
1450 1535
		;;
1451
        spu-*)
1536
	spu-*)
1452 1537
		os=-elf
1453 1538
		;;
1454 1539
	*-acorn)
......
1460 1545
	arm*-semi)
1461 1546
		os=-aout
1462 1547
		;;
1463
        c4x-* | tic4x-*)
1464
        	os=-coff
1548
	c4x-* | tic4x-*)
1549
		os=-coff
1465 1550
		;;
1551
	c8051-*)
1552
		os=-elf
1553
		;;
1554
	hexagon-*)
1555
		os=-elf
1556
		;;
1557
	tic54x-*)
1558
		os=-coff
1559
		;;
1560
	tic55x-*)
1561
		os=-coff
1562
		;;
1563
	tic6x-*)
1564
		os=-coff
1565
		;;
1466 1566
	# This must come before the *-dec entry.
1467 1567
	pdp10-*)
1468 1568
		os=-tops20
......
1481 1581
		;;
1482 1582
	m68000-sun)
1483 1583
		os=-sunos3
1484
		# This also exists in the configure program, but was not the
1485
		# default.
1486
		# os=-sunos4
1487 1584
		;;
1488 1585
	m68*-cisco)
1489 1586
		os=-aout
1490 1587
		;;
1491
        mep-*)
1588
	mep-*)
1492 1589
		os=-elf
1493 1590
		;;
1494 1591
	mips*-cisco)
......
1497 1594
	mips*-*)
1498 1595
		os=-elf
1499 1596
		;;
1597
	or1k-*)
1598
		os=-elf
1599
		;;
1500 1600
	or32-*)
1501 1601
		os=-coff
1502 1602
		;;
......
1515 1615
	*-ibm)
1516 1616
		os=-aix
1517 1617
		;;
1518
    	*-knuth)
1618
	*-knuth)
1519 1619
		os=-mmixware
1520 1620
		;;
1521 1621
	*-wec)

Also available in: Unified diff