| 1 |
#! /bin/sh |
#! /bin/sh |
| 2 |
# Configuration validation subroutine script, version 1.1. |
# Configuration validation subroutine script. |
| 3 |
# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
| 4 |
|
# Free Software Foundation, Inc. |
| 5 |
|
|
| 6 |
|
timestamp='2001-05-11' |
| 7 |
|
|
| 8 |
# This file is (in principle) common to ALL GNU software. |
# This file is (in principle) common to ALL GNU software. |
| 9 |
# The presence of a machine in this file suggests that SOME GNU software |
# The presence of a machine in this file suggests that SOME GNU software |
| 10 |
# can handle that machine. It does not imply ALL GNU software can. |
# can handle that machine. It does not imply ALL GNU software can. |
| 29 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
| 30 |
# the same distribution terms that you use for the rest of that program. |
# the same distribution terms that you use for the rest of that program. |
| 31 |
|
|
| 32 |
|
# Please send patches to <config-patches@gnu.org>. |
| 33 |
|
# |
| 34 |
# Configuration subroutine to validate and canonicalize a configuration type. |
# Configuration subroutine to validate and canonicalize a configuration type. |
| 35 |
# Supply the specified configuration type as an argument. |
# Supply the specified configuration type as an argument. |
| 36 |
# If it is invalid, we print an error message on stderr and exit with code 1. |
# If it is invalid, we print an error message on stderr and exit with code 1. |
| 51 |
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
| 52 |
# It is wrong to echo any other type of specification. |
# It is wrong to echo any other type of specification. |
| 53 |
|
|
| 54 |
if [ x$1 = x ] |
me=`echo "$0" | sed -e 's,.*/,,'` |
|
then |
|
|
echo Configuration name missing. 1>&2 |
|
|
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 |
|
|
echo "or $0 ALIAS" 1>&2 |
|
|
echo where ALIAS is a recognized configuration type. 1>&2 |
|
|
exit 1 |
|
|
fi |
|
| 55 |
|
|
| 56 |
# First pass through any local machine types. |
usage="\ |
| 57 |
case $1 in |
Usage: $0 [OPTION] CPU-MFR-OPSYS |
| 58 |
*local*) |
$0 [OPTION] ALIAS |
| 59 |
echo $1 |
|
| 60 |
exit 0 |
Canonicalize a configuration name. |
| 61 |
;; |
|
| 62 |
*) |
Operation modes: |
| 63 |
;; |
-h, --help print this help, then exit |
| 64 |
|
-t, --time-stamp print date of last modification, then exit |
| 65 |
|
-v, --version print version number, then exit |
| 66 |
|
|
| 67 |
|
Report bugs and patches to <config-patches@gnu.org>." |
| 68 |
|
|
| 69 |
|
version="\ |
| 70 |
|
GNU config.sub ($timestamp) |
| 71 |
|
|
| 72 |
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
| 73 |
|
Free Software Foundation, Inc. |
| 74 |
|
|
| 75 |
|
This is free software; see the source for copying conditions. There is NO |
| 76 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 77 |
|
|
| 78 |
|
help=" |
| 79 |
|
Try \`$me --help' for more information." |
| 80 |
|
|
| 81 |
|
# Parse command line |
| 82 |
|
while test $# -gt 0 ; do |
| 83 |
|
case $1 in |
| 84 |
|
--time-stamp | --time* | -t ) |
| 85 |
|
echo "$timestamp" ; exit 0 ;; |
| 86 |
|
--version | -v ) |
| 87 |
|
echo "$version" ; exit 0 ;; |
| 88 |
|
--help | --h* | -h ) |
| 89 |
|
echo "$usage"; exit 0 ;; |
| 90 |
|
-- ) # Stop option processing |
| 91 |
|
shift; break ;; |
| 92 |
|
- ) # Use stdin as input. |
| 93 |
|
break ;; |
| 94 |
|
-* ) |
| 95 |
|
echo "$me: invalid option $1$help" |
| 96 |
|
exit 1 ;; |
| 97 |
|
|
| 98 |
|
*local*) |
| 99 |
|
# First pass through any local machine types. |
| 100 |
|
echo $1 |
| 101 |
|
exit 0;; |
| 102 |
|
|
| 103 |
|
* ) |
| 104 |
|
break ;; |
| 105 |
|
esac |
| 106 |
|
done |
| 107 |
|
|
| 108 |
|
case $# in |
| 109 |
|
0) echo "$me: missing argument$help" >&2 |
| 110 |
|
exit 1;; |
| 111 |
|
1) ;; |
| 112 |
|
*) echo "$me: too many arguments$help" >&2 |
| 113 |
|
exit 1;; |
| 114 |
esac |
esac |
| 115 |
|
|
| 116 |
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
| 117 |
# Here we must recognize all the valid KERNEL-OS combinations. |
# Here we must recognize all the valid KERNEL-OS combinations. |
| 118 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 119 |
case $maybe_os in |
case $maybe_os in |
| 120 |
linux-gnu*) |
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) |
| 121 |
os=-$maybe_os |
os=-$maybe_os |
| 122 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 123 |
;; |
;; |
| 143 |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 144 |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 145 |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 146 |
-apple) |
-apple | -axis) |
| 147 |
os= |
os= |
| 148 |
basic_machine=$1 |
basic_machine=$1 |
| 149 |
;; |
;; |
| 215 |
case $basic_machine in |
case $basic_machine in |
| 216 |
# Recognize the basic CPU types without company name. |
# Recognize the basic CPU types without company name. |
| 217 |
# Some are omitted here because they have special meanings below. |
# Some are omitted here because they have special meanings below. |
| 218 |
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ |
| 219 |
| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
| arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ |
| 220 |
|
| pyramid | mn10200 | mn10300 | tron | a29k \ |
| 221 |
| 580 | i960 | h8300 \ |
| 580 | i960 | h8300 \ |
| 222 |
|
| x86 | ppcbe | mipsbe | mipsle | shbe | shle \ |
| 223 |
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
| 224 |
| alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ |
| hppa64 \ |
| 225 |
| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ |
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
| 226 |
| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
| alphaev6[78] \ |
| 227 |
|
| we32k | ns16k | clipper | i370 | sh | sh[34] \ |
| 228 |
|
| powerpc | powerpcle \ |
| 229 |
|
| 1750a | dsp16xx | pdp10 | pdp11 \ |
| 230 |
|
| mips16 | mips64 | mipsel | mips64el \ |
| 231 |
| mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
| mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
| 232 |
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
| 233 |
| mips64vr5000 | miprs64vr5000el | mcore \ |
| mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ |
| 234 |
| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
| sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ |
| 235 |
| thumb | d10v | fr30) |
| v850 | c4x \ |
| 236 |
|
| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ |
| 237 |
|
| pj | pjl | h8500 | z8k) |
| 238 |
|
basic_machine=$basic_machine-unknown |
| 239 |
|
;; |
| 240 |
|
m6811 | m68hc11 | m6812 | m68hc12) |
| 241 |
|
# Motorola 68HC11/12. |
| 242 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
| 243 |
|
os=-none |
| 244 |
;; |
;; |
| 245 |
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65 | z8k) |
| 246 |
;; |
;; |
| 247 |
|
|
| 248 |
# We use `pc' rather than `unknown' |
# We use `pc' rather than `unknown' |
| 249 |
# because (1) that's what they normally are, and |
# because (1) that's what they normally are, and |
| 250 |
# (2) the word "unknown" tends to confuse beginning users. |
# (2) the word "unknown" tends to confuse beginning users. |
| 251 |
i[34567]86) |
i*86 | x86_64) |
| 252 |
basic_machine=$basic_machine-pc |
basic_machine=$basic_machine-pc |
| 253 |
;; |
;; |
| 254 |
# Object if more than one company name word. |
# Object if more than one company name word. |
| 258 |
;; |
;; |
| 259 |
# Recognize the basic CPU types with company name. |
# Recognize the basic CPU types with company name. |
| 260 |
# FIXME: clean up the formatting here. |
# FIXME: clean up the formatting here. |
| 261 |
vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
| 262 |
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ |
| 263 |
|
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ |
| 264 |
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
| 265 |
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
| 266 |
| xmp-* | ymp-* \ |
| xmp-* | ymp-* \ |
| 267 |
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ |
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ |
| 268 |
| alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ |
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
| 269 |
|
| hppa2.0n-* | hppa64-* \ |
| 270 |
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
| 271 |
|
| alphaev6[78]-* \ |
| 272 |
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
| 273 |
| clipper-* | orion-* \ |
| clipper-* | orion-* \ |
| 274 |
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
| sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \ |
| 275 |
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
| powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ |
| 276 |
|
| mips16-* | mips64-* | mipsel-* \ |
| 277 |
| mips64el-* | mips64orion-* | mips64orionel-* \ |
| mips64el-* | mips64orion-* | mips64orionel-* \ |
| 278 |
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
| 279 |
| mipstx39-* | mipstx39el-* | mcore-* \ |
| mipstx39-* | mipstx39el-* | mcore-* \ |
| 280 |
| f301-* | armv*-* | t3e-* \ |
| f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ |
| 281 |
|
| [cjt]90-* \ |
| 282 |
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
| 283 |
| thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* ) |
| thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ |
| 284 |
|
| bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) |
| 285 |
;; |
;; |
| 286 |
# Recognize the various machine names and aliases which stand |
# Recognize the various machine names and aliases which stand |
| 287 |
# for a CPU type and a company and sometimes even an OS. |
# for a CPU type and a company and sometimes even an OS. |
| 318 |
os=-sysv |
os=-sysv |
| 319 |
;; |
;; |
| 320 |
amiga | amiga-*) |
amiga | amiga-*) |
| 321 |
basic_machine=m68k-cbm |
basic_machine=m68k-unknown |
| 322 |
;; |
;; |
| 323 |
amigaos | amigados) |
amigaos | amigados) |
| 324 |
basic_machine=m68k-cbm |
basic_machine=m68k-unknown |
| 325 |
os=-amigaos |
os=-amigaos |
| 326 |
;; |
;; |
| 327 |
amigaunix | amix) |
amigaunix | amix) |
| 328 |
basic_machine=m68k-cbm |
basic_machine=m68k-unknown |
| 329 |
os=-sysv4 |
os=-sysv4 |
| 330 |
;; |
;; |
| 331 |
apollo68) |
apollo68) |
| 372 |
basic_machine=cray2-cray |
basic_machine=cray2-cray |
| 373 |
os=-unicos |
os=-unicos |
| 374 |
;; |
;; |
| 375 |
[ctj]90-cray) |
[cjt]90) |
| 376 |
basic_machine=c90-cray |
basic_machine=${basic_machine}-cray |
| 377 |
os=-unicos |
os=-unicos |
| 378 |
;; |
;; |
| 379 |
crds | unos) |
crds | unos) |
| 380 |
basic_machine=m68k-crds |
basic_machine=m68k-crds |
| 381 |
;; |
;; |
| 382 |
|
cris | cris-* | etrax*) |
| 383 |
|
basic_machine=cris-axis |
| 384 |
|
;; |
| 385 |
da30 | da30-*) |
da30 | da30-*) |
| 386 |
basic_machine=m68k-da30 |
basic_machine=m68k-da30 |
| 387 |
;; |
;; |
| 429 |
basic_machine=tron-gmicro |
basic_machine=tron-gmicro |
| 430 |
os=-sysv |
os=-sysv |
| 431 |
;; |
;; |
| 432 |
|
go32) |
| 433 |
|
basic_machine=i386-pc |
| 434 |
|
os=-go32 |
| 435 |
|
;; |
| 436 |
h3050r* | hiux*) |
h3050r* | hiux*) |
| 437 |
basic_machine=hppa1.1-hitachi |
basic_machine=hppa1.1-hitachi |
| 438 |
os=-hiuxwe2 |
os=-hiuxwe2 |
| 508 |
basic_machine=i370-ibm |
basic_machine=i370-ibm |
| 509 |
;; |
;; |
| 510 |
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
| 511 |
i[34567]86v32) |
i*86v32) |
| 512 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 513 |
os=-sysv32 |
os=-sysv32 |
| 514 |
;; |
;; |
| 515 |
i[34567]86v4*) |
i*86v4*) |
| 516 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 517 |
os=-sysv4 |
os=-sysv4 |
| 518 |
;; |
;; |
| 519 |
i[34567]86v) |
i*86v) |
| 520 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 521 |
os=-sysv |
os=-sysv |
| 522 |
;; |
;; |
| 523 |
i[34567]86sol2) |
i*86sol2) |
| 524 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 525 |
os=-solaris2 |
os=-solaris2 |
| 526 |
;; |
;; |
| 532 |
basic_machine=i386-unknown |
basic_machine=i386-unknown |
| 533 |
os=-vsta |
os=-vsta |
| 534 |
;; |
;; |
|
i386-go32 | go32) |
|
|
basic_machine=i386-unknown |
|
|
os=-go32 |
|
|
;; |
|
|
i386-mingw32 | mingw32) |
|
|
basic_machine=i386-unknown |
|
|
os=-mingw32 |
|
|
;; |
|
|
i386-qnx | qnx) |
|
|
basic_machine=i386-qnx |
|
|
;; |
|
| 535 |
iris | iris4d) |
iris | iris4d) |
| 536 |
basic_machine=mips-sgi |
basic_machine=mips-sgi |
| 537 |
case $os in |
case $os in |
| 557 |
basic_machine=ns32k-utek |
basic_machine=ns32k-utek |
| 558 |
os=-sysv |
os=-sysv |
| 559 |
;; |
;; |
| 560 |
|
mingw32) |
| 561 |
|
basic_machine=i386-pc |
| 562 |
|
os=-mingw32 |
| 563 |
|
;; |
| 564 |
miniframe) |
miniframe) |
| 565 |
basic_machine=m68000-convergent |
basic_machine=m68000-convergent |
| 566 |
;; |
;; |
| 582 |
mips3*) |
mips3*) |
| 583 |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
| 584 |
;; |
;; |
| 585 |
|
mmix*) |
| 586 |
|
basic_machine=mmix-knuth |
| 587 |
|
os=-mmixware |
| 588 |
|
;; |
| 589 |
monitor) |
monitor) |
| 590 |
basic_machine=m68k-rom68k |
basic_machine=m68k-rom68k |
| 591 |
os=-coff |
os=-coff |
| 592 |
;; |
;; |
| 593 |
msdos) |
msdos) |
| 594 |
basic_machine=i386-unknown |
basic_machine=i386-pc |
| 595 |
os=-msdos |
os=-msdos |
| 596 |
;; |
;; |
| 597 |
mvs) |
mvs) |
| 655 |
basic_machine=i960-intel |
basic_machine=i960-intel |
| 656 |
os=-mon960 |
os=-mon960 |
| 657 |
;; |
;; |
| 658 |
|
nonstopux) |
| 659 |
|
basic_machine=mips-compaq |
| 660 |
|
os=-nonstopux |
| 661 |
|
;; |
| 662 |
np1) |
np1) |
| 663 |
basic_machine=np1-gould |
basic_machine=np1-gould |
| 664 |
;; |
;; |
| 665 |
|
nsr-tandem) |
| 666 |
|
basic_machine=nsr-tandem |
| 667 |
|
;; |
| 668 |
op50n-* | op60c-*) |
op50n-* | op60c-*) |
| 669 |
basic_machine=hppa1.1-oki |
basic_machine=hppa1.1-oki |
| 670 |
os=-proelf |
os=-proelf |
| 694 |
pc532 | pc532-*) |
pc532 | pc532-*) |
| 695 |
basic_machine=ns32k-pc532 |
basic_machine=ns32k-pc532 |
| 696 |
;; |
;; |
| 697 |
pentium | p5 | k5 | k6 | nexen) |
pentium | p5 | k5 | k6 | nexgen) |
| 698 |
basic_machine=i586-pc |
basic_machine=i586-pc |
| 699 |
;; |
;; |
| 700 |
pentiumpro | p6 | 6x86) |
pentiumpro | p6 | 6x86 | athlon) |
| 701 |
basic_machine=i686-pc |
basic_machine=i686-pc |
| 702 |
;; |
;; |
| 703 |
pentiumii | pentium2) |
pentiumii | pentium2) |
| 704 |
basic_machine=i786-pc |
basic_machine=i686-pc |
| 705 |
;; |
;; |
| 706 |
pentium-* | p5-* | k5-* | k6-* | nexen-*) |
pentium-* | p5-* | k5-* | k6-* | nexgen-*) |
| 707 |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 708 |
;; |
;; |
| 709 |
pentiumpro-* | p6-* | 6x86-*) |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
| 710 |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 711 |
;; |
;; |
| 712 |
pentiumii-* | pentium2-*) |
pentiumii-* | pentium2-*) |
| 713 |
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 714 |
;; |
;; |
| 715 |
pn) |
pn) |
| 716 |
basic_machine=pn-gould |
basic_machine=pn-gould |
| 717 |
;; |
;; |
| 718 |
power) basic_machine=rs6000-ibm |
power) basic_machine=power-ibm |
| 719 |
;; |
;; |
| 720 |
ppc) basic_machine=powerpc-unknown |
ppc) basic_machine=powerpc-unknown |
| 721 |
;; |
;; |
| 730 |
ps2) |
ps2) |
| 731 |
basic_machine=i386-ibm |
basic_machine=i386-ibm |
| 732 |
;; |
;; |
| 733 |
|
pw32) |
| 734 |
|
basic_machine=i586-unknown |
| 735 |
|
os=-pw32 |
| 736 |
|
;; |
| 737 |
rom68k) |
rom68k) |
| 738 |
basic_machine=m68k-rom68k |
basic_machine=m68k-rom68k |
| 739 |
os=-coff |
os=-coff |
| 813 |
sun386 | sun386i | roadrunner) |
sun386 | sun386i | roadrunner) |
| 814 |
basic_machine=i386-sun |
basic_machine=i386-sun |
| 815 |
;; |
;; |
| 816 |
|
sv1) |
| 817 |
|
basic_machine=sv1-cray |
| 818 |
|
os=-unicos |
| 819 |
|
;; |
| 820 |
symmetry) |
symmetry) |
| 821 |
basic_machine=i386-sequent |
basic_machine=i386-sequent |
| 822 |
os=-dynix |
os=-dynix |
| 825 |
basic_machine=t3e-cray |
basic_machine=t3e-cray |
| 826 |
os=-unicos |
os=-unicos |
| 827 |
;; |
;; |
| 828 |
|
tic54x | c54x*) |
| 829 |
|
basic_machine=tic54x-unknown |
| 830 |
|
os=-coff |
| 831 |
|
;; |
| 832 |
tx39) |
tx39) |
| 833 |
basic_machine=mipstx39-unknown |
basic_machine=mipstx39-unknown |
| 834 |
;; |
;; |
| 924 |
vax) |
vax) |
| 925 |
basic_machine=vax-dec |
basic_machine=vax-dec |
| 926 |
;; |
;; |
| 927 |
|
pdp10) |
| 928 |
|
# there are many clones, so DEC is not a safe bet |
| 929 |
|
basic_machine=pdp10-unknown |
| 930 |
|
;; |
| 931 |
pdp11) |
pdp11) |
| 932 |
basic_machine=pdp11-dec |
basic_machine=pdp11-dec |
| 933 |
;; |
;; |
| 934 |
we32k) |
we32k) |
| 935 |
basic_machine=we32k-att |
basic_machine=we32k-att |
| 936 |
;; |
;; |
| 937 |
sparc | sparcv9) |
sh3 | sh4) |
| 938 |
|
basic_machine=sh-unknown |
| 939 |
|
;; |
| 940 |
|
sparc | sparcv9 | sparcv9b) |
| 941 |
basic_machine=sparc-sun |
basic_machine=sparc-sun |
| 942 |
;; |
;; |
| 943 |
cydra) |
cydra) |
| 959 |
basic_machine=c4x-none |
basic_machine=c4x-none |
| 960 |
os=-coff |
os=-coff |
| 961 |
;; |
;; |
| 962 |
|
*-unknown) |
| 963 |
|
# Make sure to match an already-canonicalized machine name. |
| 964 |
|
;; |
| 965 |
*) |
*) |
| 966 |
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
| 967 |
exit 1 |
exit 1 |
| 1020 |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1021 |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1022 |
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1023 |
| -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*) |
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
| 1024 |
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| 1025 |
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) |
| 1026 |
# Remember, each alternative MUST END IN *, to match a version number. |
# Remember, each alternative MUST END IN *, to match a version number. |
| 1027 |
;; |
;; |
| 1028 |
|
-qnx*) |
| 1029 |
|
case $basic_machine in |
| 1030 |
|
x86-* | i*86-*) |
| 1031 |
|
;; |
| 1032 |
|
*) |
| 1033 |
|
os=-nto$os |
| 1034 |
|
;; |
| 1035 |
|
esac |
| 1036 |
|
;; |
| 1037 |
|
-nto*) |
| 1038 |
|
os=-nto-qnx |
| 1039 |
|
;; |
| 1040 |
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
| 1041 |
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
| 1042 |
| -macos* | -mpw* | -magic* | -mon960* | -lnews*) |
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
| 1043 |
;; |
;; |
| 1044 |
-mac*) |
-mac*) |
| 1045 |
os=`echo $os | sed -e 's|mac|macos|'` |
os=`echo $os | sed -e 's|mac|macos|'` |
| 1056 |
-opened*) |
-opened*) |
| 1057 |
os=-openedition |
os=-openedition |
| 1058 |
;; |
;; |
| 1059 |
|
-wince*) |
| 1060 |
|
os=-wince |
| 1061 |
|
;; |
| 1062 |
-osfrose*) |
-osfrose*) |
| 1063 |
os=-osfrose |
os=-osfrose |
| 1064 |
;; |
;; |
| 1083 |
-ns2 ) |
-ns2 ) |
| 1084 |
os=-nextstep2 |
os=-nextstep2 |
| 1085 |
;; |
;; |
| 1086 |
|
-nsk*) |
| 1087 |
|
os=-nsk |
| 1088 |
|
;; |
| 1089 |
# Preserve the version number of sinix5. |
# Preserve the version number of sinix5. |
| 1090 |
-sinix5.*) |
-sinix5.*) |
| 1091 |
os=`echo $os | sed -e 's|sinix|sysv|'` |
os=`echo $os | sed -e 's|sinix|sysv|'` |
| 1099 |
-oss*) |
-oss*) |
| 1100 |
os=-sysv3 |
os=-sysv3 |
| 1101 |
;; |
;; |
|
-qnx) |
|
|
os=-qnx4 |
|
|
;; |
|
| 1102 |
-svr4) |
-svr4) |
| 1103 |
os=-sysv4 |
os=-sysv4 |
| 1104 |
;; |
;; |
| 1120 |
-xenix) |
-xenix) |
| 1121 |
os=-xenix |
os=-xenix |
| 1122 |
;; |
;; |
| 1123 |
-*mint | -*MiNT) |
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
| 1124 |
os=-mint |
os=-mint |
| 1125 |
;; |
;; |
| 1126 |
-none) |
-none) |
| 1154 |
arm*-semi) |
arm*-semi) |
| 1155 |
os=-aout |
os=-aout |
| 1156 |
;; |
;; |
| 1157 |
|
pdp10-*) |
| 1158 |
|
os=-tops20 |
| 1159 |
|
;; |
| 1160 |
pdp11-*) |
pdp11-*) |
| 1161 |
os=-none |
os=-none |
| 1162 |
;; |
;; |
| 1265 |
*-masscomp) |
*-masscomp) |
| 1266 |
os=-rtu |
os=-rtu |
| 1267 |
;; |
;; |
| 1268 |
f301-fujitsu) |
f30[01]-fujitsu | f700-fujitsu) |
| 1269 |
os=-uxpv |
os=-uxpv |
| 1270 |
;; |
;; |
| 1271 |
*-rom68k) |
*-rom68k) |
| 1343 |
-mpw* | -macos*) |
-mpw* | -macos*) |
| 1344 |
vendor=apple |
vendor=apple |
| 1345 |
;; |
;; |
| 1346 |
-*mint | -*MiNT) |
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
| 1347 |
vendor=atari |
vendor=atari |
| 1348 |
;; |
;; |
| 1349 |
esac |
esac |
| 1352 |
esac |
esac |
| 1353 |
|
|
| 1354 |
echo $basic_machine$os |
echo $basic_machine$os |
| 1355 |
|
exit 0 |
| 1356 |
|
|
| 1357 |
|
# Local variables: |
| 1358 |
|
# eval: (add-hook 'write-file-hooks 'time-stamp) |
| 1359 |
|
# time-stamp-start: "timestamp='" |
| 1360 |
|
# time-stamp-format: "%:y-%02m-%02d" |
| 1361 |
|
# time-stamp-end: "'" |
| 1362 |
|
# End: |