1321fbaf8Sespie#! /bin/sh 237c53322Sespie# Configuration validation subroutine script. 337c53322Sespie# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4*150b7e42Smiod# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 537c53322Sespie 6*150b7e42Smiodtimestamp='2006-01-02' 737c53322Sespie 8321fbaf8Sespie# This file is (in principle) common to ALL GNU software. 9321fbaf8Sespie# The presence of a machine in this file suggests that SOME GNU software 10321fbaf8Sespie# can handle that machine. It does not imply ALL GNU software can. 11321fbaf8Sespie# 12321fbaf8Sespie# This file is free software; you can redistribute it and/or modify 13321fbaf8Sespie# it under the terms of the GNU General Public License as published by 14321fbaf8Sespie# the Free Software Foundation; either version 2 of the License, or 15321fbaf8Sespie# (at your option) any later version. 16321fbaf8Sespie# 17321fbaf8Sespie# This program is distributed in the hope that it will be useful, 18321fbaf8Sespie# but WITHOUT ANY WARRANTY; without even the implied warranty of 19321fbaf8Sespie# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20321fbaf8Sespie# GNU General Public License for more details. 21321fbaf8Sespie# 22321fbaf8Sespie# You should have received a copy of the GNU General Public License 23321fbaf8Sespie# along with this program; if not, write to the Free Software 24*150b7e42Smiod# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 25*150b7e42Smiod# 02110-1301, USA. 26*150b7e42Smiod# 27321fbaf8Sespie# As a special exception to the GNU General Public License, if you 28321fbaf8Sespie# distribute this file as part of a program that contains a 29321fbaf8Sespie# configuration script generated by Autoconf, you may include it under 30321fbaf8Sespie# the same distribution terms that you use for the rest of that program. 31321fbaf8Sespie 32*150b7e42Smiod 3337c53322Sespie# Please send patches to <config-patches@gnu.org>. Submit a context 3437c53322Sespie# diff and a properly formatted ChangeLog entry. 3537c53322Sespie# 36321fbaf8Sespie# Configuration subroutine to validate and canonicalize a configuration type. 37321fbaf8Sespie# Supply the specified configuration type as an argument. 38321fbaf8Sespie# If it is invalid, we print an error message on stderr and exit with code 1. 39321fbaf8Sespie# Otherwise, we print the canonical config type on stdout and succeed. 40321fbaf8Sespie 41321fbaf8Sespie# This file is supposed to be the same for all GNU packages 42321fbaf8Sespie# and recognize all the CPU types, system types and aliases 43321fbaf8Sespie# that are meaningful with *any* GNU software. 44321fbaf8Sespie# Each package is responsible for reporting which valid configurations 45321fbaf8Sespie# it does not support. The user should be able to distinguish 46321fbaf8Sespie# a failure to support a valid configuration from a meaningless 47321fbaf8Sespie# configuration. 48321fbaf8Sespie 49321fbaf8Sespie# The goal of this file is to map all the various variations of a given 50321fbaf8Sespie# machine specification into a single specification in the form: 51321fbaf8Sespie# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 52321fbaf8Sespie# or in some cases, the newer four-part form: 53321fbaf8Sespie# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 54321fbaf8Sespie# It is wrong to echo any other type of specification. 55321fbaf8Sespie 5637c53322Sespieme=`echo "$0" | sed -e 's,.*/,,'` 57321fbaf8Sespie 5837c53322Sespieusage="\ 5937c53322SespieUsage: $0 [OPTION] CPU-MFR-OPSYS 6037c53322Sespie $0 [OPTION] ALIAS 6137c53322Sespie 6237c53322SespieCanonicalize a configuration name. 6337c53322Sespie 6437c53322SespieOperation modes: 6537c53322Sespie -h, --help print this help, then exit 6637c53322Sespie -t, --time-stamp print date of last modification, then exit 6737c53322Sespie -v, --version print version number, then exit 6837c53322Sespie 6937c53322SespieReport bugs and patches to <config-patches@gnu.org>." 7037c53322Sespie 7137c53322Sespieversion="\ 7237c53322SespieGNU config.sub ($timestamp) 7337c53322Sespie 74*150b7e42SmiodCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7537c53322SespieFree Software Foundation, Inc. 7637c53322Sespie 7737c53322SespieThis is free software; see the source for copying conditions. There is NO 7837c53322Sespiewarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 7937c53322Sespie 8037c53322Sespiehelp=" 8137c53322SespieTry \`$me --help' for more information." 8237c53322Sespie 8337c53322Sespie# Parse command line 8437c53322Sespiewhile test $# -gt 0 ; do 85321fbaf8Sespie case $1 in 8637c53322Sespie --time-stamp | --time* | -t ) 87*150b7e42Smiod echo "$timestamp" ; exit ;; 8837c53322Sespie --version | -v ) 89*150b7e42Smiod echo "$version" ; exit ;; 9037c53322Sespie --help | --h* | -h ) 91*150b7e42Smiod echo "$usage"; exit ;; 9237c53322Sespie -- ) # Stop option processing 9337c53322Sespie shift; break ;; 9437c53322Sespie - ) # Use stdin as input. 9537c53322Sespie break ;; 9637c53322Sespie -* ) 9737c53322Sespie echo "$me: invalid option $1$help" 9837c53322Sespie exit 1 ;; 9937c53322Sespie 100321fbaf8Sespie *local*) 10137c53322Sespie # First pass through any local machine types. 102321fbaf8Sespie echo $1 103*150b7e42Smiod exit ;; 10437c53322Sespie 105321fbaf8Sespie * ) 10637c53322Sespie break ;; 10737c53322Sespie esac 10837c53322Sespiedone 10937c53322Sespie 11037c53322Sespiecase $# in 11137c53322Sespie 0) echo "$me: missing argument$help" >&2 11237c53322Sespie exit 1;; 11337c53322Sespie 1) ;; 11437c53322Sespie *) echo "$me: too many arguments$help" >&2 11537c53322Sespie exit 1;; 116321fbaf8Sespieesac 117321fbaf8Sespie 118321fbaf8Sespie# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 119321fbaf8Sespie# Here we must recognize all the valid KERNEL-OS combinations. 120321fbaf8Sespiemaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121321fbaf8Sespiecase $maybe_os in 122*150b7e42Smiod nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 123*150b7e42Smiod uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 124*150b7e42Smiod storm-chaos* | os2-emx* | rtmk-nova*) 125321fbaf8Sespie os=-$maybe_os 126321fbaf8Sespie basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127321fbaf8Sespie ;; 128321fbaf8Sespie *) 129321fbaf8Sespie basic_machine=`echo $1 | sed 's/-[^-]*$//'` 130321fbaf8Sespie if [ $basic_machine != $1 ] 131321fbaf8Sespie then os=`echo $1 | sed 's/.*-/-/'` 132321fbaf8Sespie else os=; fi 133321fbaf8Sespie ;; 134321fbaf8Sespieesac 135321fbaf8Sespie 136321fbaf8Sespie### Let's recognize common machines as not being operating systems so 137321fbaf8Sespie### that things like config.sub decstation-3100 work. We also 138321fbaf8Sespie### recognize some manufacturers as not being operating systems, so we 139321fbaf8Sespie### can provide default operating systems below. 140321fbaf8Sespiecase $os in 141321fbaf8Sespie -sun*os*) 142321fbaf8Sespie # Prevent following clause from handling this invalid input. 143321fbaf8Sespie ;; 144321fbaf8Sespie -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 145321fbaf8Sespie -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 146321fbaf8Sespie -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 147321fbaf8Sespie -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 148321fbaf8Sespie -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 149321fbaf8Sespie -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 150*150b7e42Smiod -apple | -axis | -knuth | -cray) 151321fbaf8Sespie os= 152321fbaf8Sespie basic_machine=$1 153321fbaf8Sespie ;; 15437c53322Sespie -sim | -cisco | -oki | -wec | -winbond) 155321fbaf8Sespie os= 156321fbaf8Sespie basic_machine=$1 157321fbaf8Sespie ;; 15837c53322Sespie -scout) 159321fbaf8Sespie ;; 16037c53322Sespie -wrs) 161321fbaf8Sespie os=-vxworks 162321fbaf8Sespie basic_machine=$1 163321fbaf8Sespie ;; 16437c53322Sespie -chorusos*) 16537c53322Sespie os=-chorusos 16637c53322Sespie basic_machine=$1 16737c53322Sespie ;; 16837c53322Sespie -chorusrdb) 16937c53322Sespie os=-chorusrdb 17037c53322Sespie basic_machine=$1 17137c53322Sespie ;; 172321fbaf8Sespie -hiux*) 173321fbaf8Sespie os=-hiuxwe2 174321fbaf8Sespie ;; 175*150b7e42Smiod -sco6) 176*150b7e42Smiod os=-sco5v6 177*150b7e42Smiod basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 178*150b7e42Smiod ;; 179321fbaf8Sespie -sco5) 180321fbaf8Sespie os=-sco3.2v5 181321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182321fbaf8Sespie ;; 183321fbaf8Sespie -sco4) 184321fbaf8Sespie os=-sco3.2v4 185321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 186321fbaf8Sespie ;; 187321fbaf8Sespie -sco3.2.[4-9]*) 188321fbaf8Sespie os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 189321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190321fbaf8Sespie ;; 191321fbaf8Sespie -sco3.2v[4-9]*) 192321fbaf8Sespie # Don't forget version if it is 3.2v4 or newer. 193321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 194321fbaf8Sespie ;; 195*150b7e42Smiod -sco5v6*) 196*150b7e42Smiod # Don't forget version if it is 3.2v4 or newer. 197*150b7e42Smiod basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198*150b7e42Smiod ;; 199321fbaf8Sespie -sco*) 200321fbaf8Sespie os=-sco3.2v2 201321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 202321fbaf8Sespie ;; 203321fbaf8Sespie -udk*) 204321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 205321fbaf8Sespie ;; 206321fbaf8Sespie -isc) 207321fbaf8Sespie os=-isc2.2 208321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 209321fbaf8Sespie ;; 210321fbaf8Sespie -clix*) 211321fbaf8Sespie basic_machine=clipper-intergraph 212321fbaf8Sespie ;; 213321fbaf8Sespie -isc*) 214321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 215321fbaf8Sespie ;; 216321fbaf8Sespie -lynx*) 217321fbaf8Sespie os=-lynxos 218321fbaf8Sespie ;; 219321fbaf8Sespie -ptx*) 220321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 221321fbaf8Sespie ;; 222321fbaf8Sespie -windowsnt*) 223321fbaf8Sespie os=`echo $os | sed -e 's/windowsnt/winnt/'` 224321fbaf8Sespie ;; 225321fbaf8Sespie -psos*) 226321fbaf8Sespie os=-psos 227321fbaf8Sespie ;; 22837c53322Sespie -mint | -mint[0-9]*) 22937c53322Sespie basic_machine=m68k-atari 23037c53322Sespie os=-mint 23137c53322Sespie ;; 232321fbaf8Sespieesac 233321fbaf8Sespie 234321fbaf8Sespie# Decode aliases for certain CPU-COMPANY combinations. 235321fbaf8Sespiecase $basic_machine in 236321fbaf8Sespie # Recognize the basic CPU types without company name. 237321fbaf8Sespie # Some are omitted here because they have special meanings below. 23837c53322Sespie 1750a | 580 \ 23937c53322Sespie | a29k \ 24037c53322Sespie | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 24137c53322Sespie | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242*150b7e42Smiod | am33_2.0 \ 24337c53322Sespie | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244*150b7e42Smiod | bfin \ 245*150b7e42Smiod | c4x | clipper \ 24637c53322Sespie | d10v | d30v | dlx | dsp16xx \ 24737c53322Sespie | fr30 | frv \ 24837c53322Sespie | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 24937c53322Sespie | i370 | i860 | i960 | ia64 \ 250*150b7e42Smiod | ip2k | iq2000 \ 251*150b7e42Smiod | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ 25237c53322Sespie | mips | mipsbe | mipseb | mipsel | mipsle \ 25337c53322Sespie | mips16 \ 25437c53322Sespie | mips64 | mips64el \ 25537c53322Sespie | mips64vr | mips64vrel \ 25637c53322Sespie | mips64orion | mips64orionel \ 25737c53322Sespie | mips64vr4100 | mips64vr4100el \ 25837c53322Sespie | mips64vr4300 | mips64vr4300el \ 25937c53322Sespie | mips64vr5000 | mips64vr5000el \ 260*150b7e42Smiod | mips64vr5900 | mips64vr5900el \ 26137c53322Sespie | mipsisa32 | mipsisa32el \ 26237c53322Sespie | mipsisa32r2 | mipsisa32r2el \ 26337c53322Sespie | mipsisa64 | mipsisa64el \ 264*150b7e42Smiod | mipsisa64r2 | mipsisa64r2el \ 26537c53322Sespie | mipsisa64sb1 | mipsisa64sb1el \ 26637c53322Sespie | mipsisa64sr71k | mipsisa64sr71kel \ 267321fbaf8Sespie | mipstx39 | mipstx39el \ 26837c53322Sespie | mn10200 | mn10300 \ 269*150b7e42Smiod | mt \ 27037c53322Sespie | msp430 \ 27137c53322Sespie | ns16k | ns32k \ 272*150b7e42Smiod | or32 \ 27337c53322Sespie | pdp10 | pdp11 | pj | pjl \ 27437c53322Sespie | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 27537c53322Sespie | pyramid \ 276*150b7e42Smiod | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 27737c53322Sespie | sh64 | sh64le \ 278*150b7e42Smiod | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 279*150b7e42Smiod | sparcv8 | sparcv9 | sparcv9b \ 28037c53322Sespie | strongarm \ 281*150b7e42Smiod | tahoe | thumb | tic4x | tic80 | tron \ 28237c53322Sespie | v850 | v850e \ 28337c53322Sespie | we32k \ 284*150b7e42Smiod | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 28537c53322Sespie | z8k) 286321fbaf8Sespie basic_machine=$basic_machine-unknown 287321fbaf8Sespie ;; 288*150b7e42Smiod m32c) 289*150b7e42Smiod basic_machine=$basic_machine-unknown 290*150b7e42Smiod ;; 29137c53322Sespie m6811 | m68hc11 | m6812 | m68hc12) 29237c53322Sespie # Motorola 68HC11/12. 293321fbaf8Sespie basic_machine=$basic_machine-unknown 29437c53322Sespie os=-none 295321fbaf8Sespie ;; 29637c53322Sespie m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 297321fbaf8Sespie ;; 298*150b7e42Smiod ms1) 299*150b7e42Smiod basic_machine=mt-unknown 300*150b7e42Smiod ;; 30137c53322Sespie 302321fbaf8Sespie # We use `pc' rather than `unknown' 303321fbaf8Sespie # because (1) that's what they normally are, and 304321fbaf8Sespie # (2) the word "unknown" tends to confuse beginning users. 30537c53322Sespie i*86 | x86_64) 306321fbaf8Sespie basic_machine=$basic_machine-pc 307321fbaf8Sespie ;; 308321fbaf8Sespie # Object if more than one company name word. 309321fbaf8Sespie *-*-*) 310321fbaf8Sespie echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 311321fbaf8Sespie exit 1 312321fbaf8Sespie ;; 313321fbaf8Sespie # Recognize the basic CPU types with company name. 31437c53322Sespie 580-* \ 31537c53322Sespie | a29k-* \ 31637c53322Sespie | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 31737c53322Sespie | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 31837c53322Sespie | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 31937c53322Sespie | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 32037c53322Sespie | avr-* \ 321*150b7e42Smiod | bfin-* | bs2000-* \ 322*150b7e42Smiod | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 323*150b7e42Smiod | clipper-* | craynv-* | cydra-* \ 32437c53322Sespie | d10v-* | d30v-* | dlx-* \ 32537c53322Sespie | elxsi-* \ 32637c53322Sespie | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 32737c53322Sespie | h8300-* | h8500-* \ 32837c53322Sespie | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 32937c53322Sespie | i*86-* | i860-* | i960-* | ia64-* \ 330*150b7e42Smiod | ip2k-* | iq2000-* \ 331*150b7e42Smiod | m32r-* | m32rle-* \ 33237c53322Sespie | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 333*150b7e42Smiod | m88110-* | m88k-* | maxq-* | mcore-* \ 33437c53322Sespie | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 33537c53322Sespie | mips16-* \ 33637c53322Sespie | mips64-* | mips64el-* \ 33737c53322Sespie | mips64vr-* | mips64vrel-* \ 33837c53322Sespie | mips64orion-* | mips64orionel-* \ 33937c53322Sespie | mips64vr4100-* | mips64vr4100el-* \ 34037c53322Sespie | mips64vr4300-* | mips64vr4300el-* \ 34137c53322Sespie | mips64vr5000-* | mips64vr5000el-* \ 342*150b7e42Smiod | mips64vr5900-* | mips64vr5900el-* \ 34337c53322Sespie | mipsisa32-* | mipsisa32el-* \ 34437c53322Sespie | mipsisa32r2-* | mipsisa32r2el-* \ 34537c53322Sespie | mipsisa64-* | mipsisa64el-* \ 346*150b7e42Smiod | mipsisa64r2-* | mipsisa64r2el-* \ 34737c53322Sespie | mipsisa64sb1-* | mipsisa64sb1el-* \ 34837c53322Sespie | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 349321fbaf8Sespie | mipstx39-* | mipstx39el-* \ 350*150b7e42Smiod | mmix-* \ 351*150b7e42Smiod | mt-* \ 35237c53322Sespie | msp430-* \ 353*150b7e42Smiod | none-* | np1-* | ns16k-* | ns32k-* \ 35437c53322Sespie | orion-* \ 35537c53322Sespie | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 35637c53322Sespie | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 35737c53322Sespie | pyramid-* \ 35837c53322Sespie | romp-* | rs6000-* \ 359*150b7e42Smiod | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 36037c53322Sespie | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 361*150b7e42Smiod | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 362*150b7e42Smiod | sparclite-* \ 363*150b7e42Smiod | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 364*150b7e42Smiod | tahoe-* | thumb-* \ 365*150b7e42Smiod | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 366*150b7e42Smiod | tron-* \ 36737c53322Sespie | v850-* | v850e-* | vax-* \ 36837c53322Sespie | we32k-* \ 369*150b7e42Smiod | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 370*150b7e42Smiod | xstormy16-* | xtensa-* \ 37137c53322Sespie | ymp-* \ 37237c53322Sespie | z8k-*) 373321fbaf8Sespie ;; 374*150b7e42Smiod m32c-*) 375*150b7e42Smiod ;; 376321fbaf8Sespie # Recognize the various machine names and aliases which stand 377321fbaf8Sespie # for a CPU type and a company and sometimes even an OS. 37837c53322Sespie 386bsd) 379321fbaf8Sespie basic_machine=i386-unknown 380321fbaf8Sespie os=-bsd 381321fbaf8Sespie ;; 382321fbaf8Sespie 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 383321fbaf8Sespie basic_machine=m68000-att 384321fbaf8Sespie ;; 385321fbaf8Sespie 3b*) 386321fbaf8Sespie basic_machine=we32k-att 387321fbaf8Sespie ;; 38837c53322Sespie a29khif) 389321fbaf8Sespie basic_machine=a29k-amd 390321fbaf8Sespie os=-udi 391321fbaf8Sespie ;; 392*150b7e42Smiod abacus) 393*150b7e42Smiod basic_machine=abacus-unknown 394*150b7e42Smiod ;; 39537c53322Sespie adobe68k) 396321fbaf8Sespie basic_machine=m68010-adobe 397321fbaf8Sespie os=-scout 398321fbaf8Sespie ;; 399321fbaf8Sespie alliant | fx80) 400321fbaf8Sespie basic_machine=fx80-alliant 401321fbaf8Sespie ;; 402321fbaf8Sespie altos | altos3068) 403321fbaf8Sespie basic_machine=m68k-altos 404321fbaf8Sespie ;; 405321fbaf8Sespie am29k) 406321fbaf8Sespie basic_machine=a29k-none 407321fbaf8Sespie os=-bsd 408321fbaf8Sespie ;; 409ee19cecdSbrad amd64) 410ee19cecdSbrad basic_machine=x86_64-pc 411ee19cecdSbrad ;; 412ee19cecdSbrad amd64-*) 413ee19cecdSbrad basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 414ee19cecdSbrad ;; 415321fbaf8Sespie amdahl) 416321fbaf8Sespie basic_machine=580-amdahl 417321fbaf8Sespie os=-sysv 418321fbaf8Sespie ;; 419321fbaf8Sespie amiga | amiga-*) 42037c53322Sespie basic_machine=m68k-unknown 421321fbaf8Sespie ;; 422321fbaf8Sespie amigaos | amigados) 42337c53322Sespie basic_machine=m68k-unknown 424321fbaf8Sespie os=-amigaos 425321fbaf8Sespie ;; 426321fbaf8Sespie amigaunix | amix) 42737c53322Sespie basic_machine=m68k-unknown 428321fbaf8Sespie os=-sysv4 429321fbaf8Sespie ;; 430321fbaf8Sespie apollo68) 431321fbaf8Sespie basic_machine=m68k-apollo 432321fbaf8Sespie os=-sysv 433321fbaf8Sespie ;; 43437c53322Sespie apollo68bsd) 435321fbaf8Sespie basic_machine=m68k-apollo 436321fbaf8Sespie os=-bsd 437321fbaf8Sespie ;; 438321fbaf8Sespie aux) 439321fbaf8Sespie basic_machine=m68k-apple 440321fbaf8Sespie os=-aux 441321fbaf8Sespie ;; 442321fbaf8Sespie balance) 443321fbaf8Sespie basic_machine=ns32k-sequent 444321fbaf8Sespie os=-dynix 445321fbaf8Sespie ;; 44637c53322Sespie c90) 44737c53322Sespie basic_machine=c90-cray 44837c53322Sespie os=-unicos 44937c53322Sespie ;; 450321fbaf8Sespie convex-c1) 451321fbaf8Sespie basic_machine=c1-convex 452321fbaf8Sespie os=-bsd 453321fbaf8Sespie ;; 454321fbaf8Sespie convex-c2) 455321fbaf8Sespie basic_machine=c2-convex 456321fbaf8Sespie os=-bsd 457321fbaf8Sespie ;; 458321fbaf8Sespie convex-c32) 459321fbaf8Sespie basic_machine=c32-convex 460321fbaf8Sespie os=-bsd 461321fbaf8Sespie ;; 462321fbaf8Sespie convex-c34) 463321fbaf8Sespie basic_machine=c34-convex 464321fbaf8Sespie os=-bsd 465321fbaf8Sespie ;; 466321fbaf8Sespie convex-c38) 467321fbaf8Sespie basic_machine=c38-convex 468321fbaf8Sespie os=-bsd 469321fbaf8Sespie ;; 47037c53322Sespie cray | j90) 47137c53322Sespie basic_machine=j90-cray 472321fbaf8Sespie os=-unicos 473321fbaf8Sespie ;; 474*150b7e42Smiod craynv) 475*150b7e42Smiod basic_machine=craynv-cray 476*150b7e42Smiod os=-unicosmp 477*150b7e42Smiod ;; 478*150b7e42Smiod cr16c) 479*150b7e42Smiod basic_machine=cr16c-unknown 480*150b7e42Smiod os=-elf 481*150b7e42Smiod ;; 482321fbaf8Sespie crds | unos) 483321fbaf8Sespie basic_machine=m68k-crds 484321fbaf8Sespie ;; 485*150b7e42Smiod crisv32 | crisv32-* | etraxfs*) 486*150b7e42Smiod basic_machine=crisv32-axis 487*150b7e42Smiod ;; 48837c53322Sespie cris | cris-* | etrax*) 48937c53322Sespie basic_machine=cris-axis 49037c53322Sespie ;; 491*150b7e42Smiod crx) 492*150b7e42Smiod basic_machine=crx-unknown 493*150b7e42Smiod os=-elf 494*150b7e42Smiod ;; 495321fbaf8Sespie da30 | da30-*) 496321fbaf8Sespie basic_machine=m68k-da30 497321fbaf8Sespie ;; 498321fbaf8Sespie decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 499321fbaf8Sespie basic_machine=mips-dec 500321fbaf8Sespie ;; 50137c53322Sespie decsystem10* | dec10*) 50237c53322Sespie basic_machine=pdp10-dec 50337c53322Sespie os=-tops10 50437c53322Sespie ;; 50537c53322Sespie decsystem20* | dec20*) 50637c53322Sespie basic_machine=pdp10-dec 50737c53322Sespie os=-tops20 50837c53322Sespie ;; 509321fbaf8Sespie delta | 3300 | motorola-3300 | motorola-delta \ 510321fbaf8Sespie | 3300-motorola | delta-motorola) 511321fbaf8Sespie basic_machine=m68k-motorola 512321fbaf8Sespie ;; 513321fbaf8Sespie delta88) 514321fbaf8Sespie basic_machine=m88k-motorola 515321fbaf8Sespie os=-sysv3 516321fbaf8Sespie ;; 517*150b7e42Smiod djgpp) 518*150b7e42Smiod basic_machine=i586-pc 519*150b7e42Smiod os=-msdosdjgpp 520*150b7e42Smiod ;; 521321fbaf8Sespie dpx20 | dpx20-*) 522321fbaf8Sespie basic_machine=rs6000-bull 523321fbaf8Sespie os=-bosx 524321fbaf8Sespie ;; 525321fbaf8Sespie dpx2* | dpx2*-bull) 526321fbaf8Sespie basic_machine=m68k-bull 527321fbaf8Sespie os=-sysv3 528321fbaf8Sespie ;; 529321fbaf8Sespie ebmon29k) 530321fbaf8Sespie basic_machine=a29k-amd 531321fbaf8Sespie os=-ebmon 532321fbaf8Sespie ;; 533321fbaf8Sespie elxsi) 534321fbaf8Sespie basic_machine=elxsi-elxsi 535321fbaf8Sespie os=-bsd 536321fbaf8Sespie ;; 537321fbaf8Sespie encore | umax | mmax) 538321fbaf8Sespie basic_machine=ns32k-encore 539321fbaf8Sespie ;; 54037c53322Sespie es1800 | OSE68k | ose68k | ose | OSE) 541321fbaf8Sespie basic_machine=m68k-ericsson 542321fbaf8Sespie os=-ose 543321fbaf8Sespie ;; 544321fbaf8Sespie fx2800) 545321fbaf8Sespie basic_machine=i860-alliant 546321fbaf8Sespie ;; 547321fbaf8Sespie genix) 548321fbaf8Sespie basic_machine=ns32k-ns 549321fbaf8Sespie ;; 550321fbaf8Sespie gmicro) 551321fbaf8Sespie basic_machine=tron-gmicro 552321fbaf8Sespie os=-sysv 553321fbaf8Sespie ;; 55437c53322Sespie go32) 55537c53322Sespie basic_machine=i386-pc 55637c53322Sespie os=-go32 55737c53322Sespie ;; 558321fbaf8Sespie h3050r* | hiux*) 559321fbaf8Sespie basic_machine=hppa1.1-hitachi 560321fbaf8Sespie os=-hiuxwe2 561321fbaf8Sespie ;; 562321fbaf8Sespie h8300hms) 563321fbaf8Sespie basic_machine=h8300-hitachi 564321fbaf8Sespie os=-hms 565321fbaf8Sespie ;; 56637c53322Sespie h8300xray) 567321fbaf8Sespie basic_machine=h8300-hitachi 568321fbaf8Sespie os=-xray 569321fbaf8Sespie ;; 57037c53322Sespie h8500hms) 571321fbaf8Sespie basic_machine=h8500-hitachi 572321fbaf8Sespie os=-hms 573321fbaf8Sespie ;; 574321fbaf8Sespie harris) 575321fbaf8Sespie basic_machine=m88k-harris 576321fbaf8Sespie os=-sysv3 577321fbaf8Sespie ;; 578321fbaf8Sespie hp300-*) 579321fbaf8Sespie basic_machine=m68k-hp 580321fbaf8Sespie ;; 581321fbaf8Sespie hp300bsd) 582321fbaf8Sespie basic_machine=m68k-hp 583321fbaf8Sespie os=-bsd 584321fbaf8Sespie ;; 585321fbaf8Sespie hp300hpux) 586321fbaf8Sespie basic_machine=m68k-hp 587321fbaf8Sespie os=-hpux 588321fbaf8Sespie ;; 589321fbaf8Sespie hp3k9[0-9][0-9] | hp9[0-9][0-9]) 590321fbaf8Sespie basic_machine=hppa1.0-hp 591321fbaf8Sespie ;; 592321fbaf8Sespie hp9k2[0-9][0-9] | hp9k31[0-9]) 593321fbaf8Sespie basic_machine=m68000-hp 594321fbaf8Sespie ;; 595321fbaf8Sespie hp9k3[2-9][0-9]) 596321fbaf8Sespie basic_machine=m68k-hp 597321fbaf8Sespie ;; 598321fbaf8Sespie hp9k6[0-9][0-9] | hp6[0-9][0-9]) 599321fbaf8Sespie basic_machine=hppa1.0-hp 600321fbaf8Sespie ;; 601321fbaf8Sespie hp9k7[0-79][0-9] | hp7[0-79][0-9]) 602321fbaf8Sespie basic_machine=hppa1.1-hp 603321fbaf8Sespie ;; 604321fbaf8Sespie hp9k78[0-9] | hp78[0-9]) 605321fbaf8Sespie # FIXME: really hppa2.0-hp 606321fbaf8Sespie basic_machine=hppa1.1-hp 607321fbaf8Sespie ;; 60837c53322Sespie hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 609321fbaf8Sespie # FIXME: really hppa2.0-hp 610321fbaf8Sespie basic_machine=hppa1.1-hp 611321fbaf8Sespie ;; 612321fbaf8Sespie hp9k8[0-9][13679] | hp8[0-9][13679]) 613321fbaf8Sespie basic_machine=hppa1.1-hp 614321fbaf8Sespie ;; 615321fbaf8Sespie hp9k8[0-9][0-9] | hp8[0-9][0-9]) 616321fbaf8Sespie basic_machine=hppa1.0-hp 617321fbaf8Sespie ;; 618321fbaf8Sespie hppa-next) 619321fbaf8Sespie os=-nextstep3 620321fbaf8Sespie ;; 62137c53322Sespie hppaosf) 622321fbaf8Sespie basic_machine=hppa1.1-hp 623321fbaf8Sespie os=-osf 624321fbaf8Sespie ;; 62537c53322Sespie hppro) 62637c53322Sespie basic_machine=hppa1.1-hp 62737c53322Sespie os=-proelf 62837c53322Sespie ;; 629321fbaf8Sespie i370-ibm* | ibm*) 630321fbaf8Sespie basic_machine=i370-ibm 631321fbaf8Sespie ;; 632321fbaf8Sespie# I'm not sure what "Sysv32" means. Should this be sysv3.2? 63337c53322Sespie i*86v32) 634321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 635321fbaf8Sespie os=-sysv32 636321fbaf8Sespie ;; 63737c53322Sespie i*86v4*) 638321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 639321fbaf8Sespie os=-sysv4 640321fbaf8Sespie ;; 64137c53322Sespie i*86v) 642321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 643321fbaf8Sespie os=-sysv 644321fbaf8Sespie ;; 64537c53322Sespie i*86sol2) 646321fbaf8Sespie basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 647321fbaf8Sespie os=-solaris2 648321fbaf8Sespie ;; 64937c53322Sespie i386mach) 650321fbaf8Sespie basic_machine=i386-mach 651321fbaf8Sespie os=-mach 652321fbaf8Sespie ;; 65337c53322Sespie i386-vsta | vsta) 654321fbaf8Sespie basic_machine=i386-unknown 655321fbaf8Sespie os=-vsta 656321fbaf8Sespie ;; 657321fbaf8Sespie iris | iris4d) 658321fbaf8Sespie basic_machine=mips-sgi 659321fbaf8Sespie case $os in 660321fbaf8Sespie -irix*) 661321fbaf8Sespie ;; 662321fbaf8Sespie *) 663321fbaf8Sespie os=-irix4 664321fbaf8Sespie ;; 665321fbaf8Sespie esac 666321fbaf8Sespie ;; 667321fbaf8Sespie isi68 | isi) 668321fbaf8Sespie basic_machine=m68k-isi 669321fbaf8Sespie os=-sysv 670321fbaf8Sespie ;; 671321fbaf8Sespie m88k-omron*) 672321fbaf8Sespie basic_machine=m88k-omron 673321fbaf8Sespie ;; 674321fbaf8Sespie magnum | m3230) 675321fbaf8Sespie basic_machine=mips-mips 676321fbaf8Sespie os=-sysv 677321fbaf8Sespie ;; 678321fbaf8Sespie merlin) 679321fbaf8Sespie basic_machine=ns32k-utek 680321fbaf8Sespie os=-sysv 681321fbaf8Sespie ;; 68237c53322Sespie mingw32) 68337c53322Sespie basic_machine=i386-pc 68437c53322Sespie os=-mingw32 68537c53322Sespie ;; 686321fbaf8Sespie miniframe) 687321fbaf8Sespie basic_machine=m68000-convergent 688321fbaf8Sespie ;; 68937c53322Sespie *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 69037c53322Sespie basic_machine=m68k-atari 69137c53322Sespie os=-mint 692321fbaf8Sespie ;; 693321fbaf8Sespie mips3*-*) 694321fbaf8Sespie basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 695321fbaf8Sespie ;; 696321fbaf8Sespie mips3*) 697321fbaf8Sespie basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 698321fbaf8Sespie ;; 69937c53322Sespie monitor) 700321fbaf8Sespie basic_machine=m68k-rom68k 701321fbaf8Sespie os=-coff 702321fbaf8Sespie ;; 70337c53322Sespie morphos) 70437c53322Sespie basic_machine=powerpc-unknown 70537c53322Sespie os=-morphos 70637c53322Sespie ;; 70737c53322Sespie msdos) 70837c53322Sespie basic_machine=i386-pc 709321fbaf8Sespie os=-msdos 710321fbaf8Sespie ;; 711*150b7e42Smiod ms1-*) 712*150b7e42Smiod basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 713*150b7e42Smiod ;; 71437c53322Sespie mvs) 71537c53322Sespie basic_machine=i370-ibm 71637c53322Sespie os=-mvs 71737c53322Sespie ;; 718321fbaf8Sespie ncr3000) 719321fbaf8Sespie basic_machine=i486-ncr 720321fbaf8Sespie os=-sysv4 721321fbaf8Sespie ;; 722321fbaf8Sespie netbsd386) 72337c53322Sespie basic_machine=i386-unknown 724321fbaf8Sespie os=-netbsd 725321fbaf8Sespie ;; 726321fbaf8Sespie netwinder) 72737c53322Sespie basic_machine=armv4l-rebel 728321fbaf8Sespie os=-linux 729321fbaf8Sespie ;; 730321fbaf8Sespie news | news700 | news800 | news900) 731321fbaf8Sespie basic_machine=m68k-sony 732321fbaf8Sespie os=-newsos 733321fbaf8Sespie ;; 734321fbaf8Sespie news1000) 735321fbaf8Sespie basic_machine=m68030-sony 736321fbaf8Sespie os=-newsos 737321fbaf8Sespie ;; 738321fbaf8Sespie news-3600 | risc-news) 739321fbaf8Sespie basic_machine=mips-sony 740321fbaf8Sespie os=-newsos 741321fbaf8Sespie ;; 74237c53322Sespie necv70) 743321fbaf8Sespie basic_machine=v70-nec 744321fbaf8Sespie os=-sysv 745321fbaf8Sespie ;; 746321fbaf8Sespie next | m*-next ) 747321fbaf8Sespie basic_machine=m68k-next 748321fbaf8Sespie case $os in 749321fbaf8Sespie -nextstep* ) 750321fbaf8Sespie ;; 751321fbaf8Sespie -ns2*) 752321fbaf8Sespie os=-nextstep2 753321fbaf8Sespie ;; 754321fbaf8Sespie *) 755321fbaf8Sespie os=-nextstep3 756321fbaf8Sespie ;; 757321fbaf8Sespie esac 758321fbaf8Sespie ;; 759321fbaf8Sespie nh3000) 760321fbaf8Sespie basic_machine=m68k-harris 761321fbaf8Sespie os=-cxux 762321fbaf8Sespie ;; 763321fbaf8Sespie nh[45]000) 764321fbaf8Sespie basic_machine=m88k-harris 765321fbaf8Sespie os=-cxux 766321fbaf8Sespie ;; 767321fbaf8Sespie nindy960) 768321fbaf8Sespie basic_machine=i960-intel 769321fbaf8Sespie os=-nindy 770321fbaf8Sespie ;; 77137c53322Sespie mon960) 772321fbaf8Sespie basic_machine=i960-intel 773321fbaf8Sespie os=-mon960 774321fbaf8Sespie ;; 77537c53322Sespie nonstopux) 77637c53322Sespie basic_machine=mips-compaq 77737c53322Sespie os=-nonstopux 77837c53322Sespie ;; 779321fbaf8Sespie np1) 780321fbaf8Sespie basic_machine=np1-gould 781321fbaf8Sespie ;; 78237c53322Sespie nsr-tandem) 78337c53322Sespie basic_machine=nsr-tandem 78437c53322Sespie ;; 78537c53322Sespie op50n-* | op60c-*) 78637c53322Sespie basic_machine=hppa1.1-oki 78737c53322Sespie os=-proelf 78837c53322Sespie ;; 789*150b7e42Smiod openrisc | openrisc-*) 79037c53322Sespie basic_machine=or32-unknown 791*150b7e42Smiod ;; 792*150b7e42Smiod os400) 793*150b7e42Smiod basic_machine=powerpc-ibm 794*150b7e42Smiod os=-os400 79537c53322Sespie ;; 79637c53322Sespie OSE68000 | ose68000) 797321fbaf8Sespie basic_machine=m68000-ericsson 798321fbaf8Sespie os=-ose 799321fbaf8Sespie ;; 80037c53322Sespie os68k) 801321fbaf8Sespie basic_machine=m68k-none 802321fbaf8Sespie os=-os68k 803321fbaf8Sespie ;; 804321fbaf8Sespie pa-hitachi) 805321fbaf8Sespie basic_machine=hppa1.1-hitachi 806321fbaf8Sespie os=-hiuxwe2 807321fbaf8Sespie ;; 808321fbaf8Sespie paragon) 809321fbaf8Sespie basic_machine=i860-intel 810321fbaf8Sespie os=-osf 811321fbaf8Sespie ;; 812321fbaf8Sespie pbd) 813321fbaf8Sespie basic_machine=sparc-tti 814321fbaf8Sespie ;; 815321fbaf8Sespie pbb) 816321fbaf8Sespie basic_machine=m68k-tti 817321fbaf8Sespie ;; 818321fbaf8Sespie pc532 | pc532-*) 819321fbaf8Sespie basic_machine=ns32k-pc532 820321fbaf8Sespie ;; 821*150b7e42Smiod pc98) 822*150b7e42Smiod basic_machine=i386-pc 823*150b7e42Smiod ;; 824*150b7e42Smiod pc98-*) 825*150b7e42Smiod basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 826*150b7e42Smiod ;; 82737c53322Sespie pentium | p5 | k5 | k6 | nexgen | viac3) 828321fbaf8Sespie basic_machine=i586-pc 829321fbaf8Sespie ;; 83037c53322Sespie pentiumpro | p6 | 6x86 | athlon | athlon_*) 831321fbaf8Sespie basic_machine=i686-pc 832321fbaf8Sespie ;; 833*150b7e42Smiod pentiumii | pentium2 | pentiumiii | pentium3) 83437c53322Sespie basic_machine=i686-pc 835321fbaf8Sespie ;; 836*150b7e42Smiod pentium4) 837*150b7e42Smiod basic_machine=i786-pc 838*150b7e42Smiod ;; 83937c53322Sespie pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 840321fbaf8Sespie basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 841321fbaf8Sespie ;; 84237c53322Sespie pentiumpro-* | p6-* | 6x86-* | athlon-*) 843321fbaf8Sespie basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 844321fbaf8Sespie ;; 845*150b7e42Smiod pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 84637c53322Sespie basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 847321fbaf8Sespie ;; 848*150b7e42Smiod pentium4-*) 849*150b7e42Smiod basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 850*150b7e42Smiod ;; 851321fbaf8Sespie pn) 852321fbaf8Sespie basic_machine=pn-gould 853321fbaf8Sespie ;; 85437c53322Sespie power) basic_machine=power-ibm 855321fbaf8Sespie ;; 856321fbaf8Sespie ppc) basic_machine=powerpc-unknown 857321fbaf8Sespie ;; 858321fbaf8Sespie ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 859321fbaf8Sespie ;; 860321fbaf8Sespie ppcle | powerpclittle | ppc-le | powerpc-little) 861321fbaf8Sespie basic_machine=powerpcle-unknown 862321fbaf8Sespie ;; 863321fbaf8Sespie ppcle-* | powerpclittle-*) 864321fbaf8Sespie basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 865321fbaf8Sespie ;; 86637c53322Sespie ppc64) basic_machine=powerpc64-unknown 86737c53322Sespie ;; 86837c53322Sespie ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 86937c53322Sespie ;; 87037c53322Sespie ppc64le | powerpc64little | ppc64-le | powerpc64-little) 87137c53322Sespie basic_machine=powerpc64le-unknown 87237c53322Sespie ;; 87337c53322Sespie ppc64le-* | powerpc64little-*) 87437c53322Sespie basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 87537c53322Sespie ;; 876321fbaf8Sespie ps2) 877321fbaf8Sespie basic_machine=i386-ibm 878321fbaf8Sespie ;; 87937c53322Sespie pw32) 88037c53322Sespie basic_machine=i586-unknown 88137c53322Sespie os=-pw32 88237c53322Sespie ;; 883*150b7e42Smiod rdos) 884*150b7e42Smiod basic_machine=i386-pc 885*150b7e42Smiod os=-rdos 886*150b7e42Smiod ;; 88737c53322Sespie rom68k) 888321fbaf8Sespie basic_machine=m68k-rom68k 889321fbaf8Sespie os=-coff 890321fbaf8Sespie ;; 891321fbaf8Sespie rm[46]00) 892321fbaf8Sespie basic_machine=mips-siemens 893321fbaf8Sespie ;; 894321fbaf8Sespie rtpc | rtpc-*) 895321fbaf8Sespie basic_machine=romp-ibm 896321fbaf8Sespie ;; 89737c53322Sespie s390 | s390-*) 89837c53322Sespie basic_machine=s390-ibm 89937c53322Sespie ;; 90037c53322Sespie s390x | s390x-*) 90137c53322Sespie basic_machine=s390x-ibm 90237c53322Sespie ;; 90337c53322Sespie sa29200) 904321fbaf8Sespie basic_machine=a29k-amd 905321fbaf8Sespie os=-udi 906321fbaf8Sespie ;; 90737c53322Sespie sb1) 90837c53322Sespie basic_machine=mipsisa64sb1-unknown 90937c53322Sespie ;; 91037c53322Sespie sb1el) 91137c53322Sespie basic_machine=mipsisa64sb1el-unknown 91237c53322Sespie ;; 913*150b7e42Smiod sei) 914*150b7e42Smiod basic_machine=mips-sei 915*150b7e42Smiod os=-seiux 916*150b7e42Smiod ;; 917321fbaf8Sespie sequent) 918321fbaf8Sespie basic_machine=i386-sequent 919321fbaf8Sespie ;; 920321fbaf8Sespie sh) 921321fbaf8Sespie basic_machine=sh-hitachi 922321fbaf8Sespie os=-hms 923321fbaf8Sespie ;; 924*150b7e42Smiod sh64) 925*150b7e42Smiod basic_machine=sh64-unknown 926*150b7e42Smiod ;; 92737c53322Sespie sparclite-wrs | simso-wrs) 928321fbaf8Sespie basic_machine=sparclite-wrs 929321fbaf8Sespie os=-vxworks 930321fbaf8Sespie ;; 931321fbaf8Sespie sps7) 932321fbaf8Sespie basic_machine=m68k-bull 933321fbaf8Sespie os=-sysv2 934321fbaf8Sespie ;; 935321fbaf8Sespie spur) 936321fbaf8Sespie basic_machine=spur-unknown 937321fbaf8Sespie ;; 93837c53322Sespie st2000) 939321fbaf8Sespie basic_machine=m68k-tandem 940321fbaf8Sespie ;; 94137c53322Sespie stratus) 942321fbaf8Sespie basic_machine=i860-stratus 943321fbaf8Sespie os=-sysv4 944321fbaf8Sespie ;; 945321fbaf8Sespie sun2) 946321fbaf8Sespie basic_machine=m68000-sun 947321fbaf8Sespie ;; 948321fbaf8Sespie sun2os3) 949321fbaf8Sespie basic_machine=m68000-sun 950321fbaf8Sespie os=-sunos3 951321fbaf8Sespie ;; 952321fbaf8Sespie sun2os4) 953321fbaf8Sespie basic_machine=m68000-sun 954321fbaf8Sespie os=-sunos4 955321fbaf8Sespie ;; 956321fbaf8Sespie sun3os3) 957321fbaf8Sespie basic_machine=m68k-sun 958321fbaf8Sespie os=-sunos3 959321fbaf8Sespie ;; 960321fbaf8Sespie sun3os4) 961321fbaf8Sespie basic_machine=m68k-sun 962321fbaf8Sespie os=-sunos4 963321fbaf8Sespie ;; 964321fbaf8Sespie sun4os3) 965321fbaf8Sespie basic_machine=sparc-sun 966321fbaf8Sespie os=-sunos3 967321fbaf8Sespie ;; 968321fbaf8Sespie sun4os4) 969321fbaf8Sespie basic_machine=sparc-sun 970321fbaf8Sespie os=-sunos4 971321fbaf8Sespie ;; 972321fbaf8Sespie sun4sol2) 973321fbaf8Sespie basic_machine=sparc-sun 974321fbaf8Sespie os=-solaris2 975321fbaf8Sespie ;; 976321fbaf8Sespie sun3 | sun3-*) 977321fbaf8Sespie basic_machine=m68k-sun 978321fbaf8Sespie ;; 979321fbaf8Sespie sun4) 980321fbaf8Sespie basic_machine=sparc-sun 981321fbaf8Sespie ;; 982321fbaf8Sespie sun386 | sun386i | roadrunner) 983321fbaf8Sespie basic_machine=i386-sun 984321fbaf8Sespie ;; 98537c53322Sespie sv1) 98637c53322Sespie basic_machine=sv1-cray 98737c53322Sespie os=-unicos 98837c53322Sespie ;; 989321fbaf8Sespie symmetry) 990321fbaf8Sespie basic_machine=i386-sequent 991321fbaf8Sespie os=-dynix 992321fbaf8Sespie ;; 99337c53322Sespie t3e) 99437c53322Sespie basic_machine=alphaev5-cray 99537c53322Sespie os=-unicos 99637c53322Sespie ;; 99737c53322Sespie t90) 99837c53322Sespie basic_machine=t90-cray 99937c53322Sespie os=-unicos 100037c53322Sespie ;; 100137c53322Sespie tic54x | c54x*) 100237c53322Sespie basic_machine=tic54x-unknown 100337c53322Sespie os=-coff 100437c53322Sespie ;; 1005*150b7e42Smiod tic55x | c55x*) 1006*150b7e42Smiod basic_machine=tic55x-unknown 1007*150b7e42Smiod os=-coff 1008*150b7e42Smiod ;; 1009*150b7e42Smiod tic6x | c6x*) 1010*150b7e42Smiod basic_machine=tic6x-unknown 1011*150b7e42Smiod os=-coff 1012*150b7e42Smiod ;; 1013321fbaf8Sespie tx39) 1014321fbaf8Sespie basic_machine=mipstx39-unknown 1015321fbaf8Sespie ;; 1016321fbaf8Sespie tx39el) 1017321fbaf8Sespie basic_machine=mipstx39el-unknown 1018321fbaf8Sespie ;; 101937c53322Sespie toad1) 102037c53322Sespie basic_machine=pdp10-xkl 102137c53322Sespie os=-tops20 102237c53322Sespie ;; 1023321fbaf8Sespie tower | tower-32) 1024321fbaf8Sespie basic_machine=m68k-ncr 1025321fbaf8Sespie ;; 1026*150b7e42Smiod tpf) 1027*150b7e42Smiod basic_machine=s390x-ibm 1028*150b7e42Smiod os=-tpf 1029*150b7e42Smiod ;; 1030321fbaf8Sespie udi29k) 1031321fbaf8Sespie basic_machine=a29k-amd 1032321fbaf8Sespie os=-udi 1033321fbaf8Sespie ;; 1034321fbaf8Sespie ultra3) 1035321fbaf8Sespie basic_machine=a29k-nyu 1036321fbaf8Sespie os=-sym1 1037321fbaf8Sespie ;; 103837c53322Sespie v810 | necv810) 1039321fbaf8Sespie basic_machine=v810-nec 1040321fbaf8Sespie os=-none 1041321fbaf8Sespie ;; 1042321fbaf8Sespie vaxv) 1043321fbaf8Sespie basic_machine=vax-dec 1044321fbaf8Sespie os=-sysv 1045321fbaf8Sespie ;; 1046321fbaf8Sespie vms) 1047321fbaf8Sespie basic_machine=vax-dec 1048321fbaf8Sespie os=-vms 1049321fbaf8Sespie ;; 1050321fbaf8Sespie vpp*|vx|vx-*) 1051321fbaf8Sespie basic_machine=f301-fujitsu 1052321fbaf8Sespie ;; 1053321fbaf8Sespie vxworks960) 1054321fbaf8Sespie basic_machine=i960-wrs 1055321fbaf8Sespie os=-vxworks 1056321fbaf8Sespie ;; 1057321fbaf8Sespie vxworks68) 1058321fbaf8Sespie basic_machine=m68k-wrs 1059321fbaf8Sespie os=-vxworks 1060321fbaf8Sespie ;; 1061321fbaf8Sespie vxworks29k) 1062321fbaf8Sespie basic_machine=a29k-wrs 1063321fbaf8Sespie os=-vxworks 1064321fbaf8Sespie ;; 106537c53322Sespie w65*) 1066321fbaf8Sespie basic_machine=w65-wdc 1067321fbaf8Sespie os=-none 1068321fbaf8Sespie ;; 106937c53322Sespie w89k-*) 107037c53322Sespie basic_machine=hppa1.1-winbond 107137c53322Sespie os=-proelf 1072321fbaf8Sespie ;; 1073*150b7e42Smiod xbox) 1074*150b7e42Smiod basic_machine=i686-pc 1075*150b7e42Smiod os=-mingw32 1076*150b7e42Smiod ;; 1077321fbaf8Sespie xps | xps100) 1078321fbaf8Sespie basic_machine=xps100-honeywell 1079321fbaf8Sespie ;; 108037c53322Sespie ymp) 108137c53322Sespie basic_machine=ymp-cray 108237c53322Sespie os=-unicos 108337c53322Sespie ;; 108437c53322Sespie z8k-*-coff) 1085321fbaf8Sespie basic_machine=z8k-unknown 1086321fbaf8Sespie os=-sim 1087321fbaf8Sespie ;; 1088321fbaf8Sespie none) 1089321fbaf8Sespie basic_machine=none-none 1090321fbaf8Sespie os=-none 1091321fbaf8Sespie ;; 1092321fbaf8Sespie 1093321fbaf8Sespie# Here we handle the default manufacturer of certain CPU types. It is in 1094321fbaf8Sespie# some cases the only manufacturer, in others, it is the most popular. 109537c53322Sespie w89k) 1096321fbaf8Sespie basic_machine=hppa1.1-winbond 1097321fbaf8Sespie ;; 109837c53322Sespie op50n) 1099321fbaf8Sespie basic_machine=hppa1.1-oki 1100321fbaf8Sespie ;; 110137c53322Sespie op60c) 1102321fbaf8Sespie basic_machine=hppa1.1-oki 1103321fbaf8Sespie ;; 1104321fbaf8Sespie romp) 1105321fbaf8Sespie basic_machine=romp-ibm 1106321fbaf8Sespie ;; 1107*150b7e42Smiod mmix) 1108*150b7e42Smiod basic_machine=mmix-knuth 1109*150b7e42Smiod ;; 1110321fbaf8Sespie rs6000) 1111321fbaf8Sespie basic_machine=rs6000-ibm 1112321fbaf8Sespie ;; 1113321fbaf8Sespie vax) 1114321fbaf8Sespie basic_machine=vax-dec 1115321fbaf8Sespie ;; 111637c53322Sespie pdp10) 111737c53322Sespie # there are many clones, so DEC is not a safe bet 111837c53322Sespie basic_machine=pdp10-unknown 111937c53322Sespie ;; 1120321fbaf8Sespie pdp11) 1121321fbaf8Sespie basic_machine=pdp11-dec 1122321fbaf8Sespie ;; 1123321fbaf8Sespie we32k) 1124321fbaf8Sespie basic_machine=we32k-att 1125321fbaf8Sespie ;; 1126*150b7e42Smiod sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 112737c53322Sespie basic_machine=sh-unknown 112837c53322Sespie ;; 1129*150b7e42Smiod sparc | sparcv8 | sparcv9 | sparcv9b) 1130321fbaf8Sespie basic_machine=sparc-sun 1131321fbaf8Sespie ;; 1132321fbaf8Sespie cydra) 1133321fbaf8Sespie basic_machine=cydra-cydrome 1134321fbaf8Sespie ;; 1135321fbaf8Sespie orion) 1136321fbaf8Sespie basic_machine=orion-highlevel 1137321fbaf8Sespie ;; 1138321fbaf8Sespie orion105) 1139321fbaf8Sespie basic_machine=clipper-highlevel 1140321fbaf8Sespie ;; 114137c53322Sespie mac | mpw | mac-mpw) 1142321fbaf8Sespie basic_machine=m68k-apple 1143321fbaf8Sespie ;; 114437c53322Sespie pmac | pmac-mpw) 1145321fbaf8Sespie basic_machine=powerpc-apple 1146321fbaf8Sespie ;; 114737c53322Sespie *-unknown) 114837c53322Sespie # Make sure to match an already-canonicalized machine name. 1149321fbaf8Sespie ;; 1150321fbaf8Sespie *) 1151321fbaf8Sespie echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 1152321fbaf8Sespie exit 1 1153321fbaf8Sespie ;; 1154321fbaf8Sespieesac 1155321fbaf8Sespie 1156321fbaf8Sespie# Here we canonicalize certain aliases for manufacturers. 1157321fbaf8Sespiecase $basic_machine in 1158321fbaf8Sespie *-digital*) 1159321fbaf8Sespie basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 1160321fbaf8Sespie ;; 1161321fbaf8Sespie *-commodore*) 1162321fbaf8Sespie basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 1163321fbaf8Sespie ;; 1164321fbaf8Sespie *) 1165321fbaf8Sespie ;; 1166321fbaf8Sespieesac 1167321fbaf8Sespie 1168321fbaf8Sespie# Decode manufacturer-specific aliases for certain operating systems. 1169321fbaf8Sespie 1170321fbaf8Sespieif [ x"$os" != x"" ] 1171321fbaf8Sespiethen 1172321fbaf8Sespiecase $os in 1173321fbaf8Sespie # First match some system type aliases 1174321fbaf8Sespie # that might get confused with valid system types. 1175321fbaf8Sespie # -solaris* is a basic system type, with this one exception. 1176321fbaf8Sespie -solaris1 | -solaris1.*) 1177321fbaf8Sespie os=`echo $os | sed -e 's|solaris1|sunos4|'` 1178321fbaf8Sespie ;; 1179321fbaf8Sespie -solaris) 1180321fbaf8Sespie os=-solaris2 1181321fbaf8Sespie ;; 1182321fbaf8Sespie -svr4*) 1183321fbaf8Sespie os=-sysv4 1184321fbaf8Sespie ;; 1185321fbaf8Sespie -unixware*) 1186321fbaf8Sespie os=-sysv4.2uw 1187321fbaf8Sespie ;; 1188321fbaf8Sespie -gnu/linux*) 1189321fbaf8Sespie os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1190321fbaf8Sespie ;; 1191321fbaf8Sespie # First accept the basic system types. 1192321fbaf8Sespie # The portable systems comes first. 1193321fbaf8Sespie # Each alternative MUST END IN A *, to match a version number. 1194321fbaf8Sespie # -sysv* is not here because it comes later, after sysvr4. 1195321fbaf8Sespie -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1196321fbaf8Sespie | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1197321fbaf8Sespie | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1198321fbaf8Sespie | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1199321fbaf8Sespie | -aos* \ 1200321fbaf8Sespie | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1201321fbaf8Sespie | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1202*150b7e42Smiod | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1203*150b7e42Smiod | -openbsd* | -solidbsd* \ 1204*150b7e42Smiod | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1205*150b7e42Smiod | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1206321fbaf8Sespie | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1207321fbaf8Sespie | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 120837c53322Sespie | -chorusos* | -chorusrdb* \ 1209321fbaf8Sespie | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1210*150b7e42Smiod | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1211*150b7e42Smiod | -uxpv* | -beos* | -mpeix* | -udk* \ 121237c53322Sespie | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 121337c53322Sespie | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 121437c53322Sespie | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 121537c53322Sespie | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 121637c53322Sespie | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1217*150b7e42Smiod | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1218*150b7e42Smiod | -skyos* | -haiku* | -rdos*) 1219321fbaf8Sespie # Remember, each alternative MUST END IN *, to match a version number. 1220321fbaf8Sespie ;; 122137c53322Sespie -qnx*) 122237c53322Sespie case $basic_machine in 122337c53322Sespie x86-* | i*86-*) 122437c53322Sespie ;; 122537c53322Sespie *) 122637c53322Sespie os=-nto$os 122737c53322Sespie ;; 122837c53322Sespie esac 122937c53322Sespie ;; 123037c53322Sespie -nto-qnx*) 123137c53322Sespie ;; 123237c53322Sespie -nto*) 123337c53322Sespie os=`echo $os | sed -e 's|nto|nto-qnx|'` 123437c53322Sespie ;; 1235321fbaf8Sespie -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1236*150b7e42Smiod | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 123737c53322Sespie | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1238321fbaf8Sespie ;; 1239321fbaf8Sespie -mac*) 1240321fbaf8Sespie os=`echo $os | sed -e 's|mac|macos|'` 1241321fbaf8Sespie ;; 1242*150b7e42Smiod -linux-dietlibc) 1243*150b7e42Smiod os=-linux-dietlibc 1244*150b7e42Smiod ;; 1245321fbaf8Sespie -linux*) 1246321fbaf8Sespie os=`echo $os | sed -e 's|linux|linux-gnu|'` 1247321fbaf8Sespie ;; 1248321fbaf8Sespie -sunos5*) 1249321fbaf8Sespie os=`echo $os | sed -e 's|sunos5|solaris2|'` 1250321fbaf8Sespie ;; 1251321fbaf8Sespie -sunos6*) 1252321fbaf8Sespie os=`echo $os | sed -e 's|sunos6|solaris3|'` 1253321fbaf8Sespie ;; 125437c53322Sespie -opened*) 125537c53322Sespie os=-openedition 125637c53322Sespie ;; 1257*150b7e42Smiod -os400*) 1258*150b7e42Smiod os=-os400 1259*150b7e42Smiod ;; 126037c53322Sespie -wince*) 126137c53322Sespie os=-wince 126237c53322Sespie ;; 1263321fbaf8Sespie -osfrose*) 1264321fbaf8Sespie os=-osfrose 1265321fbaf8Sespie ;; 1266321fbaf8Sespie -osf*) 1267321fbaf8Sespie os=-osf 1268321fbaf8Sespie ;; 1269321fbaf8Sespie -utek*) 1270321fbaf8Sespie os=-bsd 1271321fbaf8Sespie ;; 1272321fbaf8Sespie -dynix*) 1273321fbaf8Sespie os=-bsd 1274321fbaf8Sespie ;; 1275321fbaf8Sespie -acis*) 1276321fbaf8Sespie os=-aos 1277321fbaf8Sespie ;; 127837c53322Sespie -atheos*) 127937c53322Sespie os=-atheos 128037c53322Sespie ;; 1281*150b7e42Smiod -syllable*) 1282*150b7e42Smiod os=-syllable 1283*150b7e42Smiod ;; 128437c53322Sespie -386bsd) 1285321fbaf8Sespie os=-bsd 1286321fbaf8Sespie ;; 1287321fbaf8Sespie -ctix* | -uts*) 1288321fbaf8Sespie os=-sysv 1289321fbaf8Sespie ;; 129037c53322Sespie -nova*) 129137c53322Sespie os=-rtmk-nova 129237c53322Sespie ;; 1293321fbaf8Sespie -ns2 ) 1294321fbaf8Sespie os=-nextstep2 1295321fbaf8Sespie ;; 129637c53322Sespie -nsk*) 129737c53322Sespie os=-nsk 129837c53322Sespie ;; 1299321fbaf8Sespie # Preserve the version number of sinix5. 1300321fbaf8Sespie -sinix5.*) 1301321fbaf8Sespie os=`echo $os | sed -e 's|sinix|sysv|'` 1302321fbaf8Sespie ;; 1303321fbaf8Sespie -sinix*) 1304321fbaf8Sespie os=-sysv4 1305321fbaf8Sespie ;; 1306*150b7e42Smiod -tpf*) 1307*150b7e42Smiod os=-tpf 1308*150b7e42Smiod ;; 1309321fbaf8Sespie -triton*) 1310321fbaf8Sespie os=-sysv3 1311321fbaf8Sespie ;; 1312321fbaf8Sespie -oss*) 1313321fbaf8Sespie os=-sysv3 1314321fbaf8Sespie ;; 1315321fbaf8Sespie -svr4) 1316321fbaf8Sespie os=-sysv4 1317321fbaf8Sespie ;; 1318321fbaf8Sespie -svr3) 1319321fbaf8Sespie os=-sysv3 1320321fbaf8Sespie ;; 1321321fbaf8Sespie -sysvr4) 1322321fbaf8Sespie os=-sysv4 1323321fbaf8Sespie ;; 1324321fbaf8Sespie # This must come after -sysvr4. 1325321fbaf8Sespie -sysv*) 1326321fbaf8Sespie ;; 132737c53322Sespie -ose*) 1328321fbaf8Sespie os=-ose 1329321fbaf8Sespie ;; 133037c53322Sespie -es1800*) 1331321fbaf8Sespie os=-ose 1332321fbaf8Sespie ;; 1333321fbaf8Sespie -xenix) 1334321fbaf8Sespie os=-xenix 1335321fbaf8Sespie ;; 133637c53322Sespie -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 133737c53322Sespie os=-mint 133837c53322Sespie ;; 133937c53322Sespie -aros*) 134037c53322Sespie os=-aros 134137c53322Sespie ;; 1342*150b7e42Smiod -kaos*) 1343*150b7e42Smiod os=-kaos 1344*150b7e42Smiod ;; 1345*150b7e42Smiod -zvmoe) 1346*150b7e42Smiod os=-zvmoe 1347*150b7e42Smiod ;; 1348321fbaf8Sespie -none) 1349321fbaf8Sespie ;; 1350321fbaf8Sespie *) 1351321fbaf8Sespie # Get rid of the `-' at the beginning of $os. 1352321fbaf8Sespie os=`echo $os | sed 's/[^-]*-//'` 1353321fbaf8Sespie echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 1354321fbaf8Sespie exit 1 1355321fbaf8Sespie ;; 1356321fbaf8Sespieesac 1357321fbaf8Sespieelse 1358321fbaf8Sespie 1359321fbaf8Sespie# Here we handle the default operating systems that come with various machines. 1360321fbaf8Sespie# The value should be what the vendor currently ships out the door with their 1361321fbaf8Sespie# machine or put another way, the most popular os provided with the machine. 1362321fbaf8Sespie 1363321fbaf8Sespie# Note that if you're going to try to match "-MANUFACTURER" here (say, 1364321fbaf8Sespie# "-sun"), then you have to tell the case statement up towards the top 1365321fbaf8Sespie# that MANUFACTURER isn't an operating system. Otherwise, code above 1366321fbaf8Sespie# will signal an error saying that MANUFACTURER isn't an operating 1367321fbaf8Sespie# system, and we'll never get to this point. 1368321fbaf8Sespie 1369321fbaf8Sespiecase $basic_machine in 1370321fbaf8Sespie *-acorn) 1371321fbaf8Sespie os=-riscix1.2 1372321fbaf8Sespie ;; 137337c53322Sespie arm*-rebel) 1374321fbaf8Sespie os=-linux 1375321fbaf8Sespie ;; 1376321fbaf8Sespie arm*-semi) 1377321fbaf8Sespie os=-aout 1378321fbaf8Sespie ;; 1379*150b7e42Smiod c4x-* | tic4x-*) 1380*150b7e42Smiod os=-coff 1381*150b7e42Smiod ;; 138237c53322Sespie # This must come before the *-dec entry. 138337c53322Sespie pdp10-*) 138437c53322Sespie os=-tops20 138537c53322Sespie ;; 1386321fbaf8Sespie pdp11-*) 1387321fbaf8Sespie os=-none 1388321fbaf8Sespie ;; 1389321fbaf8Sespie *-dec | vax-*) 1390321fbaf8Sespie os=-ultrix4.2 1391321fbaf8Sespie ;; 1392321fbaf8Sespie m68*-apollo) 1393321fbaf8Sespie os=-domain 1394321fbaf8Sespie ;; 1395321fbaf8Sespie i386-sun) 1396321fbaf8Sespie os=-sunos4.0.2 1397321fbaf8Sespie ;; 1398321fbaf8Sespie m68000-sun) 1399321fbaf8Sespie os=-sunos3 1400321fbaf8Sespie # This also exists in the configure program, but was not the 1401321fbaf8Sespie # default. 1402321fbaf8Sespie # os=-sunos4 1403321fbaf8Sespie ;; 140437c53322Sespie m68*-cisco) 1405321fbaf8Sespie os=-aout 1406321fbaf8Sespie ;; 140737c53322Sespie mips*-cisco) 1408321fbaf8Sespie os=-elf 1409321fbaf8Sespie ;; 141037c53322Sespie mips*-*) 1411321fbaf8Sespie os=-elf 1412321fbaf8Sespie ;; 141337c53322Sespie or32-*) 141437c53322Sespie os=-coff 141537c53322Sespie ;; 1416321fbaf8Sespie *-tti) # must be before sparc entry or we get the wrong os. 1417321fbaf8Sespie os=-sysv3 1418321fbaf8Sespie ;; 1419321fbaf8Sespie sparc-* | *-sun) 1420321fbaf8Sespie os=-sunos4.1.1 1421321fbaf8Sespie ;; 1422321fbaf8Sespie *-be) 1423321fbaf8Sespie os=-beos 1424321fbaf8Sespie ;; 1425*150b7e42Smiod *-haiku) 1426*150b7e42Smiod os=-haiku 1427*150b7e42Smiod ;; 1428321fbaf8Sespie *-ibm) 1429321fbaf8Sespie os=-aix 1430321fbaf8Sespie ;; 1431*150b7e42Smiod *-knuth) 1432*150b7e42Smiod os=-mmixware 1433*150b7e42Smiod ;; 143437c53322Sespie *-wec) 1435321fbaf8Sespie os=-proelf 1436321fbaf8Sespie ;; 143737c53322Sespie *-winbond) 1438321fbaf8Sespie os=-proelf 1439321fbaf8Sespie ;; 144037c53322Sespie *-oki) 1441321fbaf8Sespie os=-proelf 1442321fbaf8Sespie ;; 1443321fbaf8Sespie *-hp) 1444321fbaf8Sespie os=-hpux 1445321fbaf8Sespie ;; 1446321fbaf8Sespie *-hitachi) 1447321fbaf8Sespie os=-hiux 1448321fbaf8Sespie ;; 1449321fbaf8Sespie i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1450321fbaf8Sespie os=-sysv 1451321fbaf8Sespie ;; 1452321fbaf8Sespie *-cbm) 1453321fbaf8Sespie os=-amigaos 1454321fbaf8Sespie ;; 1455321fbaf8Sespie *-dg) 1456321fbaf8Sespie os=-dgux 1457321fbaf8Sespie ;; 1458321fbaf8Sespie *-dolphin) 1459321fbaf8Sespie os=-sysv3 1460321fbaf8Sespie ;; 1461321fbaf8Sespie m68k-ccur) 1462321fbaf8Sespie os=-rtu 1463321fbaf8Sespie ;; 1464321fbaf8Sespie m88k-omron*) 1465321fbaf8Sespie os=-luna 1466321fbaf8Sespie ;; 1467321fbaf8Sespie *-next ) 1468321fbaf8Sespie os=-nextstep 1469321fbaf8Sespie ;; 1470321fbaf8Sespie *-sequent) 1471321fbaf8Sespie os=-ptx 1472321fbaf8Sespie ;; 1473321fbaf8Sespie *-crds) 1474321fbaf8Sespie os=-unos 1475321fbaf8Sespie ;; 1476321fbaf8Sespie *-ns) 1477321fbaf8Sespie os=-genix 1478321fbaf8Sespie ;; 1479321fbaf8Sespie i370-*) 1480321fbaf8Sespie os=-mvs 1481321fbaf8Sespie ;; 1482321fbaf8Sespie *-next) 1483321fbaf8Sespie os=-nextstep3 1484321fbaf8Sespie ;; 1485321fbaf8Sespie *-gould) 1486321fbaf8Sespie os=-sysv 1487321fbaf8Sespie ;; 1488321fbaf8Sespie *-highlevel) 1489321fbaf8Sespie os=-bsd 1490321fbaf8Sespie ;; 1491321fbaf8Sespie *-encore) 1492321fbaf8Sespie os=-bsd 1493321fbaf8Sespie ;; 1494321fbaf8Sespie *-sgi) 1495321fbaf8Sespie os=-irix 1496321fbaf8Sespie ;; 1497321fbaf8Sespie *-siemens) 1498321fbaf8Sespie os=-sysv4 1499321fbaf8Sespie ;; 1500321fbaf8Sespie *-masscomp) 1501321fbaf8Sespie os=-rtu 1502321fbaf8Sespie ;; 150337c53322Sespie f30[01]-fujitsu | f700-fujitsu) 1504321fbaf8Sespie os=-uxpv 1505321fbaf8Sespie ;; 150637c53322Sespie *-rom68k) 1507321fbaf8Sespie os=-coff 1508321fbaf8Sespie ;; 150937c53322Sespie *-*bug) 1510321fbaf8Sespie os=-coff 1511321fbaf8Sespie ;; 151237c53322Sespie *-apple) 1513321fbaf8Sespie os=-macos 1514321fbaf8Sespie ;; 151537c53322Sespie *-atari*) 151637c53322Sespie os=-mint 151737c53322Sespie ;; 1518321fbaf8Sespie *) 1519321fbaf8Sespie os=-none 1520321fbaf8Sespie ;; 1521321fbaf8Sespieesac 1522321fbaf8Sespiefi 1523321fbaf8Sespie 1524321fbaf8Sespie# Here we handle the case where we know the os, and the CPU type, but not the 1525321fbaf8Sespie# manufacturer. We pick the logical manufacturer. 1526321fbaf8Sespievendor=unknown 1527321fbaf8Sespiecase $basic_machine in 1528321fbaf8Sespie *-unknown) 1529321fbaf8Sespie case $os in 1530321fbaf8Sespie -riscix*) 1531321fbaf8Sespie vendor=acorn 1532321fbaf8Sespie ;; 1533321fbaf8Sespie -sunos*) 1534321fbaf8Sespie vendor=sun 1535321fbaf8Sespie ;; 1536321fbaf8Sespie -aix*) 1537321fbaf8Sespie vendor=ibm 1538321fbaf8Sespie ;; 1539321fbaf8Sespie -beos*) 1540321fbaf8Sespie vendor=be 1541321fbaf8Sespie ;; 1542321fbaf8Sespie -hpux*) 1543321fbaf8Sespie vendor=hp 1544321fbaf8Sespie ;; 1545321fbaf8Sespie -mpeix*) 1546321fbaf8Sespie vendor=hp 1547321fbaf8Sespie ;; 1548321fbaf8Sespie -hiux*) 1549321fbaf8Sespie vendor=hitachi 1550321fbaf8Sespie ;; 1551321fbaf8Sespie -unos*) 1552321fbaf8Sespie vendor=crds 1553321fbaf8Sespie ;; 1554321fbaf8Sespie -dgux*) 1555321fbaf8Sespie vendor=dg 1556321fbaf8Sespie ;; 1557321fbaf8Sespie -luna*) 1558321fbaf8Sespie vendor=omron 1559321fbaf8Sespie ;; 1560321fbaf8Sespie -genix*) 1561321fbaf8Sespie vendor=ns 1562321fbaf8Sespie ;; 156337c53322Sespie -mvs* | -opened*) 1564321fbaf8Sespie vendor=ibm 1565321fbaf8Sespie ;; 1566*150b7e42Smiod -os400*) 1567*150b7e42Smiod vendor=ibm 1568*150b7e42Smiod ;; 1569321fbaf8Sespie -ptx*) 1570321fbaf8Sespie vendor=sequent 1571321fbaf8Sespie ;; 1572*150b7e42Smiod -tpf*) 1573*150b7e42Smiod vendor=ibm 1574*150b7e42Smiod ;; 157537c53322Sespie -vxsim* | -vxworks* | -windiss*) 1576321fbaf8Sespie vendor=wrs 1577321fbaf8Sespie ;; 1578321fbaf8Sespie -aux*) 1579321fbaf8Sespie vendor=apple 1580321fbaf8Sespie ;; 158137c53322Sespie -hms*) 1582321fbaf8Sespie vendor=hitachi 1583321fbaf8Sespie ;; 158437c53322Sespie -mpw* | -macos*) 1585321fbaf8Sespie vendor=apple 1586321fbaf8Sespie ;; 158737c53322Sespie -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 158837c53322Sespie vendor=atari 158937c53322Sespie ;; 159037c53322Sespie -vos*) 159137c53322Sespie vendor=stratus 159237c53322Sespie ;; 1593321fbaf8Sespie esac 1594321fbaf8Sespie basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1595321fbaf8Sespie ;; 1596321fbaf8Sespieesac 1597321fbaf8Sespie 1598321fbaf8Sespieecho $basic_machine$os 1599*150b7e42Smiodexit 160037c53322Sespie 160137c53322Sespie# Local variables: 160237c53322Sespie# eval: (add-hook 'write-file-hooks 'time-stamp) 160337c53322Sespie# time-stamp-start: "timestamp='" 160437c53322Sespie# time-stamp-format: "%:y-%02m-%02d" 160537c53322Sespie# time-stamp-end: "'" 160637c53322Sespie# End: 1607