| 1 |
|
#! /bin/sh |
| 2 |
|
# Configuration validation subroutine script. |
| 3 |
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 |
< |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 4 |
> |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 |
> |
# Free Software Foundation, Inc. |
| 6 |
|
|
| 7 |
< |
timestamp='2003-08-18' |
| 7 |
> |
timestamp='2009-04-17' |
| 8 |
|
|
| 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 |
| 22 |
|
# |
| 23 |
|
# 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., 59 Temple Place - Suite 330, |
| 26 |
< |
# Boston, MA 02111-1307, USA. |
| 27 |
< |
|
| 25 |
> |
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| 26 |
> |
# 02110-1301, USA. |
| 27 |
> |
# |
| 28 |
|
# As a special exception to the GNU General Public License, if you |
| 29 |
|
# distribute this file as part of a program that contains a |
| 30 |
|
# configuration script generated by Autoconf, you may include it under |
| 31 |
|
# the same distribution terms that you use for the rest of that program. |
| 32 |
|
|
| 33 |
+ |
|
| 34 |
|
# Please send patches to <config-patches@gnu.org>. Submit a context |
| 35 |
|
# diff and a properly formatted ChangeLog entry. |
| 36 |
|
# |
| 72 |
|
version="\ |
| 73 |
|
GNU config.sub ($timestamp) |
| 74 |
|
|
| 75 |
< |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
| 76 |
< |
Free Software Foundation, Inc. |
| 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. |
| 77 |
|
|
| 78 |
|
This is free software; see the source for copying conditions. There is NO |
| 79 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 85 |
|
while test $# -gt 0 ; do |
| 86 |
|
case $1 in |
| 87 |
|
--time-stamp | --time* | -t ) |
| 88 |
< |
echo "$timestamp" ; exit 0 ;; |
| 88 |
> |
echo "$timestamp" ; exit ;; |
| 89 |
|
--version | -v ) |
| 90 |
< |
echo "$version" ; exit 0 ;; |
| 90 |
> |
echo "$version" ; exit ;; |
| 91 |
|
--help | --h* | -h ) |
| 92 |
< |
echo "$usage"; exit 0 ;; |
| 92 |
> |
echo "$usage"; exit ;; |
| 93 |
|
-- ) # Stop option processing |
| 94 |
|
shift; break ;; |
| 95 |
|
- ) # Use stdin as input. |
| 101 |
|
*local*) |
| 102 |
|
# First pass through any local machine types. |
| 103 |
|
echo $1 |
| 104 |
< |
exit 0;; |
| 104 |
> |
exit ;; |
| 105 |
|
|
| 106 |
|
* ) |
| 107 |
|
break ;; |
| 120 |
|
# Here we must recognize all the valid KERNEL-OS combinations. |
| 121 |
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 122 |
|
case $maybe_os in |
| 123 |
< |
nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
| 123 |
> |
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
| 124 |
> |
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
| 125 |
> |
kopensolaris*-gnu* | \ |
| 126 |
> |
storm-chaos* | os2-emx* | rtmk-nova*) |
| 127 |
|
os=-$maybe_os |
| 128 |
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 129 |
|
;; |
| 149 |
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 150 |
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 151 |
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 152 |
< |
-apple | -axis) |
| 152 |
> |
-apple | -axis | -knuth | -cray) |
| 153 |
|
os= |
| 154 |
|
basic_machine=$1 |
| 155 |
|
;; |
| 174 |
|
-hiux*) |
| 175 |
|
os=-hiuxwe2 |
| 176 |
|
;; |
| 177 |
+ |
-sco6) |
| 178 |
+ |
os=-sco5v6 |
| 179 |
+ |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 180 |
+ |
;; |
| 181 |
|
-sco5) |
| 182 |
|
os=-sco3.2v5 |
| 183 |
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 194 |
|
# Don't forget version if it is 3.2v4 or newer. |
| 195 |
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 196 |
|
;; |
| 197 |
+ |
-sco5v6*) |
| 198 |
+ |
# Don't forget version if it is 3.2v4 or newer. |
| 199 |
+ |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 200 |
+ |
;; |
| 201 |
|
-sco*) |
| 202 |
|
os=-sco3.2v2 |
| 203 |
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 242 |
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| 243 |
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 244 |
|
| am33_2.0 \ |
| 245 |
< |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
| 245 |
> |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
| 246 |
> |
| bfin \ |
| 247 |
|
| c4x | clipper \ |
| 248 |
|
| d10v | d30v | dlx | dsp16xx \ |
| 249 |
< |
| fr30 | frv \ |
| 249 |
> |
| fido | fr30 | frv \ |
| 250 |
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 251 |
|
| i370 | i860 | i960 | ia64 \ |
| 252 |
|
| ip2k | iq2000 \ |
| 253 |
< |
| m32r | m68000 | m68k | m88k | mcore \ |
| 253 |
> |
| lm32 \ |
| 254 |
> |
| m32c | m32r | m32rle | m68000 | m68k | m88k \ |
| 255 |
> |
| maxq | mb | microblaze | mcore | mep | metag \ |
| 256 |
|
| mips | mipsbe | mipseb | mipsel | mipsle \ |
| 257 |
|
| mips16 \ |
| 258 |
|
| mips64 | mips64el \ |
| 259 |
< |
| mips64vr | mips64vrel \ |
| 259 |
> |
| mips64octeon | mips64octeonel \ |
| 260 |
|
| mips64orion | mips64orionel \ |
| 261 |
+ |
| mips64r5900 | mips64r5900el \ |
| 262 |
+ |
| mips64vr | mips64vrel \ |
| 263 |
|
| mips64vr4100 | mips64vr4100el \ |
| 264 |
|
| mips64vr4300 | mips64vr4300el \ |
| 265 |
|
| mips64vr5000 | mips64vr5000el \ |
| 266 |
+ |
| mips64vr5900 | mips64vr5900el \ |
| 267 |
|
| mipsisa32 | mipsisa32el \ |
| 268 |
|
| mipsisa32r2 | mipsisa32r2el \ |
| 269 |
|
| mipsisa64 | mipsisa64el \ |
| 272 |
|
| mipsisa64sr71k | mipsisa64sr71kel \ |
| 273 |
|
| mipstx39 | mipstx39el \ |
| 274 |
|
| mn10200 | mn10300 \ |
| 275 |
+ |
| moxie \ |
| 276 |
+ |
| mt \ |
| 277 |
|
| msp430 \ |
| 278 |
+ |
| nios | nios2 \ |
| 279 |
|
| ns16k | ns32k \ |
| 280 |
< |
| openrisc | or32 \ |
| 280 |
> |
| or32 \ |
| 281 |
|
| pdp10 | pdp11 | pj | pjl \ |
| 282 |
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| 283 |
|
| pyramid \ |
| 284 |
< |
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| 284 |
> |
| score \ |
| 285 |
> |
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 286 |
|
| sh64 | sh64le \ |
| 287 |
< |
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
| 288 |
< |
| strongarm \ |
| 287 |
> |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| 288 |
> |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| 289 |
> |
| spu | strongarm \ |
| 290 |
|
| tahoe | thumb | tic4x | tic80 | tron \ |
| 291 |
|
| v850 | v850e \ |
| 292 |
|
| we32k \ |
| 293 |
< |
| x86 | xscale | xstormy16 | xtensa \ |
| 294 |
< |
| z8k) |
| 293 |
> |
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
| 294 |
> |
| z8k | z80) |
| 295 |
|
basic_machine=$basic_machine-unknown |
| 296 |
|
;; |
| 297 |
|
m6811 | m68hc11 | m6812 | m68hc12) |
| 301 |
|
;; |
| 302 |
|
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
| 303 |
|
;; |
| 304 |
+ |
ms1) |
| 305 |
+ |
basic_machine=mt-unknown |
| 306 |
+ |
;; |
| 307 |
|
|
| 308 |
|
# We use `pc' rather than `unknown' |
| 309 |
|
# because (1) that's what they normally are, and |
| 323 |
|
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| 324 |
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| 325 |
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| 326 |
< |
| avr-* \ |
| 327 |
< |
| bs2000-* \ |
| 326 |
> |
| avr-* | avr32-* \ |
| 327 |
> |
| bfin-* | bs2000-* \ |
| 328 |
|
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| 329 |
< |
| clipper-* | cydra-* \ |
| 329 |
> |
| clipper-* | craynv-* | cydra-* \ |
| 330 |
|
| d10v-* | d30v-* | dlx-* \ |
| 331 |
|
| elxsi-* \ |
| 332 |
< |
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
| 332 |
> |
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
| 333 |
|
| h8300-* | h8500-* \ |
| 334 |
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 335 |
|
| i*86-* | i860-* | i960-* | ia64-* \ |
| 336 |
|
| ip2k-* | iq2000-* \ |
| 337 |
< |
| m32r-* \ |
| 337 |
> |
| lm32-* \ |
| 338 |
> |
| m32c-* | m32r-* | m32rle-* \ |
| 339 |
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 340 |
< |
| m88110-* | m88k-* | mcore-* \ |
| 340 |
> |
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
| 341 |
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| 342 |
|
| mips16-* \ |
| 343 |
|
| mips64-* | mips64el-* \ |
| 344 |
< |
| mips64vr-* | mips64vrel-* \ |
| 344 |
> |
| mips64octeon-* | mips64octeonel-* \ |
| 345 |
|
| mips64orion-* | mips64orionel-* \ |
| 346 |
+ |
| mips64r5900-* | mips64r5900el-* \ |
| 347 |
+ |
| mips64vr-* | mips64vrel-* \ |
| 348 |
|
| mips64vr4100-* | mips64vr4100el-* \ |
| 349 |
|
| mips64vr4300-* | mips64vr4300el-* \ |
| 350 |
|
| mips64vr5000-* | mips64vr5000el-* \ |
| 351 |
+ |
| mips64vr5900-* | mips64vr5900el-* \ |
| 352 |
|
| mipsisa32-* | mipsisa32el-* \ |
| 353 |
|
| mipsisa32r2-* | mipsisa32r2el-* \ |
| 354 |
|
| mipsisa64-* | mipsisa64el-* \ |
| 356 |
|
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
| 357 |
|
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| 358 |
|
| mipstx39-* | mipstx39el-* \ |
| 359 |
+ |
| mmix-* \ |
| 360 |
+ |
| mt-* \ |
| 361 |
|
| msp430-* \ |
| 362 |
< |
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
| 362 |
> |
| nios-* | nios2-* \ |
| 363 |
> |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| 364 |
|
| orion-* \ |
| 365 |
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 366 |
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| 367 |
|
| pyramid-* \ |
| 368 |
|
| romp-* | rs6000-* \ |
| 369 |
< |
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
| 369 |
> |
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 370 |
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 371 |
< |
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
| 372 |
< |
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
| 371 |
> |
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| 372 |
> |
| sparclite-* \ |
| 373 |
> |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
| 374 |
|
| tahoe-* | thumb-* \ |
| 375 |
< |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 375 |
> |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
| 376 |
|
| tron-* \ |
| 377 |
|
| v850-* | v850e-* | vax-* \ |
| 378 |
|
| we32k-* \ |
| 379 |
< |
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
| 380 |
< |
| xtensa-* \ |
| 379 |
> |
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
| 380 |
> |
| xstormy16-* | xtensa*-* \ |
| 381 |
|
| ymp-* \ |
| 382 |
< |
| z8k-*) |
| 382 |
> |
| z8k-* | z80-*) |
| 383 |
|
;; |
| 384 |
+ |
# Recognize the basic CPU types without company name, with glob match. |
| 385 |
+ |
xtensa*) |
| 386 |
+ |
basic_machine=$basic_machine-unknown |
| 387 |
+ |
;; |
| 388 |
|
# Recognize the various machine names and aliases which stand |
| 389 |
|
# for a CPU type and a company and sometimes even an OS. |
| 390 |
|
386bsd) |
| 401 |
|
basic_machine=a29k-amd |
| 402 |
|
os=-udi |
| 403 |
|
;; |
| 404 |
+ |
abacus) |
| 405 |
+ |
basic_machine=abacus-unknown |
| 406 |
+ |
;; |
| 407 |
|
adobe68k) |
| 408 |
|
basic_machine=m68010-adobe |
| 409 |
|
os=-scout |
| 421 |
|
amd64) |
| 422 |
|
basic_machine=x86_64-pc |
| 423 |
|
;; |
| 424 |
+ |
amd64-*) |
| 425 |
+ |
basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 426 |
+ |
;; |
| 427 |
|
amdahl) |
| 428 |
|
basic_machine=580-amdahl |
| 429 |
|
os=-sysv |
| 447 |
|
basic_machine=m68k-apollo |
| 448 |
|
os=-bsd |
| 449 |
|
;; |
| 450 |
+ |
aros) |
| 451 |
+ |
basic_machine=i386-pc |
| 452 |
+ |
os=-aros |
| 453 |
+ |
;; |
| 454 |
|
aux) |
| 455 |
|
basic_machine=m68k-apple |
| 456 |
|
os=-aux |
| 459 |
|
basic_machine=ns32k-sequent |
| 460 |
|
os=-dynix |
| 461 |
|
;; |
| 462 |
+ |
blackfin) |
| 463 |
+ |
basic_machine=bfin-unknown |
| 464 |
+ |
os=-linux |
| 465 |
+ |
;; |
| 466 |
+ |
blackfin-*) |
| 467 |
+ |
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 468 |
+ |
os=-linux |
| 469 |
+ |
;; |
| 470 |
|
c90) |
| 471 |
|
basic_machine=c90-cray |
| 472 |
|
os=-unicos |
| 473 |
|
;; |
| 474 |
+ |
cegcc) |
| 475 |
+ |
basic_machine=arm-unknown |
| 476 |
+ |
os=-cegcc |
| 477 |
+ |
;; |
| 478 |
|
convex-c1) |
| 479 |
|
basic_machine=c1-convex |
| 480 |
|
os=-bsd |
| 499 |
|
basic_machine=j90-cray |
| 500 |
|
os=-unicos |
| 501 |
|
;; |
| 502 |
+ |
craynv) |
| 503 |
+ |
basic_machine=craynv-cray |
| 504 |
+ |
os=-unicosmp |
| 505 |
+ |
;; |
| 506 |
+ |
cr16) |
| 507 |
+ |
basic_machine=cr16-unknown |
| 508 |
+ |
os=-elf |
| 509 |
+ |
;; |
| 510 |
|
crds | unos) |
| 511 |
|
basic_machine=m68k-crds |
| 512 |
|
;; |
| 513 |
+ |
crisv32 | crisv32-* | etraxfs*) |
| 514 |
+ |
basic_machine=crisv32-axis |
| 515 |
+ |
;; |
| 516 |
|
cris | cris-* | etrax*) |
| 517 |
|
basic_machine=cris-axis |
| 518 |
|
;; |
| 519 |
+ |
crx) |
| 520 |
+ |
basic_machine=crx-unknown |
| 521 |
+ |
os=-elf |
| 522 |
+ |
;; |
| 523 |
|
da30 | da30-*) |
| 524 |
|
basic_machine=m68k-da30 |
| 525 |
|
;; |
| 541 |
|
delta88) |
| 542 |
|
basic_machine=m88k-motorola |
| 543 |
|
os=-sysv3 |
| 544 |
+ |
;; |
| 545 |
+ |
dicos) |
| 546 |
+ |
basic_machine=i686-pc |
| 547 |
+ |
os=-dicos |
| 548 |
|
;; |
| 549 |
+ |
djgpp) |
| 550 |
+ |
basic_machine=i586-pc |
| 551 |
+ |
os=-msdosdjgpp |
| 552 |
+ |
;; |
| 553 |
|
dpx20 | dpx20-*) |
| 554 |
|
basic_machine=rs6000-bull |
| 555 |
|
os=-bosx |
| 700 |
|
basic_machine=m68k-isi |
| 701 |
|
os=-sysv |
| 702 |
|
;; |
| 703 |
+ |
m68knommu) |
| 704 |
+ |
basic_machine=m68k-unknown |
| 705 |
+ |
os=-linux |
| 706 |
+ |
;; |
| 707 |
+ |
m68knommu-*) |
| 708 |
+ |
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 709 |
+ |
os=-linux |
| 710 |
+ |
;; |
| 711 |
|
m88k-omron*) |
| 712 |
|
basic_machine=m88k-omron |
| 713 |
|
;; |
| 723 |
|
basic_machine=i386-pc |
| 724 |
|
os=-mingw32 |
| 725 |
|
;; |
| 726 |
+ |
mingw32ce) |
| 727 |
+ |
basic_machine=arm-unknown |
| 728 |
+ |
os=-mingw32ce |
| 729 |
+ |
;; |
| 730 |
|
miniframe) |
| 731 |
|
basic_machine=m68000-convergent |
| 732 |
|
;; |
| 739 |
|
;; |
| 740 |
|
mips3*) |
| 741 |
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
| 646 |
– |
;; |
| 647 |
– |
mmix*) |
| 648 |
– |
basic_machine=mmix-knuth |
| 649 |
– |
os=-mmixware |
| 742 |
|
;; |
| 743 |
|
monitor) |
| 744 |
|
basic_machine=m68k-rom68k |
| 752 |
|
basic_machine=i386-pc |
| 753 |
|
os=-msdos |
| 754 |
|
;; |
| 755 |
+ |
ms1-*) |
| 756 |
+ |
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
| 757 |
+ |
;; |
| 758 |
|
mvs) |
| 759 |
|
basic_machine=i370-ibm |
| 760 |
|
os=-mvs |
| 823 |
|
np1) |
| 824 |
|
basic_machine=np1-gould |
| 825 |
|
;; |
| 731 |
– |
nv1) |
| 732 |
– |
basic_machine=nv1-cray |
| 733 |
– |
os=-unicosmp |
| 734 |
– |
;; |
| 826 |
|
nsr-tandem) |
| 827 |
|
basic_machine=nsr-tandem |
| 828 |
|
;; |
| 830 |
|
basic_machine=hppa1.1-oki |
| 831 |
|
os=-proelf |
| 832 |
|
;; |
| 833 |
< |
or32 | or32-*) |
| 833 |
> |
openrisc | openrisc-*) |
| 834 |
|
basic_machine=or32-unknown |
| 744 |
– |
os=-coff |
| 835 |
|
;; |
| 836 |
+ |
os400) |
| 837 |
+ |
basic_machine=powerpc-ibm |
| 838 |
+ |
os=-os400 |
| 839 |
+ |
;; |
| 840 |
|
OSE68000 | ose68000) |
| 841 |
|
basic_machine=m68000-ericsson |
| 842 |
|
os=-ose |
| 852 |
|
paragon) |
| 853 |
|
basic_machine=i860-intel |
| 854 |
|
os=-osf |
| 855 |
+ |
;; |
| 856 |
+ |
parisc) |
| 857 |
+ |
basic_machine=hppa-unknown |
| 858 |
+ |
os=-linux |
| 859 |
|
;; |
| 860 |
+ |
parisc-*) |
| 861 |
+ |
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 862 |
+ |
os=-linux |
| 863 |
+ |
;; |
| 864 |
|
pbd) |
| 865 |
|
basic_machine=sparc-tti |
| 866 |
|
;; |
| 870 |
|
pc532 | pc532-*) |
| 871 |
|
basic_machine=ns32k-pc532 |
| 872 |
|
;; |
| 873 |
+ |
pc98) |
| 874 |
+ |
basic_machine=i386-pc |
| 875 |
+ |
;; |
| 876 |
+ |
pc98-*) |
| 877 |
+ |
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 878 |
+ |
;; |
| 879 |
|
pentium | p5 | k5 | k6 | nexgen | viac3) |
| 880 |
|
basic_machine=i586-pc |
| 881 |
|
;; |
| 932 |
|
basic_machine=i586-unknown |
| 933 |
|
os=-pw32 |
| 934 |
|
;; |
| 935 |
+ |
rdos) |
| 936 |
+ |
basic_machine=i386-pc |
| 937 |
+ |
os=-rdos |
| 938 |
+ |
;; |
| 939 |
|
rom68k) |
| 940 |
|
basic_machine=m68k-rom68k |
| 941 |
|
os=-coff |
| 962 |
|
sb1el) |
| 963 |
|
basic_machine=mipsisa64sb1el-unknown |
| 964 |
|
;; |
| 965 |
+ |
sde) |
| 966 |
+ |
basic_machine=mipsisa32-sde |
| 967 |
+ |
os=-elf |
| 968 |
+ |
;; |
| 969 |
|
sei) |
| 970 |
|
basic_machine=mips-sei |
| 971 |
|
os=-seiux |
| 977 |
|
basic_machine=sh-hitachi |
| 978 |
|
os=-hms |
| 979 |
|
;; |
| 980 |
+ |
sh5el) |
| 981 |
+ |
basic_machine=sh5le-unknown |
| 982 |
+ |
;; |
| 983 |
|
sh64) |
| 984 |
|
basic_machine=sh64-unknown |
| 985 |
|
;; |
| 1069 |
|
basic_machine=tic6x-unknown |
| 1070 |
|
os=-coff |
| 1071 |
|
;; |
| 1072 |
+ |
tile*) |
| 1073 |
+ |
basic_machine=tile-unknown |
| 1074 |
+ |
os=-linux-gnu |
| 1075 |
+ |
;; |
| 1076 |
|
tx39) |
| 1077 |
|
basic_machine=mipstx39-unknown |
| 1078 |
|
;; |
| 1086 |
|
tower | tower-32) |
| 1087 |
|
basic_machine=m68k-ncr |
| 1088 |
|
;; |
| 1089 |
+ |
tpf) |
| 1090 |
+ |
basic_machine=s390x-ibm |
| 1091 |
+ |
os=-tpf |
| 1092 |
+ |
;; |
| 1093 |
|
udi29k) |
| 1094 |
|
basic_machine=a29k-amd |
| 1095 |
|
os=-udi |
| 1133 |
|
basic_machine=hppa1.1-winbond |
| 1134 |
|
os=-proelf |
| 1135 |
|
;; |
| 1136 |
+ |
xbox) |
| 1137 |
+ |
basic_machine=i686-pc |
| 1138 |
+ |
os=-mingw32 |
| 1139 |
+ |
;; |
| 1140 |
|
xps | xps100) |
| 1141 |
|
basic_machine=xps100-honeywell |
| 1142 |
|
;; |
| 1148 |
|
basic_machine=z8k-unknown |
| 1149 |
|
os=-sim |
| 1150 |
|
;; |
| 1151 |
+ |
z80-*-coff) |
| 1152 |
+ |
basic_machine=z80-unknown |
| 1153 |
+ |
os=-sim |
| 1154 |
+ |
;; |
| 1155 |
|
none) |
| 1156 |
|
basic_machine=none-none |
| 1157 |
|
os=-none |
| 1171 |
|
romp) |
| 1172 |
|
basic_machine=romp-ibm |
| 1173 |
|
;; |
| 1174 |
+ |
mmix) |
| 1175 |
+ |
basic_machine=mmix-knuth |
| 1176 |
+ |
;; |
| 1177 |
|
rs6000) |
| 1178 |
|
basic_machine=rs6000-ibm |
| 1179 |
|
;; |
| 1190 |
|
we32k) |
| 1191 |
|
basic_machine=we32k-att |
| 1192 |
|
;; |
| 1193 |
< |
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
| 1193 |
> |
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
| 1194 |
|
basic_machine=sh-unknown |
| 1195 |
|
;; |
| 1196 |
< |
sh64) |
| 1059 |
< |
basic_machine=sh64-unknown |
| 1060 |
< |
;; |
| 1061 |
< |
sparc | sparcv9 | sparcv9b) |
| 1196 |
> |
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
| 1197 |
|
basic_machine=sparc-sun |
| 1198 |
|
;; |
| 1199 |
|
cydra) |
| 1262 |
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| 1263 |
|
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
| 1264 |
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
| 1265 |
+ |
| -kopensolaris* \ |
| 1266 |
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| 1267 |
< |
| -aos* \ |
| 1267 |
> |
| -aos* | -aros* \ |
| 1268 |
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1269 |
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1270 |
< |
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ |
| 1271 |
< |
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1270 |
> |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| 1271 |
> |
| -openbsd* | -solidbsd* \ |
| 1272 |
> |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| 1273 |
> |
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1274 |
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1275 |
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1276 |
< |
| -chorusos* | -chorusrdb* \ |
| 1276 |
> |
| -chorusos* | -chorusrdb* | -cegcc* \ |
| 1277 |
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1278 |
< |
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1278 |
> |
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
| 1279 |
> |
| -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1280 |
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| 1281 |
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| 1282 |
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| 1283 |
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1284 |
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1285 |
< |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*) |
| 1285 |
> |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| 1286 |
> |
| -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
| 1287 |
|
# Remember, each alternative MUST END IN *, to match a version number. |
| 1288 |
|
;; |
| 1289 |
|
-qnx*) |
| 1301 |
|
os=`echo $os | sed -e 's|nto|nto-qnx|'` |
| 1302 |
|
;; |
| 1303 |
|
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
| 1304 |
< |
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
| 1304 |
> |
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
| 1305 |
|
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
| 1306 |
|
;; |
| 1307 |
|
-mac*) |
| 1322 |
|
-opened*) |
| 1323 |
|
os=-openedition |
| 1324 |
|
;; |
| 1325 |
+ |
-os400*) |
| 1326 |
+ |
os=-os400 |
| 1327 |
+ |
;; |
| 1328 |
|
-wince*) |
| 1329 |
|
os=-wince |
| 1330 |
|
;; |
| 1346 |
|
-atheos*) |
| 1347 |
|
os=-atheos |
| 1348 |
|
;; |
| 1349 |
+ |
-syllable*) |
| 1350 |
+ |
os=-syllable |
| 1351 |
+ |
;; |
| 1352 |
|
-386bsd) |
| 1353 |
|
os=-bsd |
| 1354 |
|
;; |
| 1371 |
|
-sinix*) |
| 1372 |
|
os=-sysv4 |
| 1373 |
|
;; |
| 1374 |
+ |
-tpf*) |
| 1375 |
+ |
os=-tpf |
| 1376 |
+ |
;; |
| 1377 |
|
-triton*) |
| 1378 |
|
os=-sysv3 |
| 1379 |
|
;; |
| 1410 |
|
-kaos*) |
| 1411 |
|
os=-kaos |
| 1412 |
|
;; |
| 1413 |
+ |
-zvmoe) |
| 1414 |
+ |
os=-zvmoe |
| 1415 |
+ |
;; |
| 1416 |
+ |
-dicos*) |
| 1417 |
+ |
os=-dicos |
| 1418 |
+ |
;; |
| 1419 |
|
-none) |
| 1420 |
|
;; |
| 1421 |
|
*) |
| 1438 |
|
# system, and we'll never get to this point. |
| 1439 |
|
|
| 1440 |
|
case $basic_machine in |
| 1441 |
+ |
score-*) |
| 1442 |
+ |
os=-elf |
| 1443 |
+ |
;; |
| 1444 |
+ |
spu-*) |
| 1445 |
+ |
os=-elf |
| 1446 |
+ |
;; |
| 1447 |
|
*-acorn) |
| 1448 |
|
os=-riscix1.2 |
| 1449 |
|
;; |
| 1453 |
|
arm*-semi) |
| 1454 |
|
os=-aout |
| 1455 |
|
;; |
| 1456 |
< |
c4x-* | tic4x-*) |
| 1457 |
< |
os=-coff |
| 1458 |
< |
;; |
| 1456 |
> |
c4x-* | tic4x-*) |
| 1457 |
> |
os=-coff |
| 1458 |
> |
;; |
| 1459 |
|
# This must come before the *-dec entry. |
| 1460 |
|
pdp10-*) |
| 1461 |
|
os=-tops20 |
| 1481 |
|
m68*-cisco) |
| 1482 |
|
os=-aout |
| 1483 |
|
;; |
| 1484 |
+ |
mep-*) |
| 1485 |
+ |
os=-elf |
| 1486 |
+ |
;; |
| 1487 |
|
mips*-cisco) |
| 1488 |
|
os=-elf |
| 1489 |
|
;; |
| 1502 |
|
*-be) |
| 1503 |
|
os=-beos |
| 1504 |
|
;; |
| 1505 |
+ |
*-haiku) |
| 1506 |
+ |
os=-haiku |
| 1507 |
+ |
;; |
| 1508 |
|
*-ibm) |
| 1509 |
|
os=-aix |
| 1510 |
|
;; |
| 1511 |
+ |
*-knuth) |
| 1512 |
+ |
os=-mmixware |
| 1513 |
+ |
;; |
| 1514 |
|
*-wec) |
| 1515 |
|
os=-proelf |
| 1516 |
|
;; |
| 1643 |
|
-mvs* | -opened*) |
| 1644 |
|
vendor=ibm |
| 1645 |
|
;; |
| 1646 |
+ |
-os400*) |
| 1647 |
+ |
vendor=ibm |
| 1648 |
+ |
;; |
| 1649 |
|
-ptx*) |
| 1650 |
|
vendor=sequent |
| 1651 |
|
;; |
| 1652 |
+ |
-tpf*) |
| 1653 |
+ |
vendor=ibm |
| 1654 |
+ |
;; |
| 1655 |
|
-vxsim* | -vxworks* | -windiss*) |
| 1656 |
|
vendor=wrs |
| 1657 |
|
;; |
| 1676 |
|
esac |
| 1677 |
|
|
| 1678 |
|
echo $basic_machine$os |
| 1679 |
< |
exit 0 |
| 1679 |
> |
exit |
| 1680 |
|
|
| 1681 |
|
# Local variables: |
| 1682 |
|
# eval: (add-hook 'write-file-hooks 'time-stamp) |