melunko@917: #! /bin/sh melunko@917: # Configuration validation subroutine script. melunko@917: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, melunko@917: # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, melunko@917: # Inc. melunko@917: melunko@917: timestamp='2007-01-18' melunko@917: melunko@917: # This file is (in principle) common to ALL GNU software. melunko@917: # The presence of a machine in this file suggests that SOME GNU software melunko@917: # can handle that machine. It does not imply ALL GNU software can. melunko@917: # melunko@917: # This file is free software; you can redistribute it and/or modify melunko@917: # it under the terms of the GNU General Public License as published by melunko@917: # the Free Software Foundation; either version 2 of the License, or melunko@917: # (at your option) any later version. melunko@917: # melunko@917: # This program is distributed in the hope that it will be useful, melunko@917: # but WITHOUT ANY WARRANTY; without even the implied warranty of melunko@917: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the melunko@917: # GNU General Public License for more details. melunko@917: # melunko@917: # You should have received a copy of the GNU General Public License melunko@917: # along with this program; if not, write to the Free Software melunko@917: # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA melunko@917: # 02110-1301, USA. melunko@917: # melunko@917: # As a special exception to the GNU General Public License, if you melunko@917: # distribute this file as part of a program that contains a melunko@917: # configuration script generated by Autoconf, you may include it under melunko@917: # the same distribution terms that you use for the rest of that program. melunko@917: melunko@917: melunko@917: # Please send patches to . Submit a context melunko@917: # diff and a properly formatted ChangeLog entry. melunko@917: # melunko@917: # Configuration subroutine to validate and canonicalize a configuration type. melunko@917: # Supply the specified configuration type as an argument. melunko@917: # If it is invalid, we print an error message on stderr and exit with code 1. melunko@917: # Otherwise, we print the canonical config type on stdout and succeed. melunko@917: melunko@917: # This file is supposed to be the same for all GNU packages melunko@917: # and recognize all the CPU types, system types and aliases melunko@917: # that are meaningful with *any* GNU software. melunko@917: # Each package is responsible for reporting which valid configurations melunko@917: # it does not support. The user should be able to distinguish melunko@917: # a failure to support a valid configuration from a meaningless melunko@917: # configuration. melunko@917: melunko@917: # The goal of this file is to map all the various variations of a given melunko@917: # machine specification into a single specification in the form: melunko@917: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM melunko@917: # or in some cases, the newer four-part form: melunko@917: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM melunko@917: # It is wrong to echo any other type of specification. melunko@917: melunko@917: me=`echo "$0" | sed -e 's,.*/,,'` melunko@917: melunko@917: usage="\ melunko@917: Usage: $0 [OPTION] CPU-MFR-OPSYS melunko@917: $0 [OPTION] ALIAS melunko@917: melunko@917: Canonicalize a configuration name. melunko@917: melunko@917: Operation modes: melunko@917: -h, --help print this help, then exit melunko@917: -t, --time-stamp print date of last modification, then exit melunko@917: -v, --version print version number, then exit melunko@917: melunko@917: Report bugs and patches to ." melunko@917: melunko@917: version="\ melunko@917: GNU config.sub ($timestamp) melunko@917: melunko@917: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 melunko@917: Free Software Foundation, Inc. melunko@917: melunko@917: This is free software; see the source for copying conditions. There is NO melunko@917: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." melunko@917: melunko@917: help=" melunko@917: Try \`$me --help' for more information." melunko@917: melunko@917: # Parse command line melunko@917: while test $# -gt 0 ; do melunko@917: case $1 in melunko@917: --time-stamp | --time* | -t ) melunko@917: echo "$timestamp" ; exit ;; melunko@917: --version | -v ) melunko@917: echo "$version" ; exit ;; melunko@917: --help | --h* | -h ) melunko@917: echo "$usage"; exit ;; melunko@917: -- ) # Stop option processing melunko@917: shift; break ;; melunko@917: - ) # Use stdin as input. melunko@917: break ;; melunko@917: -* ) melunko@917: echo "$me: invalid option $1$help" melunko@917: exit 1 ;; melunko@917: melunko@917: *local*) melunko@917: # First pass through any local machine types. melunko@917: echo $1 melunko@917: exit ;; melunko@917: melunko@917: * ) melunko@917: break ;; melunko@917: esac melunko@917: done melunko@917: melunko@917: case $# in melunko@917: 0) echo "$me: missing argument$help" >&2 melunko@917: exit 1;; melunko@917: 1) ;; melunko@917: *) echo "$me: too many arguments$help" >&2 melunko@917: exit 1;; melunko@917: esac melunko@917: melunko@917: # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). melunko@917: # Here we must recognize all the valid KERNEL-OS combinations. melunko@917: maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` melunko@917: case $maybe_os in melunko@917: nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ melunko@917: uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ melunko@917: storm-chaos* | os2-emx* | rtmk-nova*) melunko@917: os=-$maybe_os melunko@917: basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` melunko@917: ;; melunko@917: *) melunko@917: basic_machine=`echo $1 | sed 's/-[^-]*$//'` melunko@917: if [ $basic_machine != $1 ] melunko@917: then os=`echo $1 | sed 's/.*-/-/'` melunko@917: else os=; fi melunko@917: ;; melunko@917: esac melunko@917: melunko@917: ### Let's recognize common machines as not being operating systems so melunko@917: ### that things like config.sub decstation-3100 work. We also melunko@917: ### recognize some manufacturers as not being operating systems, so we melunko@917: ### can provide default operating systems below. melunko@917: case $os in melunko@917: -sun*os*) melunko@917: # Prevent following clause from handling this invalid input. melunko@917: ;; melunko@917: -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ melunko@917: -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ melunko@917: -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ melunko@917: -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ melunko@917: -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ melunko@917: -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ melunko@917: -apple | -axis | -knuth | -cray) melunko@917: os= melunko@917: basic_machine=$1 melunko@917: ;; melunko@917: -sim | -cisco | -oki | -wec | -winbond) melunko@917: os= melunko@917: basic_machine=$1 melunko@917: ;; melunko@917: -scout) melunko@917: ;; melunko@917: -wrs) melunko@917: os=-vxworks melunko@917: basic_machine=$1 melunko@917: ;; melunko@917: -chorusos*) melunko@917: os=-chorusos melunko@917: basic_machine=$1 melunko@917: ;; melunko@917: -chorusrdb) melunko@917: os=-chorusrdb melunko@917: basic_machine=$1 melunko@917: ;; melunko@917: -hiux*) melunko@917: os=-hiuxwe2 melunko@917: ;; melunko@917: -sco6) melunko@917: os=-sco5v6 melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -sco5) melunko@917: os=-sco3.2v5 melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -sco4) melunko@917: os=-sco3.2v4 melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -sco3.2.[4-9]*) melunko@917: os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -sco3.2v[4-9]*) melunko@917: # Don't forget version if it is 3.2v4 or newer. melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -sco5v6*) melunko@917: # Don't forget version if it is 3.2v4 or newer. melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -sco*) melunko@917: os=-sco3.2v2 melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -udk*) melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -isc) melunko@917: os=-isc2.2 melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -clix*) melunko@917: basic_machine=clipper-intergraph melunko@917: ;; melunko@917: -isc*) melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` melunko@917: ;; melunko@917: -lynx*) melunko@917: os=-lynxos melunko@917: ;; melunko@917: -ptx*) melunko@917: basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` melunko@917: ;; melunko@917: -windowsnt*) melunko@917: os=`echo $os | sed -e 's/windowsnt/winnt/'` melunko@917: ;; melunko@917: -psos*) melunko@917: os=-psos melunko@917: ;; melunko@917: -mint | -mint[0-9]*) melunko@917: basic_machine=m68k-atari melunko@917: os=-mint melunko@917: ;; melunko@917: esac melunko@917: melunko@917: # Decode aliases for certain CPU-COMPANY combinations. melunko@917: case $basic_machine in melunko@917: # Recognize the basic CPU types without company name. melunko@917: # Some are omitted here because they have special meanings below. melunko@917: 1750a | 580 \ melunko@917: | a29k \ melunko@917: | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ melunko@917: | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ melunko@917: | am33_2.0 \ melunko@917: | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ melunko@917: | bfin \ melunko@917: | c4x | clipper \ melunko@917: | d10v | d30v | dlx | dsp16xx \ melunko@917: | fido | fr30 | frv \ melunko@917: | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ melunko@917: | i370 | i860 | i960 | ia64 \ melunko@917: | ip2k | iq2000 \ melunko@917: | m32c | m32r | m32rle | m68000 | m68k | m88k \ melunko@917: | maxq | mb | microblaze | mcore | mep \ melunko@917: | mips | mipsbe | mipseb | mipsel | mipsle \ melunko@917: | mips16 \ melunko@917: | mips64 | mips64el \ melunko@917: | mips64vr | mips64vrel \ melunko@917: | mips64orion | mips64orionel \ melunko@917: | mips64vr4100 | mips64vr4100el \ melunko@917: | mips64vr4300 | mips64vr4300el \ melunko@917: | mips64vr5000 | mips64vr5000el \ melunko@917: | mips64vr5900 | mips64vr5900el \ melunko@917: | mipsisa32 | mipsisa32el \ melunko@917: | mipsisa32r2 | mipsisa32r2el \ melunko@917: | mipsisa64 | mipsisa64el \ melunko@917: | mipsisa64r2 | mipsisa64r2el \ melunko@917: | mipsisa64sb1 | mipsisa64sb1el \ melunko@917: | mipsisa64sr71k | mipsisa64sr71kel \ melunko@917: | mipstx39 | mipstx39el \ melunko@917: | mn10200 | mn10300 \ melunko@917: | mt \ melunko@917: | msp430 \ melunko@917: | nios | nios2 \ melunko@917: | ns16k | ns32k \ melunko@917: | or32 \ melunko@917: | pdp10 | pdp11 | pj | pjl \ melunko@917: | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ melunko@917: | pyramid \ melunko@917: | score \ melunko@917: | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ melunko@917: | sh64 | sh64le \ melunko@917: | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ melunko@917: | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ melunko@917: | spu | strongarm \ melunko@917: | tahoe | thumb | tic4x | tic80 | tron \ melunko@917: | v850 | v850e \ melunko@917: | we32k \ melunko@917: | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ melunko@917: | z8k) melunko@917: basic_machine=$basic_machine-unknown melunko@917: ;; melunko@917: m6811 | m68hc11 | m6812 | m68hc12) melunko@917: # Motorola 68HC11/12. melunko@917: basic_machine=$basic_machine-unknown melunko@917: os=-none melunko@917: ;; melunko@917: m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) melunko@917: ;; melunko@917: ms1) melunko@917: basic_machine=mt-unknown melunko@917: ;; melunko@917: melunko@917: # We use `pc' rather than `unknown' melunko@917: # because (1) that's what they normally are, and melunko@917: # (2) the word "unknown" tends to confuse beginning users. melunko@917: i*86 | x86_64) melunko@917: basic_machine=$basic_machine-pc melunko@917: ;; melunko@917: # Object if more than one company name word. melunko@917: *-*-*) melunko@917: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 melunko@917: exit 1 melunko@917: ;; melunko@917: # Recognize the basic CPU types with company name. melunko@917: 580-* \ melunko@917: | a29k-* \ melunko@917: | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ melunko@917: | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ melunko@917: | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ melunko@917: | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ melunko@917: | avr-* | avr32-* \ melunko@917: | bfin-* | bs2000-* \ melunko@917: | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ melunko@917: | clipper-* | craynv-* | cydra-* \ melunko@917: | d10v-* | d30v-* | dlx-* \ melunko@917: | elxsi-* \ melunko@917: | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ melunko@917: | h8300-* | h8500-* \ melunko@917: | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ melunko@917: | i*86-* | i860-* | i960-* | ia64-* \ melunko@917: | ip2k-* | iq2000-* \ melunko@917: | m32c-* | m32r-* | m32rle-* \ melunko@917: | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ melunko@917: | m88110-* | m88k-* | maxq-* | mcore-* \ melunko@917: | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ melunko@917: | mips16-* \ melunko@917: | mips64-* | mips64el-* \ melunko@917: | mips64vr-* | mips64vrel-* \ melunko@917: | mips64orion-* | mips64orionel-* \ melunko@917: | mips64vr4100-* | mips64vr4100el-* \ melunko@917: | mips64vr4300-* | mips64vr4300el-* \ melunko@917: | mips64vr5000-* | mips64vr5000el-* \ melunko@917: | mips64vr5900-* | mips64vr5900el-* \ melunko@917: | mipsisa32-* | mipsisa32el-* \ melunko@917: | mipsisa32r2-* | mipsisa32r2el-* \ melunko@917: | mipsisa64-* | mipsisa64el-* \ melunko@917: | mipsisa64r2-* | mipsisa64r2el-* \ melunko@917: | mipsisa64sb1-* | mipsisa64sb1el-* \ melunko@917: | mipsisa64sr71k-* | mipsisa64sr71kel-* \ melunko@917: | mipstx39-* | mipstx39el-* \ melunko@917: | mmix-* \ melunko@917: | mt-* \ melunko@917: | msp430-* \ melunko@917: | nios-* | nios2-* \ melunko@917: | none-* | np1-* | ns16k-* | ns32k-* \ melunko@917: | orion-* \ melunko@917: | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ melunko@917: | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ melunko@917: | pyramid-* \ melunko@917: | romp-* | rs6000-* \ melunko@917: | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ melunko@917: | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ melunko@917: | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ melunko@917: | sparclite-* \ melunko@917: | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ melunko@917: | tahoe-* | thumb-* \ melunko@917: | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ melunko@917: | tron-* \ melunko@917: | v850-* | v850e-* | vax-* \ melunko@917: | we32k-* \ melunko@917: | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ melunko@917: | xstormy16-* | xtensa-* \ melunko@917: | ymp-* \ melunko@917: | z8k-*) melunko@917: ;; melunko@917: # Recognize the various machine names and aliases which stand melunko@917: # for a CPU type and a company and sometimes even an OS. melunko@917: 386bsd) melunko@917: basic_machine=i386-unknown melunko@917: os=-bsd melunko@917: ;; melunko@917: 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) melunko@917: basic_machine=m68000-att melunko@917: ;; melunko@917: 3b*) melunko@917: basic_machine=we32k-att melunko@917: ;; melunko@917: a29khif) melunko@917: basic_machine=a29k-amd melunko@917: os=-udi melunko@917: ;; melunko@917: abacus) melunko@917: basic_machine=abacus-unknown melunko@917: ;; melunko@917: adobe68k) melunko@917: basic_machine=m68010-adobe melunko@917: os=-scout melunko@917: ;; melunko@917: alliant | fx80) melunko@917: basic_machine=fx80-alliant melunko@917: ;; melunko@917: altos | altos3068) melunko@917: basic_machine=m68k-altos melunko@917: ;; melunko@917: am29k) melunko@917: basic_machine=a29k-none melunko@917: os=-bsd melunko@917: ;; melunko@917: amd64) melunko@917: basic_machine=x86_64-pc melunko@917: ;; melunko@917: amd64-*) melunko@917: basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: amdahl) melunko@917: basic_machine=580-amdahl melunko@917: os=-sysv melunko@917: ;; melunko@917: amiga | amiga-*) melunko@917: basic_machine=m68k-unknown melunko@917: ;; melunko@917: amigaos | amigados) melunko@917: basic_machine=m68k-unknown melunko@917: os=-amigaos melunko@917: ;; melunko@917: amigaunix | amix) melunko@917: basic_machine=m68k-unknown melunko@917: os=-sysv4 melunko@917: ;; melunko@917: apollo68) melunko@917: basic_machine=m68k-apollo melunko@917: os=-sysv melunko@917: ;; melunko@917: apollo68bsd) melunko@917: basic_machine=m68k-apollo melunko@917: os=-bsd melunko@917: ;; melunko@917: aux) melunko@917: basic_machine=m68k-apple melunko@917: os=-aux melunko@917: ;; melunko@917: balance) melunko@917: basic_machine=ns32k-sequent melunko@917: os=-dynix melunko@917: ;; melunko@917: c90) melunko@917: basic_machine=c90-cray melunko@917: os=-unicos melunko@917: ;; melunko@917: convex-c1) melunko@917: basic_machine=c1-convex melunko@917: os=-bsd melunko@917: ;; melunko@917: convex-c2) melunko@917: basic_machine=c2-convex melunko@917: os=-bsd melunko@917: ;; melunko@917: convex-c32) melunko@917: basic_machine=c32-convex melunko@917: os=-bsd melunko@917: ;; melunko@917: convex-c34) melunko@917: basic_machine=c34-convex melunko@917: os=-bsd melunko@917: ;; melunko@917: convex-c38) melunko@917: basic_machine=c38-convex melunko@917: os=-bsd melunko@917: ;; melunko@917: cray | j90) melunko@917: basic_machine=j90-cray melunko@917: os=-unicos melunko@917: ;; melunko@917: craynv) melunko@917: basic_machine=craynv-cray melunko@917: os=-unicosmp melunko@917: ;; melunko@917: cr16c) melunko@917: basic_machine=cr16c-unknown melunko@917: os=-elf melunko@917: ;; melunko@917: crds | unos) melunko@917: basic_machine=m68k-crds melunko@917: ;; melunko@917: crisv32 | crisv32-* | etraxfs*) melunko@917: basic_machine=crisv32-axis melunko@917: ;; melunko@917: cris | cris-* | etrax*) melunko@917: basic_machine=cris-axis melunko@917: ;; melunko@917: crx) melunko@917: basic_machine=crx-unknown melunko@917: os=-elf melunko@917: ;; melunko@917: da30 | da30-*) melunko@917: basic_machine=m68k-da30 melunko@917: ;; melunko@917: decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) melunko@917: basic_machine=mips-dec melunko@917: ;; melunko@917: decsystem10* | dec10*) melunko@917: basic_machine=pdp10-dec melunko@917: os=-tops10 melunko@917: ;; melunko@917: decsystem20* | dec20*) melunko@917: basic_machine=pdp10-dec melunko@917: os=-tops20 melunko@917: ;; melunko@917: delta | 3300 | motorola-3300 | motorola-delta \ melunko@917: | 3300-motorola | delta-motorola) melunko@917: basic_machine=m68k-motorola melunko@917: ;; melunko@917: delta88) melunko@917: basic_machine=m88k-motorola melunko@917: os=-sysv3 melunko@917: ;; melunko@917: djgpp) melunko@917: basic_machine=i586-pc melunko@917: os=-msdosdjgpp melunko@917: ;; melunko@917: dpx20 | dpx20-*) melunko@917: basic_machine=rs6000-bull melunko@917: os=-bosx melunko@917: ;; melunko@917: dpx2* | dpx2*-bull) melunko@917: basic_machine=m68k-bull melunko@917: os=-sysv3 melunko@917: ;; melunko@917: ebmon29k) melunko@917: basic_machine=a29k-amd melunko@917: os=-ebmon melunko@917: ;; melunko@917: elxsi) melunko@917: basic_machine=elxsi-elxsi melunko@917: os=-bsd melunko@917: ;; melunko@917: encore | umax | mmax) melunko@917: basic_machine=ns32k-encore melunko@917: ;; melunko@917: es1800 | OSE68k | ose68k | ose | OSE) melunko@917: basic_machine=m68k-ericsson melunko@917: os=-ose melunko@917: ;; melunko@917: fx2800) melunko@917: basic_machine=i860-alliant melunko@917: ;; melunko@917: genix) melunko@917: basic_machine=ns32k-ns melunko@917: ;; melunko@917: gmicro) melunko@917: basic_machine=tron-gmicro melunko@917: os=-sysv melunko@917: ;; melunko@917: go32) melunko@917: basic_machine=i386-pc melunko@917: os=-go32 melunko@917: ;; melunko@917: h3050r* | hiux*) melunko@917: basic_machine=hppa1.1-hitachi melunko@917: os=-hiuxwe2 melunko@917: ;; melunko@917: h8300hms) melunko@917: basic_machine=h8300-hitachi melunko@917: os=-hms melunko@917: ;; melunko@917: h8300xray) melunko@917: basic_machine=h8300-hitachi melunko@917: os=-xray melunko@917: ;; melunko@917: h8500hms) melunko@917: basic_machine=h8500-hitachi melunko@917: os=-hms melunko@917: ;; melunko@917: harris) melunko@917: basic_machine=m88k-harris melunko@917: os=-sysv3 melunko@917: ;; melunko@917: hp300-*) melunko@917: basic_machine=m68k-hp melunko@917: ;; melunko@917: hp300bsd) melunko@917: basic_machine=m68k-hp melunko@917: os=-bsd melunko@917: ;; melunko@917: hp300hpux) melunko@917: basic_machine=m68k-hp melunko@917: os=-hpux melunko@917: ;; melunko@917: hp3k9[0-9][0-9] | hp9[0-9][0-9]) melunko@917: basic_machine=hppa1.0-hp melunko@917: ;; melunko@917: hp9k2[0-9][0-9] | hp9k31[0-9]) melunko@917: basic_machine=m68000-hp melunko@917: ;; melunko@917: hp9k3[2-9][0-9]) melunko@917: basic_machine=m68k-hp melunko@917: ;; melunko@917: hp9k6[0-9][0-9] | hp6[0-9][0-9]) melunko@917: basic_machine=hppa1.0-hp melunko@917: ;; melunko@917: hp9k7[0-79][0-9] | hp7[0-79][0-9]) melunko@917: basic_machine=hppa1.1-hp melunko@917: ;; melunko@917: hp9k78[0-9] | hp78[0-9]) melunko@917: # FIXME: really hppa2.0-hp melunko@917: basic_machine=hppa1.1-hp melunko@917: ;; melunko@917: hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) melunko@917: # FIXME: really hppa2.0-hp melunko@917: basic_machine=hppa1.1-hp melunko@917: ;; melunko@917: hp9k8[0-9][13679] | hp8[0-9][13679]) melunko@917: basic_machine=hppa1.1-hp melunko@917: ;; melunko@917: hp9k8[0-9][0-9] | hp8[0-9][0-9]) melunko@917: basic_machine=hppa1.0-hp melunko@917: ;; melunko@917: hppa-next) melunko@917: os=-nextstep3 melunko@917: ;; melunko@917: hppaosf) melunko@917: basic_machine=hppa1.1-hp melunko@917: os=-osf melunko@917: ;; melunko@917: hppro) melunko@917: basic_machine=hppa1.1-hp melunko@917: os=-proelf melunko@917: ;; melunko@917: i370-ibm* | ibm*) melunko@917: basic_machine=i370-ibm melunko@917: ;; melunko@917: # I'm not sure what "Sysv32" means. Should this be sysv3.2? melunko@917: i*86v32) melunko@917: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` melunko@917: os=-sysv32 melunko@917: ;; melunko@917: i*86v4*) melunko@917: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` melunko@917: os=-sysv4 melunko@917: ;; melunko@917: i*86v) melunko@917: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` melunko@917: os=-sysv melunko@917: ;; melunko@917: i*86sol2) melunko@917: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` melunko@917: os=-solaris2 melunko@917: ;; melunko@917: i386mach) melunko@917: basic_machine=i386-mach melunko@917: os=-mach melunko@917: ;; melunko@917: i386-vsta | vsta) melunko@917: basic_machine=i386-unknown melunko@917: os=-vsta melunko@917: ;; melunko@917: iris | iris4d) melunko@917: basic_machine=mips-sgi melunko@917: case $os in melunko@917: -irix*) melunko@917: ;; melunko@917: *) melunko@917: os=-irix4 melunko@917: ;; melunko@917: esac melunko@917: ;; melunko@917: isi68 | isi) melunko@917: basic_machine=m68k-isi melunko@917: os=-sysv melunko@917: ;; melunko@917: m88k-omron*) melunko@917: basic_machine=m88k-omron melunko@917: ;; melunko@917: magnum | m3230) melunko@917: basic_machine=mips-mips melunko@917: os=-sysv melunko@917: ;; melunko@917: merlin) melunko@917: basic_machine=ns32k-utek melunko@917: os=-sysv melunko@917: ;; melunko@917: mingw32) melunko@917: basic_machine=i386-pc melunko@917: os=-mingw32 melunko@917: ;; melunko@917: miniframe) melunko@917: basic_machine=m68000-convergent melunko@917: ;; melunko@917: *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) melunko@917: basic_machine=m68k-atari melunko@917: os=-mint melunko@917: ;; melunko@917: mips3*-*) melunko@917: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` melunko@917: ;; melunko@917: mips3*) melunko@917: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown melunko@917: ;; melunko@917: monitor) melunko@917: basic_machine=m68k-rom68k melunko@917: os=-coff melunko@917: ;; melunko@917: morphos) melunko@917: basic_machine=powerpc-unknown melunko@917: os=-morphos melunko@917: ;; melunko@917: msdos) melunko@917: basic_machine=i386-pc melunko@917: os=-msdos melunko@917: ;; melunko@917: ms1-*) melunko@917: basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` melunko@917: ;; melunko@917: mvs) melunko@917: basic_machine=i370-ibm melunko@917: os=-mvs melunko@917: ;; melunko@917: ncr3000) melunko@917: basic_machine=i486-ncr melunko@917: os=-sysv4 melunko@917: ;; melunko@917: netbsd386) melunko@917: basic_machine=i386-unknown melunko@917: os=-netbsd melunko@917: ;; melunko@917: netwinder) melunko@917: basic_machine=armv4l-rebel melunko@917: os=-linux melunko@917: ;; melunko@917: news | news700 | news800 | news900) melunko@917: basic_machine=m68k-sony melunko@917: os=-newsos melunko@917: ;; melunko@917: news1000) melunko@917: basic_machine=m68030-sony melunko@917: os=-newsos melunko@917: ;; melunko@917: news-3600 | risc-news) melunko@917: basic_machine=mips-sony melunko@917: os=-newsos melunko@917: ;; melunko@917: necv70) melunko@917: basic_machine=v70-nec melunko@917: os=-sysv melunko@917: ;; melunko@917: next | m*-next ) melunko@917: basic_machine=m68k-next melunko@917: case $os in melunko@917: -nextstep* ) melunko@917: ;; melunko@917: -ns2*) melunko@917: os=-nextstep2 melunko@917: ;; melunko@917: *) melunko@917: os=-nextstep3 melunko@917: ;; melunko@917: esac melunko@917: ;; melunko@917: nh3000) melunko@917: basic_machine=m68k-harris melunko@917: os=-cxux melunko@917: ;; melunko@917: nh[45]000) melunko@917: basic_machine=m88k-harris melunko@917: os=-cxux melunko@917: ;; melunko@917: nindy960) melunko@917: basic_machine=i960-intel melunko@917: os=-nindy melunko@917: ;; melunko@917: mon960) melunko@917: basic_machine=i960-intel melunko@917: os=-mon960 melunko@917: ;; melunko@917: nonstopux) melunko@917: basic_machine=mips-compaq melunko@917: os=-nonstopux melunko@917: ;; melunko@917: np1) melunko@917: basic_machine=np1-gould melunko@917: ;; melunko@917: nsr-tandem) melunko@917: basic_machine=nsr-tandem melunko@917: ;; melunko@917: op50n-* | op60c-*) melunko@917: basic_machine=hppa1.1-oki melunko@917: os=-proelf melunko@917: ;; melunko@917: openrisc | openrisc-*) melunko@917: basic_machine=or32-unknown melunko@917: ;; melunko@917: os400) melunko@917: basic_machine=powerpc-ibm melunko@917: os=-os400 melunko@917: ;; melunko@917: OSE68000 | ose68000) melunko@917: basic_machine=m68000-ericsson melunko@917: os=-ose melunko@917: ;; melunko@917: os68k) melunko@917: basic_machine=m68k-none melunko@917: os=-os68k melunko@917: ;; melunko@917: pa-hitachi) melunko@917: basic_machine=hppa1.1-hitachi melunko@917: os=-hiuxwe2 melunko@917: ;; melunko@917: paragon) melunko@917: basic_machine=i860-intel melunko@917: os=-osf melunko@917: ;; melunko@917: pbd) melunko@917: basic_machine=sparc-tti melunko@917: ;; melunko@917: pbb) melunko@917: basic_machine=m68k-tti melunko@917: ;; melunko@917: pc532 | pc532-*) melunko@917: basic_machine=ns32k-pc532 melunko@917: ;; melunko@917: pc98) melunko@917: basic_machine=i386-pc melunko@917: ;; melunko@917: pc98-*) melunko@917: basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: pentium | p5 | k5 | k6 | nexgen | viac3) melunko@917: basic_machine=i586-pc melunko@917: ;; melunko@917: pentiumpro | p6 | 6x86 | athlon | athlon_*) melunko@917: basic_machine=i686-pc melunko@917: ;; melunko@917: pentiumii | pentium2 | pentiumiii | pentium3) melunko@917: basic_machine=i686-pc melunko@917: ;; melunko@917: pentium4) melunko@917: basic_machine=i786-pc melunko@917: ;; melunko@917: pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) melunko@917: basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: pentiumpro-* | p6-* | 6x86-* | athlon-*) melunko@917: basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) melunko@917: basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: pentium4-*) melunko@917: basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: pn) melunko@917: basic_machine=pn-gould melunko@917: ;; melunko@917: power) basic_machine=power-ibm melunko@917: ;; melunko@917: ppc) basic_machine=powerpc-unknown melunko@917: ;; melunko@917: ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: ppcle | powerpclittle | ppc-le | powerpc-little) melunko@917: basic_machine=powerpcle-unknown melunko@917: ;; melunko@917: ppcle-* | powerpclittle-*) melunko@917: basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: ppc64) basic_machine=powerpc64-unknown melunko@917: ;; melunko@917: ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: ppc64le | powerpc64little | ppc64-le | powerpc64-little) melunko@917: basic_machine=powerpc64le-unknown melunko@917: ;; melunko@917: ppc64le-* | powerpc64little-*) melunko@917: basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` melunko@917: ;; melunko@917: ps2) melunko@917: basic_machine=i386-ibm melunko@917: ;; melunko@917: pw32) melunko@917: basic_machine=i586-unknown melunko@917: os=-pw32 melunko@917: ;; melunko@917: rdos) melunko@917: basic_machine=i386-pc melunko@917: os=-rdos melunko@917: ;; melunko@917: rom68k) melunko@917: basic_machine=m68k-rom68k melunko@917: os=-coff melunko@917: ;; melunko@917: rm[46]00) melunko@917: basic_machine=mips-siemens melunko@917: ;; melunko@917: rtpc | rtpc-*) melunko@917: basic_machine=romp-ibm melunko@917: ;; melunko@917: s390 | s390-*) melunko@917: basic_machine=s390-ibm melunko@917: ;; melunko@917: s390x | s390x-*) melunko@917: basic_machine=s390x-ibm melunko@917: ;; melunko@917: sa29200) melunko@917: basic_machine=a29k-amd melunko@917: os=-udi melunko@917: ;; melunko@917: sb1) melunko@917: basic_machine=mipsisa64sb1-unknown melunko@917: ;; melunko@917: sb1el) melunko@917: basic_machine=mipsisa64sb1el-unknown melunko@917: ;; melunko@917: sde) melunko@917: basic_machine=mipsisa32-sde melunko@917: os=-elf melunko@917: ;; melunko@917: sei) melunko@917: basic_machine=mips-sei melunko@917: os=-seiux melunko@917: ;; melunko@917: sequent) melunko@917: basic_machine=i386-sequent melunko@917: ;; melunko@917: sh) melunko@917: basic_machine=sh-hitachi melunko@917: os=-hms melunko@917: ;; melunko@917: sh5el) melunko@917: basic_machine=sh5le-unknown melunko@917: ;; melunko@917: sh64) melunko@917: basic_machine=sh64-unknown melunko@917: ;; melunko@917: sparclite-wrs | simso-wrs) melunko@917: basic_machine=sparclite-wrs melunko@917: os=-vxworks melunko@917: ;; melunko@917: sps7) melunko@917: basic_machine=m68k-bull melunko@917: os=-sysv2 melunko@917: ;; melunko@917: spur) melunko@917: basic_machine=spur-unknown melunko@917: ;; melunko@917: st2000) melunko@917: basic_machine=m68k-tandem melunko@917: ;; melunko@917: stratus) melunko@917: basic_machine=i860-stratus melunko@917: os=-sysv4 melunko@917: ;; melunko@917: sun2) melunko@917: basic_machine=m68000-sun melunko@917: ;; melunko@917: sun2os3) melunko@917: basic_machine=m68000-sun melunko@917: os=-sunos3 melunko@917: ;; melunko@917: sun2os4) melunko@917: basic_machine=m68000-sun melunko@917: os=-sunos4 melunko@917: ;; melunko@917: sun3os3) melunko@917: basic_machine=m68k-sun melunko@917: os=-sunos3 melunko@917: ;; melunko@917: sun3os4) melunko@917: basic_machine=m68k-sun melunko@917: os=-sunos4 melunko@917: ;; melunko@917: sun4os3) melunko@917: basic_machine=sparc-sun melunko@917: os=-sunos3 melunko@917: ;; melunko@917: sun4os4) melunko@917: basic_machine=sparc-sun melunko@917: os=-sunos4 melunko@917: ;; melunko@917: sun4sol2) melunko@917: basic_machine=sparc-sun melunko@917: os=-solaris2 melunko@917: ;; melunko@917: sun3 | sun3-*) melunko@917: basic_machine=m68k-sun melunko@917: ;; melunko@917: sun4) melunko@917: basic_machine=sparc-sun melunko@917: ;; melunko@917: sun386 | sun386i | roadrunner) melunko@917: basic_machine=i386-sun melunko@917: ;; melunko@917: sv1) melunko@917: basic_machine=sv1-cray melunko@917: os=-unicos melunko@917: ;; melunko@917: symmetry) melunko@917: basic_machine=i386-sequent melunko@917: os=-dynix melunko@917: ;; melunko@917: t3e) melunko@917: basic_machine=alphaev5-cray melunko@917: os=-unicos melunko@917: ;; melunko@917: t90) melunko@917: basic_machine=t90-cray melunko@917: os=-unicos melunko@917: ;; melunko@917: tic54x | c54x*) melunko@917: basic_machine=tic54x-unknown melunko@917: os=-coff melunko@917: ;; melunko@917: tic55x | c55x*) melunko@917: basic_machine=tic55x-unknown melunko@917: os=-coff melunko@917: ;; melunko@917: tic6x | c6x*) melunko@917: basic_machine=tic6x-unknown melunko@917: os=-coff melunko@917: ;; melunko@917: tx39) melunko@917: basic_machine=mipstx39-unknown melunko@917: ;; melunko@917: tx39el) melunko@917: basic_machine=mipstx39el-unknown melunko@917: ;; melunko@917: toad1) melunko@917: basic_machine=pdp10-xkl melunko@917: os=-tops20 melunko@917: ;; melunko@917: tower | tower-32) melunko@917: basic_machine=m68k-ncr melunko@917: ;; melunko@917: tpf) melunko@917: basic_machine=s390x-ibm melunko@917: os=-tpf melunko@917: ;; melunko@917: udi29k) melunko@917: basic_machine=a29k-amd melunko@917: os=-udi melunko@917: ;; melunko@917: ultra3) melunko@917: basic_machine=a29k-nyu melunko@917: os=-sym1 melunko@917: ;; melunko@917: v810 | necv810) melunko@917: basic_machine=v810-nec melunko@917: os=-none melunko@917: ;; melunko@917: vaxv) melunko@917: basic_machine=vax-dec melunko@917: os=-sysv melunko@917: ;; melunko@917: vms) melunko@917: basic_machine=vax-dec melunko@917: os=-vms melunko@917: ;; melunko@917: vpp*|vx|vx-*) melunko@917: basic_machine=f301-fujitsu melunko@917: ;; melunko@917: vxworks960) melunko@917: basic_machine=i960-wrs melunko@917: os=-vxworks melunko@917: ;; melunko@917: vxworks68) melunko@917: basic_machine=m68k-wrs melunko@917: os=-vxworks melunko@917: ;; melunko@917: vxworks29k) melunko@917: basic_machine=a29k-wrs melunko@917: os=-vxworks melunko@917: ;; melunko@917: w65*) melunko@917: basic_machine=w65-wdc melunko@917: os=-none melunko@917: ;; melunko@917: w89k-*) melunko@917: basic_machine=hppa1.1-winbond melunko@917: os=-proelf melunko@917: ;; melunko@917: xbox) melunko@917: basic_machine=i686-pc melunko@917: os=-mingw32 melunko@917: ;; melunko@917: xps | xps100) melunko@917: basic_machine=xps100-honeywell melunko@917: ;; melunko@917: ymp) melunko@917: basic_machine=ymp-cray melunko@917: os=-unicos melunko@917: ;; melunko@917: z8k-*-coff) melunko@917: basic_machine=z8k-unknown melunko@917: os=-sim melunko@917: ;; melunko@917: none) melunko@917: basic_machine=none-none melunko@917: os=-none melunko@917: ;; melunko@917: melunko@917: # Here we handle the default manufacturer of certain CPU types. It is in melunko@917: # some cases the only manufacturer, in others, it is the most popular. melunko@917: w89k) melunko@917: basic_machine=hppa1.1-winbond melunko@917: ;; melunko@917: op50n) melunko@917: basic_machine=hppa1.1-oki melunko@917: ;; melunko@917: op60c) melunko@917: basic_machine=hppa1.1-oki melunko@917: ;; melunko@917: romp) melunko@917: basic_machine=romp-ibm melunko@917: ;; melunko@917: mmix) melunko@917: basic_machine=mmix-knuth melunko@917: ;; melunko@917: rs6000) melunko@917: basic_machine=rs6000-ibm melunko@917: ;; melunko@917: vax) melunko@917: basic_machine=vax-dec melunko@917: ;; melunko@917: pdp10) melunko@917: # there are many clones, so DEC is not a safe bet melunko@917: basic_machine=pdp10-unknown melunko@917: ;; melunko@917: pdp11) melunko@917: basic_machine=pdp11-dec melunko@917: ;; melunko@917: we32k) melunko@917: basic_machine=we32k-att melunko@917: ;; melunko@917: sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) melunko@917: basic_machine=sh-unknown melunko@917: ;; melunko@917: sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) melunko@917: basic_machine=sparc-sun melunko@917: ;; melunko@917: cydra) melunko@917: basic_machine=cydra-cydrome melunko@917: ;; melunko@917: orion) melunko@917: basic_machine=orion-highlevel melunko@917: ;; melunko@917: orion105) melunko@917: basic_machine=clipper-highlevel melunko@917: ;; melunko@917: mac | mpw | mac-mpw) melunko@917: basic_machine=m68k-apple melunko@917: ;; melunko@917: pmac | pmac-mpw) melunko@917: basic_machine=powerpc-apple melunko@917: ;; melunko@917: *-unknown) melunko@917: # Make sure to match an already-canonicalized machine name. melunko@917: ;; melunko@917: *) melunko@917: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 melunko@917: exit 1 melunko@917: ;; melunko@917: esac melunko@917: melunko@917: # Here we canonicalize certain aliases for manufacturers. melunko@917: case $basic_machine in melunko@917: *-digital*) melunko@917: basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` melunko@917: ;; melunko@917: *-commodore*) melunko@917: basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` melunko@917: ;; melunko@917: *) melunko@917: ;; melunko@917: esac melunko@917: melunko@917: # Decode manufacturer-specific aliases for certain operating systems. melunko@917: melunko@917: if [ x"$os" != x"" ] melunko@917: then melunko@917: case $os in melunko@917: # First match some system type aliases melunko@917: # that might get confused with valid system types. melunko@917: # -solaris* is a basic system type, with this one exception. melunko@917: -solaris1 | -solaris1.*) melunko@917: os=`echo $os | sed -e 's|solaris1|sunos4|'` melunko@917: ;; melunko@917: -solaris) melunko@917: os=-solaris2 melunko@917: ;; melunko@917: -svr4*) melunko@917: os=-sysv4 melunko@917: ;; melunko@917: -unixware*) melunko@917: os=-sysv4.2uw melunko@917: ;; melunko@917: -gnu/linux*) melunko@917: os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` melunko@917: ;; melunko@917: # First accept the basic system types. melunko@917: # The portable systems comes first. melunko@917: # Each alternative MUST END IN A *, to match a version number. melunko@917: # -sysv* is not here because it comes later, after sysvr4. melunko@917: -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ melunko@917: | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ melunko@917: | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ melunko@917: | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ melunko@917: | -aos* \ melunko@917: | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ melunko@917: | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ melunko@917: | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ melunko@917: | -openbsd* | -solidbsd* \ melunko@917: | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ melunko@917: | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ melunko@917: | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ melunko@917: | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ melunko@917: | -chorusos* | -chorusrdb* \ melunko@917: | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ melunko@917: | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ melunko@917: | -uxpv* | -beos* | -mpeix* | -udk* \ melunko@917: | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ melunko@917: | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ melunko@917: | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ melunko@917: | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ melunko@917: | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ melunko@917: | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ melunko@917: | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) melunko@917: # Remember, each alternative MUST END IN *, to match a version number. melunko@917: ;; melunko@917: -qnx*) melunko@917: case $basic_machine in melunko@917: x86-* | i*86-*) melunko@917: ;; melunko@917: *) melunko@917: os=-nto$os melunko@917: ;; melunko@917: esac melunko@917: ;; melunko@917: -nto-qnx*) melunko@917: ;; melunko@917: -nto*) melunko@917: os=`echo $os | sed -e 's|nto|nto-qnx|'` melunko@917: ;; melunko@917: -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ melunko@917: | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ melunko@917: | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) melunko@917: ;; melunko@917: -mac*) melunko@917: os=`echo $os | sed -e 's|mac|macos|'` melunko@917: ;; melunko@917: -linux-dietlibc) melunko@917: os=-linux-dietlibc melunko@917: ;; melunko@917: -linux*) melunko@917: os=`echo $os | sed -e 's|linux|linux-gnu|'` melunko@917: ;; melunko@917: -sunos5*) melunko@917: os=`echo $os | sed -e 's|sunos5|solaris2|'` melunko@917: ;; melunko@917: -sunos6*) melunko@917: os=`echo $os | sed -e 's|sunos6|solaris3|'` melunko@917: ;; melunko@917: -opened*) melunko@917: os=-openedition melunko@917: ;; melunko@917: -os400*) melunko@917: os=-os400 melunko@917: ;; melunko@917: -wince*) melunko@917: os=-wince melunko@917: ;; melunko@917: -osfrose*) melunko@917: os=-osfrose melunko@917: ;; melunko@917: -osf*) melunko@917: os=-osf melunko@917: ;; melunko@917: -utek*) melunko@917: os=-bsd melunko@917: ;; melunko@917: -dynix*) melunko@917: os=-bsd melunko@917: ;; melunko@917: -acis*) melunko@917: os=-aos melunko@917: ;; melunko@917: -atheos*) melunko@917: os=-atheos melunko@917: ;; melunko@917: -syllable*) melunko@917: os=-syllable melunko@917: ;; melunko@917: -386bsd) melunko@917: os=-bsd melunko@917: ;; melunko@917: -ctix* | -uts*) melunko@917: os=-sysv melunko@917: ;; melunko@917: -nova*) melunko@917: os=-rtmk-nova melunko@917: ;; melunko@917: -ns2 ) melunko@917: os=-nextstep2 melunko@917: ;; melunko@917: -nsk*) melunko@917: os=-nsk melunko@917: ;; melunko@917: # Preserve the version number of sinix5. melunko@917: -sinix5.*) melunko@917: os=`echo $os | sed -e 's|sinix|sysv|'` melunko@917: ;; melunko@917: -sinix*) melunko@917: os=-sysv4 melunko@917: ;; melunko@917: -tpf*) melunko@917: os=-tpf melunko@917: ;; melunko@917: -triton*) melunko@917: os=-sysv3 melunko@917: ;; melunko@917: -oss*) melunko@917: os=-sysv3 melunko@917: ;; melunko@917: -svr4) melunko@917: os=-sysv4 melunko@917: ;; melunko@917: -svr3) melunko@917: os=-sysv3 melunko@917: ;; melunko@917: -sysvr4) melunko@917: os=-sysv4 melunko@917: ;; melunko@917: # This must come after -sysvr4. melunko@917: -sysv*) melunko@917: ;; melunko@917: -ose*) melunko@917: os=-ose melunko@917: ;; melunko@917: -es1800*) melunko@917: os=-ose melunko@917: ;; melunko@917: -xenix) melunko@917: os=-xenix melunko@917: ;; melunko@917: -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) melunko@917: os=-mint melunko@917: ;; melunko@917: -aros*) melunko@917: os=-aros melunko@917: ;; melunko@917: -kaos*) melunko@917: os=-kaos melunko@917: ;; melunko@917: -zvmoe) melunko@917: os=-zvmoe melunko@917: ;; melunko@917: -none) melunko@917: ;; melunko@917: *) melunko@917: # Get rid of the `-' at the beginning of $os. melunko@917: os=`echo $os | sed 's/[^-]*-//'` melunko@917: echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 melunko@917: exit 1 melunko@917: ;; melunko@917: esac melunko@917: else melunko@917: melunko@917: # Here we handle the default operating systems that come with various machines. melunko@917: # The value should be what the vendor currently ships out the door with their melunko@917: # machine or put another way, the most popular os provided with the machine. melunko@917: melunko@917: # Note that if you're going to try to match "-MANUFACTURER" here (say, melunko@917: # "-sun"), then you have to tell the case statement up towards the top melunko@917: # that MANUFACTURER isn't an operating system. Otherwise, code above melunko@917: # will signal an error saying that MANUFACTURER isn't an operating melunko@917: # system, and we'll never get to this point. melunko@917: melunko@917: case $basic_machine in melunko@917: score-*) melunko@917: os=-elf melunko@917: ;; melunko@917: spu-*) melunko@917: os=-elf melunko@917: ;; melunko@917: *-acorn) melunko@917: os=-riscix1.2 melunko@917: ;; melunko@917: arm*-rebel) melunko@917: os=-linux melunko@917: ;; melunko@917: arm*-semi) melunko@917: os=-aout melunko@917: ;; melunko@917: c4x-* | tic4x-*) melunko@917: os=-coff melunko@917: ;; melunko@917: # This must come before the *-dec entry. melunko@917: pdp10-*) melunko@917: os=-tops20 melunko@917: ;; melunko@917: pdp11-*) melunko@917: os=-none melunko@917: ;; melunko@917: *-dec | vax-*) melunko@917: os=-ultrix4.2 melunko@917: ;; melunko@917: m68*-apollo) melunko@917: os=-domain melunko@917: ;; melunko@917: i386-sun) melunko@917: os=-sunos4.0.2 melunko@917: ;; melunko@917: m68000-sun) melunko@917: os=-sunos3 melunko@917: # This also exists in the configure program, but was not the melunko@917: # default. melunko@917: # os=-sunos4 melunko@917: ;; melunko@917: m68*-cisco) melunko@917: os=-aout melunko@917: ;; melunko@917: mep-*) melunko@917: os=-elf melunko@917: ;; melunko@917: mips*-cisco) melunko@917: os=-elf melunko@917: ;; melunko@917: mips*-*) melunko@917: os=-elf melunko@917: ;; melunko@917: or32-*) melunko@917: os=-coff melunko@917: ;; melunko@917: *-tti) # must be before sparc entry or we get the wrong os. melunko@917: os=-sysv3 melunko@917: ;; melunko@917: sparc-* | *-sun) melunko@917: os=-sunos4.1.1 melunko@917: ;; melunko@917: *-be) melunko@917: os=-beos melunko@917: ;; melunko@917: *-haiku) melunko@917: os=-haiku melunko@917: ;; melunko@917: *-ibm) melunko@917: os=-aix melunko@917: ;; melunko@917: *-knuth) melunko@917: os=-mmixware melunko@917: ;; melunko@917: *-wec) melunko@917: os=-proelf melunko@917: ;; melunko@917: *-winbond) melunko@917: os=-proelf melunko@917: ;; melunko@917: *-oki) melunko@917: os=-proelf melunko@917: ;; melunko@917: *-hp) melunko@917: os=-hpux melunko@917: ;; melunko@917: *-hitachi) melunko@917: os=-hiux melunko@917: ;; melunko@917: i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) melunko@917: os=-sysv melunko@917: ;; melunko@917: *-cbm) melunko@917: os=-amigaos melunko@917: ;; melunko@917: *-dg) melunko@917: os=-dgux melunko@917: ;; melunko@917: *-dolphin) melunko@917: os=-sysv3 melunko@917: ;; melunko@917: m68k-ccur) melunko@917: os=-rtu melunko@917: ;; melunko@917: m88k-omron*) melunko@917: os=-luna melunko@917: ;; melunko@917: *-next ) melunko@917: os=-nextstep melunko@917: ;; melunko@917: *-sequent) melunko@917: os=-ptx melunko@917: ;; melunko@917: *-crds) melunko@917: os=-unos melunko@917: ;; melunko@917: *-ns) melunko@917: os=-genix melunko@917: ;; melunko@917: i370-*) melunko@917: os=-mvs melunko@917: ;; melunko@917: *-next) melunko@917: os=-nextstep3 melunko@917: ;; melunko@917: *-gould) melunko@917: os=-sysv melunko@917: ;; melunko@917: *-highlevel) melunko@917: os=-bsd melunko@917: ;; melunko@917: *-encore) melunko@917: os=-bsd melunko@917: ;; melunko@917: *-sgi) melunko@917: os=-irix melunko@917: ;; melunko@917: *-siemens) melunko@917: os=-sysv4 melunko@917: ;; melunko@917: *-masscomp) melunko@917: os=-rtu melunko@917: ;; melunko@917: f30[01]-fujitsu | f700-fujitsu) melunko@917: os=-uxpv melunko@917: ;; melunko@917: *-rom68k) melunko@917: os=-coff melunko@917: ;; melunko@917: *-*bug) melunko@917: os=-coff melunko@917: ;; melunko@917: *-apple) melunko@917: os=-macos melunko@917: ;; melunko@917: *-atari*) melunko@917: os=-mint melunko@917: ;; melunko@917: *) melunko@917: os=-none melunko@917: ;; melunko@917: esac melunko@917: fi melunko@917: melunko@917: # Here we handle the case where we know the os, and the CPU type, but not the melunko@917: # manufacturer. We pick the logical manufacturer. melunko@917: vendor=unknown melunko@917: case $basic_machine in melunko@917: *-unknown) melunko@917: case $os in melunko@917: -riscix*) melunko@917: vendor=acorn melunko@917: ;; melunko@917: -sunos*) melunko@917: vendor=sun melunko@917: ;; melunko@917: -aix*) melunko@917: vendor=ibm melunko@917: ;; melunko@917: -beos*) melunko@917: vendor=be melunko@917: ;; melunko@917: -hpux*) melunko@917: vendor=hp melunko@917: ;; melunko@917: -mpeix*) melunko@917: vendor=hp melunko@917: ;; melunko@917: -hiux*) melunko@917: vendor=hitachi melunko@917: ;; melunko@917: -unos*) melunko@917: vendor=crds melunko@917: ;; melunko@917: -dgux*) melunko@917: vendor=dg melunko@917: ;; melunko@917: -luna*) melunko@917: vendor=omron melunko@917: ;; melunko@917: -genix*) melunko@917: vendor=ns melunko@917: ;; melunko@917: -mvs* | -opened*) melunko@917: vendor=ibm melunko@917: ;; melunko@917: -os400*) melunko@917: vendor=ibm melunko@917: ;; melunko@917: -ptx*) melunko@917: vendor=sequent melunko@917: ;; melunko@917: -tpf*) melunko@917: vendor=ibm melunko@917: ;; melunko@917: -vxsim* | -vxworks* | -windiss*) melunko@917: vendor=wrs melunko@917: ;; melunko@917: -aux*) melunko@917: vendor=apple melunko@917: ;; melunko@917: -hms*) melunko@917: vendor=hitachi melunko@917: ;; melunko@917: -mpw* | -macos*) melunko@917: vendor=apple melunko@917: ;; melunko@917: -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) melunko@917: vendor=atari melunko@917: ;; melunko@917: -vos*) melunko@917: vendor=stratus melunko@917: ;; melunko@917: esac melunko@917: basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` melunko@917: ;; melunko@917: esac melunko@917: melunko@917: echo $basic_machine$os melunko@917: exit melunko@917: melunko@917: # Local variables: melunko@917: # eval: (add-hook 'write-file-hooks 'time-stamp) melunko@917: # time-stamp-start: "timestamp='" melunko@917: # time-stamp-format: "%:y-%02m-%02d" melunko@917: # time-stamp-end: "'" melunko@917: # End: