summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-07-24 17:45:10 +0000
committerColin Watson <cjwatson@debian.org>2009-07-24 17:45:10 +0000
commit61845adf608a38dbf1e3cf4db49f409d438e3391 (patch)
tree9064950f4a47757b07b2e5661a6513ee5b65881d /config.sub
parenta44d917b8cb713be4d0cd7356d98f40f5382c82a (diff)
Update config.guess and config.sub from autotools-dev 20090611.1
(closes: #538301).
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub221
1 files changed, 172 insertions, 49 deletions
diff --git a/config.sub b/config.sub
index 519f2cd00..eb0389a69 100755
--- a/config.sub
+++ b/config.sub
@@ -1,9 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5# Free Software Foundation, Inc.
5 6
6timestamp='2005-05-12' 7timestamp='2009-06-11'
7 8
8# This file is (in principle) common to ALL GNU software. 9# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 10# The presence of a machine in this file suggests that SOME GNU software
@@ -71,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
71version="\ 72version="\
72GNU config.sub ($timestamp) 73GNU config.sub ($timestamp)
73 74
74Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75Free Software Foundation, Inc. 762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
76 77
77This is free software; see the source for copying conditions. There is NO 78This is free software; see the source for copying conditions. There is NO
78warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -119,8 +120,10 @@ esac
119# Here we must recognize all the valid KERNEL-OS combinations. 120# Here we must recognize all the valid KERNEL-OS combinations.
120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121case $maybe_os in 122case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 kopensolaris*-gnu* | \
126 storm-chaos* | os2-emx* | rtmk-nova*)
124 os=-$maybe_os 127 os=-$maybe_os
125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126 ;; 129 ;;
@@ -150,6 +153,9 @@ case $os in
150 os= 153 os=
151 basic_machine=$1 154 basic_machine=$1
152 ;; 155 ;;
156 -bluegene*)
157 os=-cnk
158 ;;
153 -sim | -cisco | -oki | -wec | -winbond) 159 -sim | -cisco | -oki | -wec | -winbond)
154 os= 160 os=
155 basic_machine=$1 161 basic_machine=$1
@@ -171,6 +177,10 @@ case $os in
171 -hiux*) 177 -hiux*)
172 os=-hiuxwe2 178 os=-hiuxwe2
173 ;; 179 ;;
180 -sco6)
181 os=-sco5v6
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;;
174 -sco5) 184 -sco5)
175 os=-sco3.2v5 185 os=-sco3.2v5
176 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -187,6 +197,10 @@ case $os in
187 # Don't forget version if it is 3.2v4 or newer. 197 # Don't forget version if it is 3.2v4 or newer.
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;; 199 ;;
200 -sco5v6*)
201 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
190 -sco*) 204 -sco*)
191 os=-sco3.2v2 205 os=-sco3.2v2
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -231,23 +245,28 @@ case $basic_machine in
231 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 245 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 246 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233 | am33_2.0 \ 247 | am33_2.0 \
234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 248 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235 | bfin \ 249 | bfin \
236 | c4x | clipper \ 250 | c4x | clipper \
237 | d10v | d30v | dlx | dsp16xx \ 251 | d10v | d30v | dlx | dsp16xx \
238 | fr30 | frv \ 252 | fido | fr30 | frv \
239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 253 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240 | i370 | i860 | i960 | ia64 \ 254 | i370 | i860 | i960 | ia64 \
241 | ip2k | iq2000 \ 255 | ip2k | iq2000 \
242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 256 | lm32 \
257 | m32c | m32r | m32rle | m68000 | m68k | m88k \
258 | maxq | mb | microblaze | mcore | mep | metag \
243 | mips | mipsbe | mipseb | mipsel | mipsle \ 259 | mips | mipsbe | mipseb | mipsel | mipsle \
244 | mips16 \ 260 | mips16 \
245 | mips64 | mips64el \ 261 | mips64 | mips64el \
246 | mips64vr | mips64vrel \ 262 | mips64octeon | mips64octeonel \
247 | mips64orion | mips64orionel \ 263 | mips64orion | mips64orionel \
264 | mips64r5900 | mips64r5900el \
265 | mips64vr | mips64vrel \
248 | mips64vr4100 | mips64vr4100el \ 266 | mips64vr4100 | mips64vr4100el \
249 | mips64vr4300 | mips64vr4300el \ 267 | mips64vr4300 | mips64vr4300el \
250 | mips64vr5000 | mips64vr5000el \ 268 | mips64vr5000 | mips64vr5000el \
269 | mips64vr5900 | mips64vr5900el \
251 | mipsisa32 | mipsisa32el \ 270 | mipsisa32 | mipsisa32el \
252 | mipsisa32r2 | mipsisa32r2el \ 271 | mipsisa32r2 | mipsisa32r2el \
253 | mipsisa64 | mipsisa64el \ 272 | mipsisa64 | mipsisa64el \
@@ -256,22 +275,26 @@ case $basic_machine in
256 | mipsisa64sr71k | mipsisa64sr71kel \ 275 | mipsisa64sr71k | mipsisa64sr71kel \
257 | mipstx39 | mipstx39el \ 276 | mipstx39 | mipstx39el \
258 | mn10200 | mn10300 \ 277 | mn10200 | mn10300 \
278 | moxie \
279 | mt \
259 | msp430 \ 280 | msp430 \
281 | nios | nios2 \
260 | ns16k | ns32k \ 282 | ns16k | ns32k \
261 | openrisc | or32 \ 283 | or32 \
262 | pdp10 | pdp11 | pj | pjl \ 284 | pdp10 | pdp11 | pj | pjl \
263 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 285 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
264 | pyramid \ 286 | pyramid \
265 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 287 | score \
288 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
266 | sh64 | sh64le \ 289 | sh64 | sh64le \
267 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 290 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
268 | sparcv8 | sparcv9 | sparcv9b \ 291 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
269 | strongarm \ 292 | spu | strongarm \
270 | tahoe | thumb | tic4x | tic80 | tron \ 293 | tahoe | thumb | tic4x | tic80 | tron \
271 | v850 | v850e \ 294 | v850 | v850e \
272 | we32k \ 295 | we32k \
273 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 296 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
274 | z8k) 297 | z8k | z80)
275 basic_machine=$basic_machine-unknown 298 basic_machine=$basic_machine-unknown
276 ;; 299 ;;
277 m6811 | m68hc11 | m6812 | m68hc12) 300 m6811 | m68hc11 | m6812 | m68hc12)
@@ -281,6 +304,9 @@ case $basic_machine in
281 ;; 304 ;;
282 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 305 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
283 ;; 306 ;;
307 ms1)
308 basic_machine=mt-unknown
309 ;;
284 310
285 # We use `pc' rather than `unknown' 311 # We use `pc' rather than `unknown'
286 # because (1) that's what they normally are, and 312 # because (1) that's what they normally are, and
@@ -300,28 +326,32 @@ case $basic_machine in
300 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 326 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
301 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 327 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
302 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 328 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
303 | avr-* \ 329 | avr-* | avr32-* \
304 | bfin-* | bs2000-* \ 330 | bfin-* | bs2000-* \
305 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 331 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
306 | clipper-* | craynv-* | cydra-* \ 332 | clipper-* | craynv-* | cydra-* \
307 | d10v-* | d30v-* | dlx-* \ 333 | d10v-* | d30v-* | dlx-* \
308 | elxsi-* \ 334 | elxsi-* \
309 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 335 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
310 | h8300-* | h8500-* \ 336 | h8300-* | h8500-* \
311 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 337 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
312 | i*86-* | i860-* | i960-* | ia64-* \ 338 | i*86-* | i860-* | i960-* | ia64-* \
313 | ip2k-* | iq2000-* \ 339 | ip2k-* | iq2000-* \
314 | m32r-* | m32rle-* \ 340 | lm32-* \
341 | m32c-* | m32r-* | m32rle-* \
315 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 342 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
316 | m88110-* | m88k-* | maxq-* | mcore-* \ 343 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
317 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 344 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
318 | mips16-* \ 345 | mips16-* \
319 | mips64-* | mips64el-* \ 346 | mips64-* | mips64el-* \
320 | mips64vr-* | mips64vrel-* \ 347 | mips64octeon-* | mips64octeonel-* \
321 | mips64orion-* | mips64orionel-* \ 348 | mips64orion-* | mips64orionel-* \
349 | mips64r5900-* | mips64r5900el-* \
350 | mips64vr-* | mips64vrel-* \
322 | mips64vr4100-* | mips64vr4100el-* \ 351 | mips64vr4100-* | mips64vr4100el-* \
323 | mips64vr4300-* | mips64vr4300el-* \ 352 | mips64vr4300-* | mips64vr4300el-* \
324 | mips64vr5000-* | mips64vr5000el-* \ 353 | mips64vr5000-* | mips64vr5000el-* \
354 | mips64vr5900-* | mips64vr5900el-* \
325 | mipsisa32-* | mipsisa32el-* \ 355 | mipsisa32-* | mipsisa32el-* \
326 | mipsisa32r2-* | mipsisa32r2el-* \ 356 | mipsisa32r2-* | mipsisa32r2el-* \
327 | mipsisa64-* | mipsisa64el-* \ 357 | mipsisa64-* | mipsisa64el-* \
@@ -330,27 +360,33 @@ case $basic_machine in
330 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 360 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
331 | mipstx39-* | mipstx39el-* \ 361 | mipstx39-* | mipstx39el-* \
332 | mmix-* \ 362 | mmix-* \
363 | mt-* \
333 | msp430-* \ 364 | msp430-* \
365 | nios-* | nios2-* \
334 | none-* | np1-* | ns16k-* | ns32k-* \ 366 | none-* | np1-* | ns16k-* | ns32k-* \
335 | orion-* \ 367 | orion-* \
336 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 368 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
337 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 369 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
338 | pyramid-* \ 370 | pyramid-* \
339 | romp-* | rs6000-* \ 371 | romp-* | rs6000-* \
340 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 372 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
341 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 373 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
342 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 374 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
343 | sparclite-* \ 375 | sparclite-* \
344 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 376 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
345 | tahoe-* | thumb-* \ 377 | tahoe-* | thumb-* \
346 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 378 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
347 | tron-* \ 379 | tron-* \
348 | v850-* | v850e-* | vax-* \ 380 | v850-* | v850e-* | vax-* \
349 | we32k-* \ 381 | we32k-* \
350 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 382 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
351 | xstormy16-* | xtensa-* \ 383 | xstormy16-* | xtensa*-* \
352 | ymp-* \ 384 | ymp-* \
353 | z8k-*) 385 | z8k-* | z80-*)
386 ;;
387 # Recognize the basic CPU types without company name, with glob match.
388 xtensa*)
389 basic_machine=$basic_machine-unknown
354 ;; 390 ;;
355 # Recognize the various machine names and aliases which stand 391 # Recognize the various machine names and aliases which stand
356 # for a CPU type and a company and sometimes even an OS. 392 # for a CPU type and a company and sometimes even an OS.
@@ -414,6 +450,10 @@ case $basic_machine in
414 basic_machine=m68k-apollo 450 basic_machine=m68k-apollo
415 os=-bsd 451 os=-bsd
416 ;; 452 ;;
453 aros)
454 basic_machine=i386-pc
455 os=-aros
456 ;;
417 aux) 457 aux)
418 basic_machine=m68k-apple 458 basic_machine=m68k-apple
419 os=-aux 459 os=-aux
@@ -422,10 +462,26 @@ case $basic_machine in
422 basic_machine=ns32k-sequent 462 basic_machine=ns32k-sequent
423 os=-dynix 463 os=-dynix
424 ;; 464 ;;
465 blackfin)
466 basic_machine=bfin-unknown
467 os=-linux
468 ;;
469 blackfin-*)
470 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
471 os=-linux
472 ;;
473 bluegene*)
474 basic_machine=powerpc-ibm
475 os=-cnk
476 ;;
425 c90) 477 c90)
426 basic_machine=c90-cray 478 basic_machine=c90-cray
427 os=-unicos 479 os=-unicos
428 ;; 480 ;;
481 cegcc)
482 basic_machine=arm-unknown
483 os=-cegcc
484 ;;
429 convex-c1) 485 convex-c1)
430 basic_machine=c1-convex 486 basic_machine=c1-convex
431 os=-bsd 487 os=-bsd
@@ -454,8 +510,8 @@ case $basic_machine in
454 basic_machine=craynv-cray 510 basic_machine=craynv-cray
455 os=-unicosmp 511 os=-unicosmp
456 ;; 512 ;;
457 cr16c) 513 cr16)
458 basic_machine=cr16c-unknown 514 basic_machine=cr16-unknown
459 os=-elf 515 os=-elf
460 ;; 516 ;;
461 crds | unos) 517 crds | unos)
@@ -493,6 +549,10 @@ case $basic_machine in
493 basic_machine=m88k-motorola 549 basic_machine=m88k-motorola
494 os=-sysv3 550 os=-sysv3
495 ;; 551 ;;
552 dicos)
553 basic_machine=i686-pc
554 os=-dicos
555 ;;
496 djgpp) 556 djgpp)
497 basic_machine=i586-pc 557 basic_machine=i586-pc
498 os=-msdosdjgpp 558 os=-msdosdjgpp
@@ -647,6 +707,14 @@ case $basic_machine in
647 basic_machine=m68k-isi 707 basic_machine=m68k-isi
648 os=-sysv 708 os=-sysv
649 ;; 709 ;;
710 m68knommu)
711 basic_machine=m68k-unknown
712 os=-linux
713 ;;
714 m68knommu-*)
715 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
716 os=-linux
717 ;;
650 m88k-omron*) 718 m88k-omron*)
651 basic_machine=m88k-omron 719 basic_machine=m88k-omron
652 ;; 720 ;;
@@ -662,6 +730,10 @@ case $basic_machine in
662 basic_machine=i386-pc 730 basic_machine=i386-pc
663 os=-mingw32 731 os=-mingw32
664 ;; 732 ;;
733 mingw32ce)
734 basic_machine=arm-unknown
735 os=-mingw32ce
736 ;;
665 miniframe) 737 miniframe)
666 basic_machine=m68000-convergent 738 basic_machine=m68000-convergent
667 ;; 739 ;;
@@ -687,6 +759,9 @@ case $basic_machine in
687 basic_machine=i386-pc 759 basic_machine=i386-pc
688 os=-msdos 760 os=-msdos
689 ;; 761 ;;
762 ms1-*)
763 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
764 ;;
690 mvs) 765 mvs)
691 basic_machine=i370-ibm 766 basic_machine=i370-ibm
692 os=-mvs 767 os=-mvs
@@ -762,9 +837,8 @@ case $basic_machine in
762 basic_machine=hppa1.1-oki 837 basic_machine=hppa1.1-oki
763 os=-proelf 838 os=-proelf
764 ;; 839 ;;
765 or32 | or32-*) 840 openrisc | openrisc-*)
766 basic_machine=or32-unknown 841 basic_machine=or32-unknown
767 os=-coff
768 ;; 842 ;;
769 os400) 843 os400)
770 basic_machine=powerpc-ibm 844 basic_machine=powerpc-ibm
@@ -786,6 +860,14 @@ case $basic_machine in
786 basic_machine=i860-intel 860 basic_machine=i860-intel
787 os=-osf 861 os=-osf
788 ;; 862 ;;
863 parisc)
864 basic_machine=hppa-unknown
865 os=-linux
866 ;;
867 parisc-*)
868 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
869 os=-linux
870 ;;
789 pbd) 871 pbd)
790 basic_machine=sparc-tti 872 basic_machine=sparc-tti
791 ;; 873 ;;
@@ -795,6 +877,12 @@ case $basic_machine in
795 pc532 | pc532-*) 877 pc532 | pc532-*)
796 basic_machine=ns32k-pc532 878 basic_machine=ns32k-pc532
797 ;; 879 ;;
880 pc98)
881 basic_machine=i386-pc
882 ;;
883 pc98-*)
884 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
885 ;;
798 pentium | p5 | k5 | k6 | nexgen | viac3) 886 pentium | p5 | k5 | k6 | nexgen | viac3)
799 basic_machine=i586-pc 887 basic_machine=i586-pc
800 ;; 888 ;;
@@ -851,6 +939,10 @@ case $basic_machine in
851 basic_machine=i586-unknown 939 basic_machine=i586-unknown
852 os=-pw32 940 os=-pw32
853 ;; 941 ;;
942 rdos)
943 basic_machine=i386-pc
944 os=-rdos
945 ;;
854 rom68k) 946 rom68k)
855 basic_machine=m68k-rom68k 947 basic_machine=m68k-rom68k
856 os=-coff 948 os=-coff
@@ -877,6 +969,10 @@ case $basic_machine in
877 sb1el) 969 sb1el)
878 basic_machine=mipsisa64sb1el-unknown 970 basic_machine=mipsisa64sb1el-unknown
879 ;; 971 ;;
972 sde)
973 basic_machine=mipsisa32-sde
974 os=-elf
975 ;;
880 sei) 976 sei)
881 basic_machine=mips-sei 977 basic_machine=mips-sei
882 os=-seiux 978 os=-seiux
@@ -888,6 +984,9 @@ case $basic_machine in
888 basic_machine=sh-hitachi 984 basic_machine=sh-hitachi
889 os=-hms 985 os=-hms
890 ;; 986 ;;
987 sh5el)
988 basic_machine=sh5le-unknown
989 ;;
891 sh64) 990 sh64)
892 basic_machine=sh64-unknown 991 basic_machine=sh64-unknown
893 ;; 992 ;;
@@ -977,6 +1076,10 @@ case $basic_machine in
977 basic_machine=tic6x-unknown 1076 basic_machine=tic6x-unknown
978 os=-coff 1077 os=-coff
979 ;; 1078 ;;
1079 tile*)
1080 basic_machine=tile-unknown
1081 os=-linux-gnu
1082 ;;
980 tx39) 1083 tx39)
981 basic_machine=mipstx39-unknown 1084 basic_machine=mipstx39-unknown
982 ;; 1085 ;;
@@ -1052,6 +1155,10 @@ case $basic_machine in
1052 basic_machine=z8k-unknown 1155 basic_machine=z8k-unknown
1053 os=-sim 1156 os=-sim
1054 ;; 1157 ;;
1158 z80-*-coff)
1159 basic_machine=z80-unknown
1160 os=-sim
1161 ;;
1055 none) 1162 none)
1056 basic_machine=none-none 1163 basic_machine=none-none
1057 os=-none 1164 os=-none
@@ -1090,13 +1197,10 @@ case $basic_machine in
1090 we32k) 1197 we32k)
1091 basic_machine=we32k-att 1198 basic_machine=we32k-att
1092 ;; 1199 ;;
1093 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1200 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1094 basic_machine=sh-unknown 1201 basic_machine=sh-unknown
1095 ;; 1202 ;;
1096 sh64) 1203 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1097 basic_machine=sh64-unknown
1098 ;;
1099 sparc | sparcv8 | sparcv9 | sparcv9b)
1100 basic_machine=sparc-sun 1204 basic_machine=sparc-sun
1101 ;; 1205 ;;
1102 cydra) 1206 cydra)
@@ -1163,26 +1267,30 @@ case $os in
1163 # Each alternative MUST END IN A *, to match a version number. 1267 # Each alternative MUST END IN A *, to match a version number.
1164 # -sysv* is not here because it comes later, after sysvr4. 1268 # -sysv* is not here because it comes later, after sysvr4.
1165 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1269 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1166 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1270 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1167 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1271 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1272 | -kopensolaris* \
1168 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1273 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1169 | -aos* \ 1274 | -aos* | -aros* \
1170 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1275 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1171 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1276 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1172 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1277 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1278 | -openbsd* | -solidbsd* \
1173 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1279 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1174 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1280 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1175 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1281 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1176 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1282 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1177 | -chorusos* | -chorusrdb* \ 1283 | -chorusos* | -chorusrdb* | -cegcc* \
1178 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1284 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1179 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1285 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1286 | -uxpv* | -beos* | -mpeix* | -udk* \
1180 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1287 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1181 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1288 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1182 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1289 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1183 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1290 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1184 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1291 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1185 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -skyos*) 1292 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1293 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1186 # Remember, each alternative MUST END IN *, to match a version number. 1294 # Remember, each alternative MUST END IN *, to match a version number.
1187 ;; 1295 ;;
1188 -qnx*) 1296 -qnx*)
@@ -1200,7 +1308,7 @@ case $os in
1200 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1308 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1201 ;; 1309 ;;
1202 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1310 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1203 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1311 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1204 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1312 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1205 ;; 1313 ;;
1206 -mac*) 1314 -mac*)
@@ -1312,6 +1420,9 @@ case $os in
1312 -zvmoe) 1420 -zvmoe)
1313 os=-zvmoe 1421 os=-zvmoe
1314 ;; 1422 ;;
1423 -dicos*)
1424 os=-dicos
1425 ;;
1315 -none) 1426 -none)
1316 ;; 1427 ;;
1317 *) 1428 *)
@@ -1334,6 +1445,12 @@ else
1334# system, and we'll never get to this point. 1445# system, and we'll never get to this point.
1335 1446
1336case $basic_machine in 1447case $basic_machine in
1448 score-*)
1449 os=-elf
1450 ;;
1451 spu-*)
1452 os=-elf
1453 ;;
1337 *-acorn) 1454 *-acorn)
1338 os=-riscix1.2 1455 os=-riscix1.2
1339 ;; 1456 ;;
@@ -1343,9 +1460,9 @@ case $basic_machine in
1343 arm*-semi) 1460 arm*-semi)
1344 os=-aout 1461 os=-aout
1345 ;; 1462 ;;
1346 c4x-* | tic4x-*) 1463 c4x-* | tic4x-*)
1347 os=-coff 1464 os=-coff
1348 ;; 1465 ;;
1349 # This must come before the *-dec entry. 1466 # This must come before the *-dec entry.
1350 pdp10-*) 1467 pdp10-*)
1351 os=-tops20 1468 os=-tops20
@@ -1371,6 +1488,9 @@ case $basic_machine in
1371 m68*-cisco) 1488 m68*-cisco)
1372 os=-aout 1489 os=-aout
1373 ;; 1490 ;;
1491 mep-*)
1492 os=-elf
1493 ;;
1374 mips*-cisco) 1494 mips*-cisco)
1375 os=-elf 1495 os=-elf
1376 ;; 1496 ;;
@@ -1389,6 +1509,9 @@ case $basic_machine in
1389 *-be) 1509 *-be)
1390 os=-beos 1510 os=-beos
1391 ;; 1511 ;;
1512 *-haiku)
1513 os=-haiku
1514 ;;
1392 *-ibm) 1515 *-ibm)
1393 os=-aix 1516 os=-aix
1394 ;; 1517 ;;
@@ -1497,7 +1620,7 @@ case $basic_machine in
1497 -sunos*) 1620 -sunos*)
1498 vendor=sun 1621 vendor=sun
1499 ;; 1622 ;;
1500 -aix*) 1623 -cnk*|-aix*)
1501 vendor=ibm 1624 vendor=ibm
1502 ;; 1625 ;;
1503 -beos*) 1626 -beos*)