config.sub revision 14c0a534
114c0a534Smrg#! /bin/sh 214c0a534Smrg# Configuration validation subroutine script. 314c0a534Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 414c0a534Smrg# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 514c0a534Smrg 614c0a534Smrgtimestamp='2005-07-08' 714c0a534Smrg 814c0a534Smrg# This file is (in principle) common to ALL GNU software. 914c0a534Smrg# The presence of a machine in this file suggests that SOME GNU software 1014c0a534Smrg# can handle that machine. It does not imply ALL GNU software can. 1114c0a534Smrg# 1214c0a534Smrg# This file is free software; you can redistribute it and/or modify 1314c0a534Smrg# it under the terms of the GNU General Public License as published by 1414c0a534Smrg# the Free Software Foundation; either version 2 of the License, or 1514c0a534Smrg# (at your option) any later version. 1614c0a534Smrg# 1714c0a534Smrg# This program is distributed in the hope that it will be useful, 1814c0a534Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 1914c0a534Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2014c0a534Smrg# GNU General Public License for more details. 2114c0a534Smrg# 2214c0a534Smrg# You should have received a copy of the GNU General Public License 2314c0a534Smrg# along with this program; if not, write to the Free Software 2414c0a534Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2514c0a534Smrg# 02110-1301, USA. 2614c0a534Smrg# 2714c0a534Smrg# As a special exception to the GNU General Public License, if you 2814c0a534Smrg# distribute this file as part of a program that contains a 2914c0a534Smrg# configuration script generated by Autoconf, you may include it under 3014c0a534Smrg# the same distribution terms that you use for the rest of that program. 3114c0a534Smrg 3214c0a534Smrg 3314c0a534Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 3414c0a534Smrg# diff and a properly formatted ChangeLog entry. 3514c0a534Smrg# 3614c0a534Smrg# Configuration subroutine to validate and canonicalize a configuration type. 3714c0a534Smrg# Supply the specified configuration type as an argument. 3814c0a534Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 3914c0a534Smrg# Otherwise, we print the canonical config type on stdout and succeed. 4014c0a534Smrg 4114c0a534Smrg# This file is supposed to be the same for all GNU packages 4214c0a534Smrg# and recognize all the CPU types, system types and aliases 4314c0a534Smrg# that are meaningful with *any* GNU software. 4414c0a534Smrg# Each package is responsible for reporting which valid configurations 4514c0a534Smrg# it does not support. The user should be able to distinguish 4614c0a534Smrg# a failure to support a valid configuration from a meaningless 4714c0a534Smrg# configuration. 4814c0a534Smrg 4914c0a534Smrg# The goal of this file is to map all the various variations of a given 5014c0a534Smrg# machine specification into a single specification in the form: 5114c0a534Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 5214c0a534Smrg# or in some cases, the newer four-part form: 5314c0a534Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 5414c0a534Smrg# It is wrong to echo any other type of specification. 5514c0a534Smrg 5614c0a534Smrgme=`echo "$0" | sed -e 's,.*/,,'` 5714c0a534Smrg 5814c0a534Smrgusage="\ 5914c0a534SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 6014c0a534Smrg $0 [OPTION] ALIAS 6114c0a534Smrg 6214c0a534SmrgCanonicalize a configuration name. 6314c0a534Smrg 6414c0a534SmrgOperation modes: 6514c0a534Smrg -h, --help print this help, then exit 6614c0a534Smrg -t, --time-stamp print date of last modification, then exit 6714c0a534Smrg -v, --version print version number, then exit 6814c0a534Smrg 6914c0a534SmrgReport bugs and patches to <config-patches@gnu.org>." 7014c0a534Smrg 7114c0a534Smrgversion="\ 7214c0a534SmrgGNU config.sub ($timestamp) 7314c0a534Smrg 7414c0a534SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7514c0a534SmrgFree Software Foundation, Inc. 7614c0a534Smrg 7714c0a534SmrgThis is free software; see the source for copying conditions. There is NO 7814c0a534Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 7914c0a534Smrg 8014c0a534Smrghelp=" 8114c0a534SmrgTry \`$me --help' for more information." 8214c0a534Smrg 8314c0a534Smrg# Parse command line 8414c0a534Smrgwhile test $# -gt 0 ; do 8514c0a534Smrg case $1 in 8614c0a534Smrg --time-stamp | --time* | -t ) 8714c0a534Smrg echo "$timestamp" ; exit ;; 8814c0a534Smrg --version | -v ) 8914c0a534Smrg echo "$version" ; exit ;; 9014c0a534Smrg --help | --h* | -h ) 9114c0a534Smrg echo "$usage"; exit ;; 9214c0a534Smrg -- ) # Stop option processing 9314c0a534Smrg shift; break ;; 9414c0a534Smrg - ) # Use stdin as input. 9514c0a534Smrg break ;; 9614c0a534Smrg -* ) 9714c0a534Smrg echo "$me: invalid option $1$help" 9814c0a534Smrg exit 1 ;; 9914c0a534Smrg 10014c0a534Smrg *local*) 10114c0a534Smrg # First pass through any local machine types. 10214c0a534Smrg echo $1 10314c0a534Smrg exit ;; 10414c0a534Smrg 10514c0a534Smrg * ) 10614c0a534Smrg break ;; 10714c0a534Smrg esac 10814c0a534Smrgdone 10914c0a534Smrg 11014c0a534Smrgcase $# in 11114c0a534Smrg 0) echo "$me: missing argument$help" >&2 11214c0a534Smrg exit 1;; 11314c0a534Smrg 1) ;; 11414c0a534Smrg *) echo "$me: too many arguments$help" >&2 11514c0a534Smrg exit 1;; 11614c0a534Smrgesac 11714c0a534Smrg 11814c0a534Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 11914c0a534Smrg# Here we must recognize all the valid KERNEL-OS combinations. 12014c0a534Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 12114c0a534Smrgcase $maybe_os in 12214c0a534Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 12314c0a534Smrg kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 12414c0a534Smrg os=-$maybe_os 12514c0a534Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 12614c0a534Smrg ;; 12714c0a534Smrg *) 12814c0a534Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 12914c0a534Smrg if [ $basic_machine != $1 ] 13014c0a534Smrg then os=`echo $1 | sed 's/.*-/-/'` 13114c0a534Smrg else os=; fi 13214c0a534Smrg ;; 13314c0a534Smrgesac 13414c0a534Smrg 13514c0a534Smrg### Let's recognize common machines as not being operating systems so 13614c0a534Smrg### that things like config.sub decstation-3100 work. We also 13714c0a534Smrg### recognize some manufacturers as not being operating systems, so we 13814c0a534Smrg### can provide default operating systems below. 13914c0a534Smrgcase $os in 14014c0a534Smrg -sun*os*) 14114c0a534Smrg # Prevent following clause from handling this invalid input. 14214c0a534Smrg ;; 14314c0a534Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 14414c0a534Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 14514c0a534Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 14614c0a534Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 14714c0a534Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 14814c0a534Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 14914c0a534Smrg -apple | -axis | -knuth | -cray) 15014c0a534Smrg os= 15114c0a534Smrg basic_machine=$1 15214c0a534Smrg ;; 15314c0a534Smrg -sim | -cisco | -oki | -wec | -winbond) 15414c0a534Smrg os= 15514c0a534Smrg basic_machine=$1 15614c0a534Smrg ;; 15714c0a534Smrg -scout) 15814c0a534Smrg ;; 15914c0a534Smrg -wrs) 16014c0a534Smrg os=-vxworks 16114c0a534Smrg basic_machine=$1 16214c0a534Smrg ;; 16314c0a534Smrg -chorusos*) 16414c0a534Smrg os=-chorusos 16514c0a534Smrg basic_machine=$1 16614c0a534Smrg ;; 16714c0a534Smrg -chorusrdb) 16814c0a534Smrg os=-chorusrdb 16914c0a534Smrg basic_machine=$1 17014c0a534Smrg ;; 17114c0a534Smrg -hiux*) 17214c0a534Smrg os=-hiuxwe2 17314c0a534Smrg ;; 17414c0a534Smrg -sco5) 17514c0a534Smrg os=-sco3.2v5 17614c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 17714c0a534Smrg ;; 17814c0a534Smrg -sco4) 17914c0a534Smrg os=-sco3.2v4 18014c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18114c0a534Smrg ;; 18214c0a534Smrg -sco3.2.[4-9]*) 18314c0a534Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 18414c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18514c0a534Smrg ;; 18614c0a534Smrg -sco3.2v[4-9]*) 18714c0a534Smrg # Don't forget version if it is 3.2v4 or newer. 18814c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18914c0a534Smrg ;; 19014c0a534Smrg -sco*) 19114c0a534Smrg os=-sco3.2v2 19214c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19314c0a534Smrg ;; 19414c0a534Smrg -udk*) 19514c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19614c0a534Smrg ;; 19714c0a534Smrg -isc) 19814c0a534Smrg os=-isc2.2 19914c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20014c0a534Smrg ;; 20114c0a534Smrg -clix*) 20214c0a534Smrg basic_machine=clipper-intergraph 20314c0a534Smrg ;; 20414c0a534Smrg -isc*) 20514c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20614c0a534Smrg ;; 20714c0a534Smrg -lynx*) 20814c0a534Smrg os=-lynxos 20914c0a534Smrg ;; 21014c0a534Smrg -ptx*) 21114c0a534Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 21214c0a534Smrg ;; 21314c0a534Smrg -windowsnt*) 21414c0a534Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 21514c0a534Smrg ;; 21614c0a534Smrg -psos*) 21714c0a534Smrg os=-psos 21814c0a534Smrg ;; 21914c0a534Smrg -mint | -mint[0-9]*) 22014c0a534Smrg basic_machine=m68k-atari 22114c0a534Smrg os=-mint 22214c0a534Smrg ;; 22314c0a534Smrgesac 22414c0a534Smrg 22514c0a534Smrg# Decode aliases for certain CPU-COMPANY combinations. 22614c0a534Smrgcase $basic_machine in 22714c0a534Smrg # Recognize the basic CPU types without company name. 22814c0a534Smrg # Some are omitted here because they have special meanings below. 22914c0a534Smrg 1750a | 580 \ 23014c0a534Smrg | a29k \ 23114c0a534Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 23214c0a534Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 23314c0a534Smrg | am33_2.0 \ 23414c0a534Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 23514c0a534Smrg | bfin \ 23614c0a534Smrg | c4x | clipper \ 23714c0a534Smrg | d10v | d30v | dlx | dsp16xx \ 23814c0a534Smrg | fr30 | frv \ 23914c0a534Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 24014c0a534Smrg | i370 | i860 | i960 | ia64 \ 24114c0a534Smrg | ip2k | iq2000 \ 24214c0a534Smrg | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 24314c0a534Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 24414c0a534Smrg | mips16 \ 24514c0a534Smrg | mips64 | mips64el \ 24614c0a534Smrg | mips64vr | mips64vrel \ 24714c0a534Smrg | mips64orion | mips64orionel \ 24814c0a534Smrg | mips64vr4100 | mips64vr4100el \ 24914c0a534Smrg | mips64vr4300 | mips64vr4300el \ 25014c0a534Smrg | mips64vr5000 | mips64vr5000el \ 25114c0a534Smrg | mips64vr5900 | mips64vr5900el \ 25214c0a534Smrg | mipsisa32 | mipsisa32el \ 25314c0a534Smrg | mipsisa32r2 | mipsisa32r2el \ 25414c0a534Smrg | mipsisa64 | mipsisa64el \ 25514c0a534Smrg | mipsisa64r2 | mipsisa64r2el \ 25614c0a534Smrg | mipsisa64sb1 | mipsisa64sb1el \ 25714c0a534Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 25814c0a534Smrg | mipstx39 | mipstx39el \ 25914c0a534Smrg | mn10200 | mn10300 \ 26014c0a534Smrg | ms1 \ 26114c0a534Smrg | msp430 \ 26214c0a534Smrg | ns16k | ns32k \ 26314c0a534Smrg | or32 \ 26414c0a534Smrg | pdp10 | pdp11 | pj | pjl \ 26514c0a534Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 26614c0a534Smrg | pyramid \ 26714c0a534Smrg | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 26814c0a534Smrg | sh64 | sh64le \ 26914c0a534Smrg | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 27014c0a534Smrg | sparcv8 | sparcv9 | sparcv9b \ 27114c0a534Smrg | strongarm \ 27214c0a534Smrg | tahoe | thumb | tic4x | tic80 | tron \ 27314c0a534Smrg | v850 | v850e \ 27414c0a534Smrg | we32k \ 27514c0a534Smrg | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 27614c0a534Smrg | z8k) 27714c0a534Smrg basic_machine=$basic_machine-unknown 27814c0a534Smrg ;; 27914c0a534Smrg m32c) 28014c0a534Smrg basic_machine=$basic_machine-unknown 28114c0a534Smrg ;; 28214c0a534Smrg m6811 | m68hc11 | m6812 | m68hc12) 28314c0a534Smrg # Motorola 68HC11/12. 28414c0a534Smrg basic_machine=$basic_machine-unknown 28514c0a534Smrg os=-none 28614c0a534Smrg ;; 28714c0a534Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 28814c0a534Smrg ;; 28914c0a534Smrg 29014c0a534Smrg # We use `pc' rather than `unknown' 29114c0a534Smrg # because (1) that's what they normally are, and 29214c0a534Smrg # (2) the word "unknown" tends to confuse beginning users. 29314c0a534Smrg i*86 | x86_64) 29414c0a534Smrg basic_machine=$basic_machine-pc 29514c0a534Smrg ;; 29614c0a534Smrg # Object if more than one company name word. 29714c0a534Smrg *-*-*) 29814c0a534Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 29914c0a534Smrg exit 1 30014c0a534Smrg ;; 30114c0a534Smrg # Recognize the basic CPU types with company name. 30214c0a534Smrg 580-* \ 30314c0a534Smrg | a29k-* \ 30414c0a534Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 30514c0a534Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 30614c0a534Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 30714c0a534Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 30814c0a534Smrg | avr-* \ 30914c0a534Smrg | bfin-* | bs2000-* \ 31014c0a534Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 31114c0a534Smrg | clipper-* | craynv-* | cydra-* \ 31214c0a534Smrg | d10v-* | d30v-* | dlx-* \ 31314c0a534Smrg | elxsi-* \ 31414c0a534Smrg | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 31514c0a534Smrg | h8300-* | h8500-* \ 31614c0a534Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 31714c0a534Smrg | i*86-* | i860-* | i960-* | ia64-* \ 31814c0a534Smrg | ip2k-* | iq2000-* \ 31914c0a534Smrg | m32r-* | m32rle-* \ 32014c0a534Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 32114c0a534Smrg | m88110-* | m88k-* | maxq-* | mcore-* \ 32214c0a534Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 32314c0a534Smrg | mips16-* \ 32414c0a534Smrg | mips64-* | mips64el-* \ 32514c0a534Smrg | mips64vr-* | mips64vrel-* \ 32614c0a534Smrg | mips64orion-* | mips64orionel-* \ 32714c0a534Smrg | mips64vr4100-* | mips64vr4100el-* \ 32814c0a534Smrg | mips64vr4300-* | mips64vr4300el-* \ 32914c0a534Smrg | mips64vr5000-* | mips64vr5000el-* \ 33014c0a534Smrg | mips64vr5900-* | mips64vr5900el-* \ 33114c0a534Smrg | mipsisa32-* | mipsisa32el-* \ 33214c0a534Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 33314c0a534Smrg | mipsisa64-* | mipsisa64el-* \ 33414c0a534Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 33514c0a534Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 33614c0a534Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 33714c0a534Smrg | mipstx39-* | mipstx39el-* \ 33814c0a534Smrg | mmix-* \ 33914c0a534Smrg | ms1-* \ 34014c0a534Smrg | msp430-* \ 34114c0a534Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 34214c0a534Smrg | orion-* \ 34314c0a534Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 34414c0a534Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 34514c0a534Smrg | pyramid-* \ 34614c0a534Smrg | romp-* | rs6000-* \ 34714c0a534Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 34814c0a534Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 34914c0a534Smrg | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 35014c0a534Smrg | sparclite-* \ 35114c0a534Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 35214c0a534Smrg | tahoe-* | thumb-* \ 35314c0a534Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 35414c0a534Smrg | tron-* \ 35514c0a534Smrg | v850-* | v850e-* | vax-* \ 35614c0a534Smrg | we32k-* \ 35714c0a534Smrg | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 35814c0a534Smrg | xstormy16-* | xtensa-* \ 35914c0a534Smrg | ymp-* \ 36014c0a534Smrg | z8k-*) 36114c0a534Smrg ;; 36214c0a534Smrg m32c-*) 36314c0a534Smrg ;; 36414c0a534Smrg # Recognize the various machine names and aliases which stand 36514c0a534Smrg # for a CPU type and a company and sometimes even an OS. 36614c0a534Smrg 386bsd) 36714c0a534Smrg basic_machine=i386-unknown 36814c0a534Smrg os=-bsd 36914c0a534Smrg ;; 37014c0a534Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 37114c0a534Smrg basic_machine=m68000-att 37214c0a534Smrg ;; 37314c0a534Smrg 3b*) 37414c0a534Smrg basic_machine=we32k-att 37514c0a534Smrg ;; 37614c0a534Smrg a29khif) 37714c0a534Smrg basic_machine=a29k-amd 37814c0a534Smrg os=-udi 37914c0a534Smrg ;; 38014c0a534Smrg abacus) 38114c0a534Smrg basic_machine=abacus-unknown 38214c0a534Smrg ;; 38314c0a534Smrg adobe68k) 38414c0a534Smrg basic_machine=m68010-adobe 38514c0a534Smrg os=-scout 38614c0a534Smrg ;; 38714c0a534Smrg alliant | fx80) 38814c0a534Smrg basic_machine=fx80-alliant 38914c0a534Smrg ;; 39014c0a534Smrg altos | altos3068) 39114c0a534Smrg basic_machine=m68k-altos 39214c0a534Smrg ;; 39314c0a534Smrg am29k) 39414c0a534Smrg basic_machine=a29k-none 39514c0a534Smrg os=-bsd 39614c0a534Smrg ;; 39714c0a534Smrg amd64) 39814c0a534Smrg basic_machine=x86_64-pc 39914c0a534Smrg ;; 40014c0a534Smrg amd64-*) 40114c0a534Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 40214c0a534Smrg ;; 40314c0a534Smrg amdahl) 40414c0a534Smrg basic_machine=580-amdahl 40514c0a534Smrg os=-sysv 40614c0a534Smrg ;; 40714c0a534Smrg amiga | amiga-*) 40814c0a534Smrg basic_machine=m68k-unknown 40914c0a534Smrg ;; 41014c0a534Smrg amigaos | amigados) 41114c0a534Smrg basic_machine=m68k-unknown 41214c0a534Smrg os=-amigaos 41314c0a534Smrg ;; 41414c0a534Smrg amigaunix | amix) 41514c0a534Smrg basic_machine=m68k-unknown 41614c0a534Smrg os=-sysv4 41714c0a534Smrg ;; 41814c0a534Smrg apollo68) 41914c0a534Smrg basic_machine=m68k-apollo 42014c0a534Smrg os=-sysv 42114c0a534Smrg ;; 42214c0a534Smrg apollo68bsd) 42314c0a534Smrg basic_machine=m68k-apollo 42414c0a534Smrg os=-bsd 42514c0a534Smrg ;; 42614c0a534Smrg aux) 42714c0a534Smrg basic_machine=m68k-apple 42814c0a534Smrg os=-aux 42914c0a534Smrg ;; 43014c0a534Smrg balance) 43114c0a534Smrg basic_machine=ns32k-sequent 43214c0a534Smrg os=-dynix 43314c0a534Smrg ;; 43414c0a534Smrg c90) 43514c0a534Smrg basic_machine=c90-cray 43614c0a534Smrg os=-unicos 43714c0a534Smrg ;; 43814c0a534Smrg convex-c1) 43914c0a534Smrg basic_machine=c1-convex 44014c0a534Smrg os=-bsd 44114c0a534Smrg ;; 44214c0a534Smrg convex-c2) 44314c0a534Smrg basic_machine=c2-convex 44414c0a534Smrg os=-bsd 44514c0a534Smrg ;; 44614c0a534Smrg convex-c32) 44714c0a534Smrg basic_machine=c32-convex 44814c0a534Smrg os=-bsd 44914c0a534Smrg ;; 45014c0a534Smrg convex-c34) 45114c0a534Smrg basic_machine=c34-convex 45214c0a534Smrg os=-bsd 45314c0a534Smrg ;; 45414c0a534Smrg convex-c38) 45514c0a534Smrg basic_machine=c38-convex 45614c0a534Smrg os=-bsd 45714c0a534Smrg ;; 45814c0a534Smrg cray | j90) 45914c0a534Smrg basic_machine=j90-cray 46014c0a534Smrg os=-unicos 46114c0a534Smrg ;; 46214c0a534Smrg craynv) 46314c0a534Smrg basic_machine=craynv-cray 46414c0a534Smrg os=-unicosmp 46514c0a534Smrg ;; 46614c0a534Smrg cr16c) 46714c0a534Smrg basic_machine=cr16c-unknown 46814c0a534Smrg os=-elf 46914c0a534Smrg ;; 47014c0a534Smrg crds | unos) 47114c0a534Smrg basic_machine=m68k-crds 47214c0a534Smrg ;; 47314c0a534Smrg crisv32 | crisv32-* | etraxfs*) 47414c0a534Smrg basic_machine=crisv32-axis 47514c0a534Smrg ;; 47614c0a534Smrg cris | cris-* | etrax*) 47714c0a534Smrg basic_machine=cris-axis 47814c0a534Smrg ;; 47914c0a534Smrg crx) 48014c0a534Smrg basic_machine=crx-unknown 48114c0a534Smrg os=-elf 48214c0a534Smrg ;; 48314c0a534Smrg da30 | da30-*) 48414c0a534Smrg basic_machine=m68k-da30 48514c0a534Smrg ;; 48614c0a534Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 48714c0a534Smrg basic_machine=mips-dec 48814c0a534Smrg ;; 48914c0a534Smrg decsystem10* | dec10*) 49014c0a534Smrg basic_machine=pdp10-dec 49114c0a534Smrg os=-tops10 49214c0a534Smrg ;; 49314c0a534Smrg decsystem20* | dec20*) 49414c0a534Smrg basic_machine=pdp10-dec 49514c0a534Smrg os=-tops20 49614c0a534Smrg ;; 49714c0a534Smrg delta | 3300 | motorola-3300 | motorola-delta \ 49814c0a534Smrg | 3300-motorola | delta-motorola) 49914c0a534Smrg basic_machine=m68k-motorola 50014c0a534Smrg ;; 50114c0a534Smrg delta88) 50214c0a534Smrg basic_machine=m88k-motorola 50314c0a534Smrg os=-sysv3 50414c0a534Smrg ;; 50514c0a534Smrg djgpp) 50614c0a534Smrg basic_machine=i586-pc 50714c0a534Smrg os=-msdosdjgpp 50814c0a534Smrg ;; 50914c0a534Smrg dpx20 | dpx20-*) 51014c0a534Smrg basic_machine=rs6000-bull 51114c0a534Smrg os=-bosx 51214c0a534Smrg ;; 51314c0a534Smrg dpx2* | dpx2*-bull) 51414c0a534Smrg basic_machine=m68k-bull 51514c0a534Smrg os=-sysv3 51614c0a534Smrg ;; 51714c0a534Smrg ebmon29k) 51814c0a534Smrg basic_machine=a29k-amd 51914c0a534Smrg os=-ebmon 52014c0a534Smrg ;; 52114c0a534Smrg elxsi) 52214c0a534Smrg basic_machine=elxsi-elxsi 52314c0a534Smrg os=-bsd 52414c0a534Smrg ;; 52514c0a534Smrg encore | umax | mmax) 52614c0a534Smrg basic_machine=ns32k-encore 52714c0a534Smrg ;; 52814c0a534Smrg es1800 | OSE68k | ose68k | ose | OSE) 52914c0a534Smrg basic_machine=m68k-ericsson 53014c0a534Smrg os=-ose 53114c0a534Smrg ;; 53214c0a534Smrg fx2800) 53314c0a534Smrg basic_machine=i860-alliant 53414c0a534Smrg ;; 53514c0a534Smrg genix) 53614c0a534Smrg basic_machine=ns32k-ns 53714c0a534Smrg ;; 53814c0a534Smrg gmicro) 53914c0a534Smrg basic_machine=tron-gmicro 54014c0a534Smrg os=-sysv 54114c0a534Smrg ;; 54214c0a534Smrg go32) 54314c0a534Smrg basic_machine=i386-pc 54414c0a534Smrg os=-go32 54514c0a534Smrg ;; 54614c0a534Smrg h3050r* | hiux*) 54714c0a534Smrg basic_machine=hppa1.1-hitachi 54814c0a534Smrg os=-hiuxwe2 54914c0a534Smrg ;; 55014c0a534Smrg h8300hms) 55114c0a534Smrg basic_machine=h8300-hitachi 55214c0a534Smrg os=-hms 55314c0a534Smrg ;; 55414c0a534Smrg h8300xray) 55514c0a534Smrg basic_machine=h8300-hitachi 55614c0a534Smrg os=-xray 55714c0a534Smrg ;; 55814c0a534Smrg h8500hms) 55914c0a534Smrg basic_machine=h8500-hitachi 56014c0a534Smrg os=-hms 56114c0a534Smrg ;; 56214c0a534Smrg harris) 56314c0a534Smrg basic_machine=m88k-harris 56414c0a534Smrg os=-sysv3 56514c0a534Smrg ;; 56614c0a534Smrg hp300-*) 56714c0a534Smrg basic_machine=m68k-hp 56814c0a534Smrg ;; 56914c0a534Smrg hp300bsd) 57014c0a534Smrg basic_machine=m68k-hp 57114c0a534Smrg os=-bsd 57214c0a534Smrg ;; 57314c0a534Smrg hp300hpux) 57414c0a534Smrg basic_machine=m68k-hp 57514c0a534Smrg os=-hpux 57614c0a534Smrg ;; 57714c0a534Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 57814c0a534Smrg basic_machine=hppa1.0-hp 57914c0a534Smrg ;; 58014c0a534Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 58114c0a534Smrg basic_machine=m68000-hp 58214c0a534Smrg ;; 58314c0a534Smrg hp9k3[2-9][0-9]) 58414c0a534Smrg basic_machine=m68k-hp 58514c0a534Smrg ;; 58614c0a534Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 58714c0a534Smrg basic_machine=hppa1.0-hp 58814c0a534Smrg ;; 58914c0a534Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 59014c0a534Smrg basic_machine=hppa1.1-hp 59114c0a534Smrg ;; 59214c0a534Smrg hp9k78[0-9] | hp78[0-9]) 59314c0a534Smrg # FIXME: really hppa2.0-hp 59414c0a534Smrg basic_machine=hppa1.1-hp 59514c0a534Smrg ;; 59614c0a534Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 59714c0a534Smrg # FIXME: really hppa2.0-hp 59814c0a534Smrg basic_machine=hppa1.1-hp 59914c0a534Smrg ;; 60014c0a534Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 60114c0a534Smrg basic_machine=hppa1.1-hp 60214c0a534Smrg ;; 60314c0a534Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 60414c0a534Smrg basic_machine=hppa1.0-hp 60514c0a534Smrg ;; 60614c0a534Smrg hppa-next) 60714c0a534Smrg os=-nextstep3 60814c0a534Smrg ;; 60914c0a534Smrg hppaosf) 61014c0a534Smrg basic_machine=hppa1.1-hp 61114c0a534Smrg os=-osf 61214c0a534Smrg ;; 61314c0a534Smrg hppro) 61414c0a534Smrg basic_machine=hppa1.1-hp 61514c0a534Smrg os=-proelf 61614c0a534Smrg ;; 61714c0a534Smrg i370-ibm* | ibm*) 61814c0a534Smrg basic_machine=i370-ibm 61914c0a534Smrg ;; 62014c0a534Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 62114c0a534Smrg i*86v32) 62214c0a534Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 62314c0a534Smrg os=-sysv32 62414c0a534Smrg ;; 62514c0a534Smrg i*86v4*) 62614c0a534Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 62714c0a534Smrg os=-sysv4 62814c0a534Smrg ;; 62914c0a534Smrg i*86v) 63014c0a534Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 63114c0a534Smrg os=-sysv 63214c0a534Smrg ;; 63314c0a534Smrg i*86sol2) 63414c0a534Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 63514c0a534Smrg os=-solaris2 63614c0a534Smrg ;; 63714c0a534Smrg i386mach) 63814c0a534Smrg basic_machine=i386-mach 63914c0a534Smrg os=-mach 64014c0a534Smrg ;; 64114c0a534Smrg i386-vsta | vsta) 64214c0a534Smrg basic_machine=i386-unknown 64314c0a534Smrg os=-vsta 64414c0a534Smrg ;; 64514c0a534Smrg iris | iris4d) 64614c0a534Smrg basic_machine=mips-sgi 64714c0a534Smrg case $os in 64814c0a534Smrg -irix*) 64914c0a534Smrg ;; 65014c0a534Smrg *) 65114c0a534Smrg os=-irix4 65214c0a534Smrg ;; 65314c0a534Smrg esac 65414c0a534Smrg ;; 65514c0a534Smrg isi68 | isi) 65614c0a534Smrg basic_machine=m68k-isi 65714c0a534Smrg os=-sysv 65814c0a534Smrg ;; 65914c0a534Smrg m88k-omron*) 66014c0a534Smrg basic_machine=m88k-omron 66114c0a534Smrg ;; 66214c0a534Smrg magnum | m3230) 66314c0a534Smrg basic_machine=mips-mips 66414c0a534Smrg os=-sysv 66514c0a534Smrg ;; 66614c0a534Smrg merlin) 66714c0a534Smrg basic_machine=ns32k-utek 66814c0a534Smrg os=-sysv 66914c0a534Smrg ;; 67014c0a534Smrg mingw32) 67114c0a534Smrg basic_machine=i386-pc 67214c0a534Smrg os=-mingw32 67314c0a534Smrg ;; 67414c0a534Smrg miniframe) 67514c0a534Smrg basic_machine=m68000-convergent 67614c0a534Smrg ;; 67714c0a534Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 67814c0a534Smrg basic_machine=m68k-atari 67914c0a534Smrg os=-mint 68014c0a534Smrg ;; 68114c0a534Smrg mips3*-*) 68214c0a534Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 68314c0a534Smrg ;; 68414c0a534Smrg mips3*) 68514c0a534Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 68614c0a534Smrg ;; 68714c0a534Smrg monitor) 68814c0a534Smrg basic_machine=m68k-rom68k 68914c0a534Smrg os=-coff 69014c0a534Smrg ;; 69114c0a534Smrg morphos) 69214c0a534Smrg basic_machine=powerpc-unknown 69314c0a534Smrg os=-morphos 69414c0a534Smrg ;; 69514c0a534Smrg msdos) 69614c0a534Smrg basic_machine=i386-pc 69714c0a534Smrg os=-msdos 69814c0a534Smrg ;; 69914c0a534Smrg mvs) 70014c0a534Smrg basic_machine=i370-ibm 70114c0a534Smrg os=-mvs 70214c0a534Smrg ;; 70314c0a534Smrg ncr3000) 70414c0a534Smrg basic_machine=i486-ncr 70514c0a534Smrg os=-sysv4 70614c0a534Smrg ;; 70714c0a534Smrg netbsd386) 70814c0a534Smrg basic_machine=i386-unknown 70914c0a534Smrg os=-netbsd 71014c0a534Smrg ;; 71114c0a534Smrg netwinder) 71214c0a534Smrg basic_machine=armv4l-rebel 71314c0a534Smrg os=-linux 71414c0a534Smrg ;; 71514c0a534Smrg news | news700 | news800 | news900) 71614c0a534Smrg basic_machine=m68k-sony 71714c0a534Smrg os=-newsos 71814c0a534Smrg ;; 71914c0a534Smrg news1000) 72014c0a534Smrg basic_machine=m68030-sony 72114c0a534Smrg os=-newsos 72214c0a534Smrg ;; 72314c0a534Smrg news-3600 | risc-news) 72414c0a534Smrg basic_machine=mips-sony 72514c0a534Smrg os=-newsos 72614c0a534Smrg ;; 72714c0a534Smrg necv70) 72814c0a534Smrg basic_machine=v70-nec 72914c0a534Smrg os=-sysv 73014c0a534Smrg ;; 73114c0a534Smrg next | m*-next ) 73214c0a534Smrg basic_machine=m68k-next 73314c0a534Smrg case $os in 73414c0a534Smrg -nextstep* ) 73514c0a534Smrg ;; 73614c0a534Smrg -ns2*) 73714c0a534Smrg os=-nextstep2 73814c0a534Smrg ;; 73914c0a534Smrg *) 74014c0a534Smrg os=-nextstep3 74114c0a534Smrg ;; 74214c0a534Smrg esac 74314c0a534Smrg ;; 74414c0a534Smrg nh3000) 74514c0a534Smrg basic_machine=m68k-harris 74614c0a534Smrg os=-cxux 74714c0a534Smrg ;; 74814c0a534Smrg nh[45]000) 74914c0a534Smrg basic_machine=m88k-harris 75014c0a534Smrg os=-cxux 75114c0a534Smrg ;; 75214c0a534Smrg nindy960) 75314c0a534Smrg basic_machine=i960-intel 75414c0a534Smrg os=-nindy 75514c0a534Smrg ;; 75614c0a534Smrg mon960) 75714c0a534Smrg basic_machine=i960-intel 75814c0a534Smrg os=-mon960 75914c0a534Smrg ;; 76014c0a534Smrg nonstopux) 76114c0a534Smrg basic_machine=mips-compaq 76214c0a534Smrg os=-nonstopux 76314c0a534Smrg ;; 76414c0a534Smrg np1) 76514c0a534Smrg basic_machine=np1-gould 76614c0a534Smrg ;; 76714c0a534Smrg nsr-tandem) 76814c0a534Smrg basic_machine=nsr-tandem 76914c0a534Smrg ;; 77014c0a534Smrg op50n-* | op60c-*) 77114c0a534Smrg basic_machine=hppa1.1-oki 77214c0a534Smrg os=-proelf 77314c0a534Smrg ;; 77414c0a534Smrg openrisc | openrisc-*) 77514c0a534Smrg basic_machine=or32-unknown 77614c0a534Smrg ;; 77714c0a534Smrg os400) 77814c0a534Smrg basic_machine=powerpc-ibm 77914c0a534Smrg os=-os400 78014c0a534Smrg ;; 78114c0a534Smrg OSE68000 | ose68000) 78214c0a534Smrg basic_machine=m68000-ericsson 78314c0a534Smrg os=-ose 78414c0a534Smrg ;; 78514c0a534Smrg os68k) 78614c0a534Smrg basic_machine=m68k-none 78714c0a534Smrg os=-os68k 78814c0a534Smrg ;; 78914c0a534Smrg pa-hitachi) 79014c0a534Smrg basic_machine=hppa1.1-hitachi 79114c0a534Smrg os=-hiuxwe2 79214c0a534Smrg ;; 79314c0a534Smrg paragon) 79414c0a534Smrg basic_machine=i860-intel 79514c0a534Smrg os=-osf 79614c0a534Smrg ;; 79714c0a534Smrg pbd) 79814c0a534Smrg basic_machine=sparc-tti 79914c0a534Smrg ;; 80014c0a534Smrg pbb) 80114c0a534Smrg basic_machine=m68k-tti 80214c0a534Smrg ;; 80314c0a534Smrg pc532 | pc532-*) 80414c0a534Smrg basic_machine=ns32k-pc532 80514c0a534Smrg ;; 80614c0a534Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 80714c0a534Smrg basic_machine=i586-pc 80814c0a534Smrg ;; 80914c0a534Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 81014c0a534Smrg basic_machine=i686-pc 81114c0a534Smrg ;; 81214c0a534Smrg pentiumii | pentium2 | pentiumiii | pentium3) 81314c0a534Smrg basic_machine=i686-pc 81414c0a534Smrg ;; 81514c0a534Smrg pentium4) 81614c0a534Smrg basic_machine=i786-pc 81714c0a534Smrg ;; 81814c0a534Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 81914c0a534Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 82014c0a534Smrg ;; 82114c0a534Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 82214c0a534Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 82314c0a534Smrg ;; 82414c0a534Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 82514c0a534Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 82614c0a534Smrg ;; 82714c0a534Smrg pentium4-*) 82814c0a534Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 82914c0a534Smrg ;; 83014c0a534Smrg pn) 83114c0a534Smrg basic_machine=pn-gould 83214c0a534Smrg ;; 83314c0a534Smrg power) basic_machine=power-ibm 83414c0a534Smrg ;; 83514c0a534Smrg ppc) basic_machine=powerpc-unknown 83614c0a534Smrg ;; 83714c0a534Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 83814c0a534Smrg ;; 83914c0a534Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 84014c0a534Smrg basic_machine=powerpcle-unknown 84114c0a534Smrg ;; 84214c0a534Smrg ppcle-* | powerpclittle-*) 84314c0a534Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 84414c0a534Smrg ;; 84514c0a534Smrg ppc64) basic_machine=powerpc64-unknown 84614c0a534Smrg ;; 84714c0a534Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 84814c0a534Smrg ;; 84914c0a534Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 85014c0a534Smrg basic_machine=powerpc64le-unknown 85114c0a534Smrg ;; 85214c0a534Smrg ppc64le-* | powerpc64little-*) 85314c0a534Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 85414c0a534Smrg ;; 85514c0a534Smrg ps2) 85614c0a534Smrg basic_machine=i386-ibm 85714c0a534Smrg ;; 85814c0a534Smrg pw32) 85914c0a534Smrg basic_machine=i586-unknown 86014c0a534Smrg os=-pw32 86114c0a534Smrg ;; 86214c0a534Smrg rom68k) 86314c0a534Smrg basic_machine=m68k-rom68k 86414c0a534Smrg os=-coff 86514c0a534Smrg ;; 86614c0a534Smrg rm[46]00) 86714c0a534Smrg basic_machine=mips-siemens 86814c0a534Smrg ;; 86914c0a534Smrg rtpc | rtpc-*) 87014c0a534Smrg basic_machine=romp-ibm 87114c0a534Smrg ;; 87214c0a534Smrg s390 | s390-*) 87314c0a534Smrg basic_machine=s390-ibm 87414c0a534Smrg ;; 87514c0a534Smrg s390x | s390x-*) 87614c0a534Smrg basic_machine=s390x-ibm 87714c0a534Smrg ;; 87814c0a534Smrg sa29200) 87914c0a534Smrg basic_machine=a29k-amd 88014c0a534Smrg os=-udi 88114c0a534Smrg ;; 88214c0a534Smrg sb1) 88314c0a534Smrg basic_machine=mipsisa64sb1-unknown 88414c0a534Smrg ;; 88514c0a534Smrg sb1el) 88614c0a534Smrg basic_machine=mipsisa64sb1el-unknown 88714c0a534Smrg ;; 88814c0a534Smrg sei) 88914c0a534Smrg basic_machine=mips-sei 89014c0a534Smrg os=-seiux 89114c0a534Smrg ;; 89214c0a534Smrg sequent) 89314c0a534Smrg basic_machine=i386-sequent 89414c0a534Smrg ;; 89514c0a534Smrg sh) 89614c0a534Smrg basic_machine=sh-hitachi 89714c0a534Smrg os=-hms 89814c0a534Smrg ;; 89914c0a534Smrg sh64) 90014c0a534Smrg basic_machine=sh64-unknown 90114c0a534Smrg ;; 90214c0a534Smrg sparclite-wrs | simso-wrs) 90314c0a534Smrg basic_machine=sparclite-wrs 90414c0a534Smrg os=-vxworks 90514c0a534Smrg ;; 90614c0a534Smrg sps7) 90714c0a534Smrg basic_machine=m68k-bull 90814c0a534Smrg os=-sysv2 90914c0a534Smrg ;; 91014c0a534Smrg spur) 91114c0a534Smrg basic_machine=spur-unknown 91214c0a534Smrg ;; 91314c0a534Smrg st2000) 91414c0a534Smrg basic_machine=m68k-tandem 91514c0a534Smrg ;; 91614c0a534Smrg stratus) 91714c0a534Smrg basic_machine=i860-stratus 91814c0a534Smrg os=-sysv4 91914c0a534Smrg ;; 92014c0a534Smrg sun2) 92114c0a534Smrg basic_machine=m68000-sun 92214c0a534Smrg ;; 92314c0a534Smrg sun2os3) 92414c0a534Smrg basic_machine=m68000-sun 92514c0a534Smrg os=-sunos3 92614c0a534Smrg ;; 92714c0a534Smrg sun2os4) 92814c0a534Smrg basic_machine=m68000-sun 92914c0a534Smrg os=-sunos4 93014c0a534Smrg ;; 93114c0a534Smrg sun3os3) 93214c0a534Smrg basic_machine=m68k-sun 93314c0a534Smrg os=-sunos3 93414c0a534Smrg ;; 93514c0a534Smrg sun3os4) 93614c0a534Smrg basic_machine=m68k-sun 93714c0a534Smrg os=-sunos4 93814c0a534Smrg ;; 93914c0a534Smrg sun4os3) 94014c0a534Smrg basic_machine=sparc-sun 94114c0a534Smrg os=-sunos3 94214c0a534Smrg ;; 94314c0a534Smrg sun4os4) 94414c0a534Smrg basic_machine=sparc-sun 94514c0a534Smrg os=-sunos4 94614c0a534Smrg ;; 94714c0a534Smrg sun4sol2) 94814c0a534Smrg basic_machine=sparc-sun 94914c0a534Smrg os=-solaris2 95014c0a534Smrg ;; 95114c0a534Smrg sun3 | sun3-*) 95214c0a534Smrg basic_machine=m68k-sun 95314c0a534Smrg ;; 95414c0a534Smrg sun4) 95514c0a534Smrg basic_machine=sparc-sun 95614c0a534Smrg ;; 95714c0a534Smrg sun386 | sun386i | roadrunner) 95814c0a534Smrg basic_machine=i386-sun 95914c0a534Smrg ;; 96014c0a534Smrg sv1) 96114c0a534Smrg basic_machine=sv1-cray 96214c0a534Smrg os=-unicos 96314c0a534Smrg ;; 96414c0a534Smrg symmetry) 96514c0a534Smrg basic_machine=i386-sequent 96614c0a534Smrg os=-dynix 96714c0a534Smrg ;; 96814c0a534Smrg t3e) 96914c0a534Smrg basic_machine=alphaev5-cray 97014c0a534Smrg os=-unicos 97114c0a534Smrg ;; 97214c0a534Smrg t90) 97314c0a534Smrg basic_machine=t90-cray 97414c0a534Smrg os=-unicos 97514c0a534Smrg ;; 97614c0a534Smrg tic54x | c54x*) 97714c0a534Smrg basic_machine=tic54x-unknown 97814c0a534Smrg os=-coff 97914c0a534Smrg ;; 98014c0a534Smrg tic55x | c55x*) 98114c0a534Smrg basic_machine=tic55x-unknown 98214c0a534Smrg os=-coff 98314c0a534Smrg ;; 98414c0a534Smrg tic6x | c6x*) 98514c0a534Smrg basic_machine=tic6x-unknown 98614c0a534Smrg os=-coff 98714c0a534Smrg ;; 98814c0a534Smrg tx39) 98914c0a534Smrg basic_machine=mipstx39-unknown 99014c0a534Smrg ;; 99114c0a534Smrg tx39el) 99214c0a534Smrg basic_machine=mipstx39el-unknown 99314c0a534Smrg ;; 99414c0a534Smrg toad1) 99514c0a534Smrg basic_machine=pdp10-xkl 99614c0a534Smrg os=-tops20 99714c0a534Smrg ;; 99814c0a534Smrg tower | tower-32) 99914c0a534Smrg basic_machine=m68k-ncr 100014c0a534Smrg ;; 100114c0a534Smrg tpf) 100214c0a534Smrg basic_machine=s390x-ibm 100314c0a534Smrg os=-tpf 100414c0a534Smrg ;; 100514c0a534Smrg udi29k) 100614c0a534Smrg basic_machine=a29k-amd 100714c0a534Smrg os=-udi 100814c0a534Smrg ;; 100914c0a534Smrg ultra3) 101014c0a534Smrg basic_machine=a29k-nyu 101114c0a534Smrg os=-sym1 101214c0a534Smrg ;; 101314c0a534Smrg v810 | necv810) 101414c0a534Smrg basic_machine=v810-nec 101514c0a534Smrg os=-none 101614c0a534Smrg ;; 101714c0a534Smrg vaxv) 101814c0a534Smrg basic_machine=vax-dec 101914c0a534Smrg os=-sysv 102014c0a534Smrg ;; 102114c0a534Smrg vms) 102214c0a534Smrg basic_machine=vax-dec 102314c0a534Smrg os=-vms 102414c0a534Smrg ;; 102514c0a534Smrg vpp*|vx|vx-*) 102614c0a534Smrg basic_machine=f301-fujitsu 102714c0a534Smrg ;; 102814c0a534Smrg vxworks960) 102914c0a534Smrg basic_machine=i960-wrs 103014c0a534Smrg os=-vxworks 103114c0a534Smrg ;; 103214c0a534Smrg vxworks68) 103314c0a534Smrg basic_machine=m68k-wrs 103414c0a534Smrg os=-vxworks 103514c0a534Smrg ;; 103614c0a534Smrg vxworks29k) 103714c0a534Smrg basic_machine=a29k-wrs 103814c0a534Smrg os=-vxworks 103914c0a534Smrg ;; 104014c0a534Smrg w65*) 104114c0a534Smrg basic_machine=w65-wdc 104214c0a534Smrg os=-none 104314c0a534Smrg ;; 104414c0a534Smrg w89k-*) 104514c0a534Smrg basic_machine=hppa1.1-winbond 104614c0a534Smrg os=-proelf 104714c0a534Smrg ;; 104814c0a534Smrg xbox) 104914c0a534Smrg basic_machine=i686-pc 105014c0a534Smrg os=-mingw32 105114c0a534Smrg ;; 105214c0a534Smrg xps | xps100) 105314c0a534Smrg basic_machine=xps100-honeywell 105414c0a534Smrg ;; 105514c0a534Smrg ymp) 105614c0a534Smrg basic_machine=ymp-cray 105714c0a534Smrg os=-unicos 105814c0a534Smrg ;; 105914c0a534Smrg z8k-*-coff) 106014c0a534Smrg basic_machine=z8k-unknown 106114c0a534Smrg os=-sim 106214c0a534Smrg ;; 106314c0a534Smrg none) 106414c0a534Smrg basic_machine=none-none 106514c0a534Smrg os=-none 106614c0a534Smrg ;; 106714c0a534Smrg 106814c0a534Smrg# Here we handle the default manufacturer of certain CPU types. It is in 106914c0a534Smrg# some cases the only manufacturer, in others, it is the most popular. 107014c0a534Smrg w89k) 107114c0a534Smrg basic_machine=hppa1.1-winbond 107214c0a534Smrg ;; 107314c0a534Smrg op50n) 107414c0a534Smrg basic_machine=hppa1.1-oki 107514c0a534Smrg ;; 107614c0a534Smrg op60c) 107714c0a534Smrg basic_machine=hppa1.1-oki 107814c0a534Smrg ;; 107914c0a534Smrg romp) 108014c0a534Smrg basic_machine=romp-ibm 108114c0a534Smrg ;; 108214c0a534Smrg mmix) 108314c0a534Smrg basic_machine=mmix-knuth 108414c0a534Smrg ;; 108514c0a534Smrg rs6000) 108614c0a534Smrg basic_machine=rs6000-ibm 108714c0a534Smrg ;; 108814c0a534Smrg vax) 108914c0a534Smrg basic_machine=vax-dec 109014c0a534Smrg ;; 109114c0a534Smrg pdp10) 109214c0a534Smrg # there are many clones, so DEC is not a safe bet 109314c0a534Smrg basic_machine=pdp10-unknown 109414c0a534Smrg ;; 109514c0a534Smrg pdp11) 109614c0a534Smrg basic_machine=pdp11-dec 109714c0a534Smrg ;; 109814c0a534Smrg we32k) 109914c0a534Smrg basic_machine=we32k-att 110014c0a534Smrg ;; 110114c0a534Smrg sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 110214c0a534Smrg basic_machine=sh-unknown 110314c0a534Smrg ;; 110414c0a534Smrg sparc | sparcv8 | sparcv9 | sparcv9b) 110514c0a534Smrg basic_machine=sparc-sun 110614c0a534Smrg ;; 110714c0a534Smrg cydra) 110814c0a534Smrg basic_machine=cydra-cydrome 110914c0a534Smrg ;; 111014c0a534Smrg orion) 111114c0a534Smrg basic_machine=orion-highlevel 111214c0a534Smrg ;; 111314c0a534Smrg orion105) 111414c0a534Smrg basic_machine=clipper-highlevel 111514c0a534Smrg ;; 111614c0a534Smrg mac | mpw | mac-mpw) 111714c0a534Smrg basic_machine=m68k-apple 111814c0a534Smrg ;; 111914c0a534Smrg pmac | pmac-mpw) 112014c0a534Smrg basic_machine=powerpc-apple 112114c0a534Smrg ;; 112214c0a534Smrg *-unknown) 112314c0a534Smrg # Make sure to match an already-canonicalized machine name. 112414c0a534Smrg ;; 112514c0a534Smrg *) 112614c0a534Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 112714c0a534Smrg exit 1 112814c0a534Smrg ;; 112914c0a534Smrgesac 113014c0a534Smrg 113114c0a534Smrg# Here we canonicalize certain aliases for manufacturers. 113214c0a534Smrgcase $basic_machine in 113314c0a534Smrg *-digital*) 113414c0a534Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 113514c0a534Smrg ;; 113614c0a534Smrg *-commodore*) 113714c0a534Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 113814c0a534Smrg ;; 113914c0a534Smrg *) 114014c0a534Smrg ;; 114114c0a534Smrgesac 114214c0a534Smrg 114314c0a534Smrg# Decode manufacturer-specific aliases for certain operating systems. 114414c0a534Smrg 114514c0a534Smrgif [ x"$os" != x"" ] 114614c0a534Smrgthen 114714c0a534Smrgcase $os in 114814c0a534Smrg # First match some system type aliases 114914c0a534Smrg # that might get confused with valid system types. 115014c0a534Smrg # -solaris* is a basic system type, with this one exception. 115114c0a534Smrg -solaris1 | -solaris1.*) 115214c0a534Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 115314c0a534Smrg ;; 115414c0a534Smrg -solaris) 115514c0a534Smrg os=-solaris2 115614c0a534Smrg ;; 115714c0a534Smrg -svr4*) 115814c0a534Smrg os=-sysv4 115914c0a534Smrg ;; 116014c0a534Smrg -unixware*) 116114c0a534Smrg os=-sysv4.2uw 116214c0a534Smrg ;; 116314c0a534Smrg -gnu/linux*) 116414c0a534Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 116514c0a534Smrg ;; 116614c0a534Smrg # First accept the basic system types. 116714c0a534Smrg # The portable systems comes first. 116814c0a534Smrg # Each alternative MUST END IN A *, to match a version number. 116914c0a534Smrg # -sysv* is not here because it comes later, after sysvr4. 117014c0a534Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 117114c0a534Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 117214c0a534Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 117314c0a534Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 117414c0a534Smrg | -aos* \ 117514c0a534Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 117614c0a534Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 117714c0a534Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 117814c0a534Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 117914c0a534Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 118014c0a534Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 118114c0a534Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 118214c0a534Smrg | -chorusos* | -chorusrdb* \ 118314c0a534Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 118414c0a534Smrg | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 118514c0a534Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 118614c0a534Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 118714c0a534Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 118814c0a534Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 118914c0a534Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 119014c0a534Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 119114c0a534Smrg | -skyos* | -haiku*) 119214c0a534Smrg # Remember, each alternative MUST END IN *, to match a version number. 119314c0a534Smrg ;; 119414c0a534Smrg -qnx*) 119514c0a534Smrg case $basic_machine in 119614c0a534Smrg x86-* | i*86-*) 119714c0a534Smrg ;; 119814c0a534Smrg *) 119914c0a534Smrg os=-nto$os 120014c0a534Smrg ;; 120114c0a534Smrg esac 120214c0a534Smrg ;; 120314c0a534Smrg -nto-qnx*) 120414c0a534Smrg ;; 120514c0a534Smrg -nto*) 120614c0a534Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 120714c0a534Smrg ;; 120814c0a534Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 120914c0a534Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 121014c0a534Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 121114c0a534Smrg ;; 121214c0a534Smrg -mac*) 121314c0a534Smrg os=`echo $os | sed -e 's|mac|macos|'` 121414c0a534Smrg ;; 121514c0a534Smrg -linux-dietlibc) 121614c0a534Smrg os=-linux-dietlibc 121714c0a534Smrg ;; 121814c0a534Smrg -linux*) 121914c0a534Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 122014c0a534Smrg ;; 122114c0a534Smrg -sunos5*) 122214c0a534Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 122314c0a534Smrg ;; 122414c0a534Smrg -sunos6*) 122514c0a534Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 122614c0a534Smrg ;; 122714c0a534Smrg -opened*) 122814c0a534Smrg os=-openedition 122914c0a534Smrg ;; 123014c0a534Smrg -os400*) 123114c0a534Smrg os=-os400 123214c0a534Smrg ;; 123314c0a534Smrg -wince*) 123414c0a534Smrg os=-wince 123514c0a534Smrg ;; 123614c0a534Smrg -osfrose*) 123714c0a534Smrg os=-osfrose 123814c0a534Smrg ;; 123914c0a534Smrg -osf*) 124014c0a534Smrg os=-osf 124114c0a534Smrg ;; 124214c0a534Smrg -utek*) 124314c0a534Smrg os=-bsd 124414c0a534Smrg ;; 124514c0a534Smrg -dynix*) 124614c0a534Smrg os=-bsd 124714c0a534Smrg ;; 124814c0a534Smrg -acis*) 124914c0a534Smrg os=-aos 125014c0a534Smrg ;; 125114c0a534Smrg -atheos*) 125214c0a534Smrg os=-atheos 125314c0a534Smrg ;; 125414c0a534Smrg -syllable*) 125514c0a534Smrg os=-syllable 125614c0a534Smrg ;; 125714c0a534Smrg -386bsd) 125814c0a534Smrg os=-bsd 125914c0a534Smrg ;; 126014c0a534Smrg -ctix* | -uts*) 126114c0a534Smrg os=-sysv 126214c0a534Smrg ;; 126314c0a534Smrg -nova*) 126414c0a534Smrg os=-rtmk-nova 126514c0a534Smrg ;; 126614c0a534Smrg -ns2 ) 126714c0a534Smrg os=-nextstep2 126814c0a534Smrg ;; 126914c0a534Smrg -nsk*) 127014c0a534Smrg os=-nsk 127114c0a534Smrg ;; 127214c0a534Smrg # Preserve the version number of sinix5. 127314c0a534Smrg -sinix5.*) 127414c0a534Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 127514c0a534Smrg ;; 127614c0a534Smrg -sinix*) 127714c0a534Smrg os=-sysv4 127814c0a534Smrg ;; 127914c0a534Smrg -tpf*) 128014c0a534Smrg os=-tpf 128114c0a534Smrg ;; 128214c0a534Smrg -triton*) 128314c0a534Smrg os=-sysv3 128414c0a534Smrg ;; 128514c0a534Smrg -oss*) 128614c0a534Smrg os=-sysv3 128714c0a534Smrg ;; 128814c0a534Smrg -svr4) 128914c0a534Smrg os=-sysv4 129014c0a534Smrg ;; 129114c0a534Smrg -svr3) 129214c0a534Smrg os=-sysv3 129314c0a534Smrg ;; 129414c0a534Smrg -sysvr4) 129514c0a534Smrg os=-sysv4 129614c0a534Smrg ;; 129714c0a534Smrg # This must come after -sysvr4. 129814c0a534Smrg -sysv*) 129914c0a534Smrg ;; 130014c0a534Smrg -ose*) 130114c0a534Smrg os=-ose 130214c0a534Smrg ;; 130314c0a534Smrg -es1800*) 130414c0a534Smrg os=-ose 130514c0a534Smrg ;; 130614c0a534Smrg -xenix) 130714c0a534Smrg os=-xenix 130814c0a534Smrg ;; 130914c0a534Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 131014c0a534Smrg os=-mint 131114c0a534Smrg ;; 131214c0a534Smrg -aros*) 131314c0a534Smrg os=-aros 131414c0a534Smrg ;; 131514c0a534Smrg -kaos*) 131614c0a534Smrg os=-kaos 131714c0a534Smrg ;; 131814c0a534Smrg -zvmoe) 131914c0a534Smrg os=-zvmoe 132014c0a534Smrg ;; 132114c0a534Smrg -none) 132214c0a534Smrg ;; 132314c0a534Smrg *) 132414c0a534Smrg # Get rid of the `-' at the beginning of $os. 132514c0a534Smrg os=`echo $os | sed 's/[^-]*-//'` 132614c0a534Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 132714c0a534Smrg exit 1 132814c0a534Smrg ;; 132914c0a534Smrgesac 133014c0a534Smrgelse 133114c0a534Smrg 133214c0a534Smrg# Here we handle the default operating systems that come with various machines. 133314c0a534Smrg# The value should be what the vendor currently ships out the door with their 133414c0a534Smrg# machine or put another way, the most popular os provided with the machine. 133514c0a534Smrg 133614c0a534Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 133714c0a534Smrg# "-sun"), then you have to tell the case statement up towards the top 133814c0a534Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 133914c0a534Smrg# will signal an error saying that MANUFACTURER isn't an operating 134014c0a534Smrg# system, and we'll never get to this point. 134114c0a534Smrg 134214c0a534Smrgcase $basic_machine in 134314c0a534Smrg *-acorn) 134414c0a534Smrg os=-riscix1.2 134514c0a534Smrg ;; 134614c0a534Smrg arm*-rebel) 134714c0a534Smrg os=-linux 134814c0a534Smrg ;; 134914c0a534Smrg arm*-semi) 135014c0a534Smrg os=-aout 135114c0a534Smrg ;; 135214c0a534Smrg c4x-* | tic4x-*) 135314c0a534Smrg os=-coff 135414c0a534Smrg ;; 135514c0a534Smrg # This must come before the *-dec entry. 135614c0a534Smrg pdp10-*) 135714c0a534Smrg os=-tops20 135814c0a534Smrg ;; 135914c0a534Smrg pdp11-*) 136014c0a534Smrg os=-none 136114c0a534Smrg ;; 136214c0a534Smrg *-dec | vax-*) 136314c0a534Smrg os=-ultrix4.2 136414c0a534Smrg ;; 136514c0a534Smrg m68*-apollo) 136614c0a534Smrg os=-domain 136714c0a534Smrg ;; 136814c0a534Smrg i386-sun) 136914c0a534Smrg os=-sunos4.0.2 137014c0a534Smrg ;; 137114c0a534Smrg m68000-sun) 137214c0a534Smrg os=-sunos3 137314c0a534Smrg # This also exists in the configure program, but was not the 137414c0a534Smrg # default. 137514c0a534Smrg # os=-sunos4 137614c0a534Smrg ;; 137714c0a534Smrg m68*-cisco) 137814c0a534Smrg os=-aout 137914c0a534Smrg ;; 138014c0a534Smrg mips*-cisco) 138114c0a534Smrg os=-elf 138214c0a534Smrg ;; 138314c0a534Smrg mips*-*) 138414c0a534Smrg os=-elf 138514c0a534Smrg ;; 138614c0a534Smrg or32-*) 138714c0a534Smrg os=-coff 138814c0a534Smrg ;; 138914c0a534Smrg *-tti) # must be before sparc entry or we get the wrong os. 139014c0a534Smrg os=-sysv3 139114c0a534Smrg ;; 139214c0a534Smrg sparc-* | *-sun) 139314c0a534Smrg os=-sunos4.1.1 139414c0a534Smrg ;; 139514c0a534Smrg *-be) 139614c0a534Smrg os=-beos 139714c0a534Smrg ;; 139814c0a534Smrg *-haiku) 139914c0a534Smrg os=-haiku 140014c0a534Smrg ;; 140114c0a534Smrg *-ibm) 140214c0a534Smrg os=-aix 140314c0a534Smrg ;; 140414c0a534Smrg *-knuth) 140514c0a534Smrg os=-mmixware 140614c0a534Smrg ;; 140714c0a534Smrg *-wec) 140814c0a534Smrg os=-proelf 140914c0a534Smrg ;; 141014c0a534Smrg *-winbond) 141114c0a534Smrg os=-proelf 141214c0a534Smrg ;; 141314c0a534Smrg *-oki) 141414c0a534Smrg os=-proelf 141514c0a534Smrg ;; 141614c0a534Smrg *-hp) 141714c0a534Smrg os=-hpux 141814c0a534Smrg ;; 141914c0a534Smrg *-hitachi) 142014c0a534Smrg os=-hiux 142114c0a534Smrg ;; 142214c0a534Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 142314c0a534Smrg os=-sysv 142414c0a534Smrg ;; 142514c0a534Smrg *-cbm) 142614c0a534Smrg os=-amigaos 142714c0a534Smrg ;; 142814c0a534Smrg *-dg) 142914c0a534Smrg os=-dgux 143014c0a534Smrg ;; 143114c0a534Smrg *-dolphin) 143214c0a534Smrg os=-sysv3 143314c0a534Smrg ;; 143414c0a534Smrg m68k-ccur) 143514c0a534Smrg os=-rtu 143614c0a534Smrg ;; 143714c0a534Smrg m88k-omron*) 143814c0a534Smrg os=-luna 143914c0a534Smrg ;; 144014c0a534Smrg *-next ) 144114c0a534Smrg os=-nextstep 144214c0a534Smrg ;; 144314c0a534Smrg *-sequent) 144414c0a534Smrg os=-ptx 144514c0a534Smrg ;; 144614c0a534Smrg *-crds) 144714c0a534Smrg os=-unos 144814c0a534Smrg ;; 144914c0a534Smrg *-ns) 145014c0a534Smrg os=-genix 145114c0a534Smrg ;; 145214c0a534Smrg i370-*) 145314c0a534Smrg os=-mvs 145414c0a534Smrg ;; 145514c0a534Smrg *-next) 145614c0a534Smrg os=-nextstep3 145714c0a534Smrg ;; 145814c0a534Smrg *-gould) 145914c0a534Smrg os=-sysv 146014c0a534Smrg ;; 146114c0a534Smrg *-highlevel) 146214c0a534Smrg os=-bsd 146314c0a534Smrg ;; 146414c0a534Smrg *-encore) 146514c0a534Smrg os=-bsd 146614c0a534Smrg ;; 146714c0a534Smrg *-sgi) 146814c0a534Smrg os=-irix 146914c0a534Smrg ;; 147014c0a534Smrg *-siemens) 147114c0a534Smrg os=-sysv4 147214c0a534Smrg ;; 147314c0a534Smrg *-masscomp) 147414c0a534Smrg os=-rtu 147514c0a534Smrg ;; 147614c0a534Smrg f30[01]-fujitsu | f700-fujitsu) 147714c0a534Smrg os=-uxpv 147814c0a534Smrg ;; 147914c0a534Smrg *-rom68k) 148014c0a534Smrg os=-coff 148114c0a534Smrg ;; 148214c0a534Smrg *-*bug) 148314c0a534Smrg os=-coff 148414c0a534Smrg ;; 148514c0a534Smrg *-apple) 148614c0a534Smrg os=-macos 148714c0a534Smrg ;; 148814c0a534Smrg *-atari*) 148914c0a534Smrg os=-mint 149014c0a534Smrg ;; 149114c0a534Smrg *) 149214c0a534Smrg os=-none 149314c0a534Smrg ;; 149414c0a534Smrgesac 149514c0a534Smrgfi 149614c0a534Smrg 149714c0a534Smrg# Here we handle the case where we know the os, and the CPU type, but not the 149814c0a534Smrg# manufacturer. We pick the logical manufacturer. 149914c0a534Smrgvendor=unknown 150014c0a534Smrgcase $basic_machine in 150114c0a534Smrg *-unknown) 150214c0a534Smrg case $os in 150314c0a534Smrg -riscix*) 150414c0a534Smrg vendor=acorn 150514c0a534Smrg ;; 150614c0a534Smrg -sunos*) 150714c0a534Smrg vendor=sun 150814c0a534Smrg ;; 150914c0a534Smrg -aix*) 151014c0a534Smrg vendor=ibm 151114c0a534Smrg ;; 151214c0a534Smrg -beos*) 151314c0a534Smrg vendor=be 151414c0a534Smrg ;; 151514c0a534Smrg -hpux*) 151614c0a534Smrg vendor=hp 151714c0a534Smrg ;; 151814c0a534Smrg -mpeix*) 151914c0a534Smrg vendor=hp 152014c0a534Smrg ;; 152114c0a534Smrg -hiux*) 152214c0a534Smrg vendor=hitachi 152314c0a534Smrg ;; 152414c0a534Smrg -unos*) 152514c0a534Smrg vendor=crds 152614c0a534Smrg ;; 152714c0a534Smrg -dgux*) 152814c0a534Smrg vendor=dg 152914c0a534Smrg ;; 153014c0a534Smrg -luna*) 153114c0a534Smrg vendor=omron 153214c0a534Smrg ;; 153314c0a534Smrg -genix*) 153414c0a534Smrg vendor=ns 153514c0a534Smrg ;; 153614c0a534Smrg -mvs* | -opened*) 153714c0a534Smrg vendor=ibm 153814c0a534Smrg ;; 153914c0a534Smrg -os400*) 154014c0a534Smrg vendor=ibm 154114c0a534Smrg ;; 154214c0a534Smrg -ptx*) 154314c0a534Smrg vendor=sequent 154414c0a534Smrg ;; 154514c0a534Smrg -tpf*) 154614c0a534Smrg vendor=ibm 154714c0a534Smrg ;; 154814c0a534Smrg -vxsim* | -vxworks* | -windiss*) 154914c0a534Smrg vendor=wrs 155014c0a534Smrg ;; 155114c0a534Smrg -aux*) 155214c0a534Smrg vendor=apple 155314c0a534Smrg ;; 155414c0a534Smrg -hms*) 155514c0a534Smrg vendor=hitachi 155614c0a534Smrg ;; 155714c0a534Smrg -mpw* | -macos*) 155814c0a534Smrg vendor=apple 155914c0a534Smrg ;; 156014c0a534Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 156114c0a534Smrg vendor=atari 156214c0a534Smrg ;; 156314c0a534Smrg -vos*) 156414c0a534Smrg vendor=stratus 156514c0a534Smrg ;; 156614c0a534Smrg esac 156714c0a534Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 156814c0a534Smrg ;; 156914c0a534Smrgesac 157014c0a534Smrg 157114c0a534Smrgecho $basic_machine$os 157214c0a534Smrgexit 157314c0a534Smrg 157414c0a534Smrg# Local variables: 157514c0a534Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 157614c0a534Smrg# time-stamp-start: "timestamp='" 157714c0a534Smrg# time-stamp-format: "%:y-%02m-%02d" 157814c0a534Smrg# time-stamp-end: "'" 157914c0a534Smrg# End: 1580