config.sub revision 72b676d7
172b676d7Smrg#! /bin/sh 272b676d7Smrg# Configuration validation subroutine script. 372b676d7Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 472b676d7Smrg# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 572b676d7Smrg 672b676d7Smrgtimestamp='2006-02-23' 772b676d7Smrg 872b676d7Smrg# This file is (in principle) common to ALL GNU software. 972b676d7Smrg# The presence of a machine in this file suggests that SOME GNU software 1072b676d7Smrg# can handle that machine. It does not imply ALL GNU software can. 1172b676d7Smrg# 1272b676d7Smrg# This file is free software; you can redistribute it and/or modify 1372b676d7Smrg# it under the terms of the GNU General Public License as published by 1472b676d7Smrg# the Free Software Foundation; either version 2 of the License, or 1572b676d7Smrg# (at your option) any later version. 1672b676d7Smrg# 1772b676d7Smrg# This program is distributed in the hope that it will be useful, 1872b676d7Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 1972b676d7Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2072b676d7Smrg# GNU General Public License for more details. 2172b676d7Smrg# 2272b676d7Smrg# You should have received a copy of the GNU General Public License 2372b676d7Smrg# along with this program; if not, write to the Free Software 2472b676d7Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2572b676d7Smrg# 02110-1301, USA. 2672b676d7Smrg# 2772b676d7Smrg# As a special exception to the GNU General Public License, if you 2872b676d7Smrg# distribute this file as part of a program that contains a 2972b676d7Smrg# configuration script generated by Autoconf, you may include it under 3072b676d7Smrg# the same distribution terms that you use for the rest of that program. 3172b676d7Smrg 3272b676d7Smrg 3372b676d7Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 3472b676d7Smrg# diff and a properly formatted ChangeLog entry. 3572b676d7Smrg# 3672b676d7Smrg# Configuration subroutine to validate and canonicalize a configuration type. 3772b676d7Smrg# Supply the specified configuration type as an argument. 3872b676d7Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 3972b676d7Smrg# Otherwise, we print the canonical config type on stdout and succeed. 4072b676d7Smrg 4172b676d7Smrg# This file is supposed to be the same for all GNU packages 4272b676d7Smrg# and recognize all the CPU types, system types and aliases 4372b676d7Smrg# that are meaningful with *any* GNU software. 4472b676d7Smrg# Each package is responsible for reporting which valid configurations 4572b676d7Smrg# it does not support. The user should be able to distinguish 4672b676d7Smrg# a failure to support a valid configuration from a meaningless 4772b676d7Smrg# configuration. 4872b676d7Smrg 4972b676d7Smrg# The goal of this file is to map all the various variations of a given 5072b676d7Smrg# machine specification into a single specification in the form: 5172b676d7Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 5272b676d7Smrg# or in some cases, the newer four-part form: 5372b676d7Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 5472b676d7Smrg# It is wrong to echo any other type of specification. 5572b676d7Smrg 5672b676d7Smrgme=`echo "$0" | sed -e 's,.*/,,'` 5772b676d7Smrg 5872b676d7Smrgusage="\ 5972b676d7SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 6072b676d7Smrg $0 [OPTION] ALIAS 6172b676d7Smrg 6272b676d7SmrgCanonicalize a configuration name. 6372b676d7Smrg 6472b676d7SmrgOperation modes: 6572b676d7Smrg -h, --help print this help, then exit 6672b676d7Smrg -t, --time-stamp print date of last modification, then exit 6772b676d7Smrg -v, --version print version number, then exit 6872b676d7Smrg 6972b676d7SmrgReport bugs and patches to <config-patches@gnu.org>." 7072b676d7Smrg 7172b676d7Smrgversion="\ 7272b676d7SmrgGNU config.sub ($timestamp) 7372b676d7Smrg 7472b676d7SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7572b676d7SmrgFree Software Foundation, Inc. 7672b676d7Smrg 7772b676d7SmrgThis is free software; see the source for copying conditions. There is NO 7872b676d7Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 7972b676d7Smrg 8072b676d7Smrghelp=" 8172b676d7SmrgTry \`$me --help' for more information." 8272b676d7Smrg 8372b676d7Smrg# Parse command line 8472b676d7Smrgwhile test $# -gt 0 ; do 8572b676d7Smrg case $1 in 8672b676d7Smrg --time-stamp | --time* | -t ) 8772b676d7Smrg echo "$timestamp" ; exit ;; 8872b676d7Smrg --version | -v ) 8972b676d7Smrg echo "$version" ; exit ;; 9072b676d7Smrg --help | --h* | -h ) 9172b676d7Smrg echo "$usage"; exit ;; 9272b676d7Smrg -- ) # Stop option processing 9372b676d7Smrg shift; break ;; 9472b676d7Smrg - ) # Use stdin as input. 9572b676d7Smrg break ;; 9672b676d7Smrg -* ) 9772b676d7Smrg echo "$me: invalid option $1$help" 9872b676d7Smrg exit 1 ;; 9972b676d7Smrg 10072b676d7Smrg *local*) 10172b676d7Smrg # First pass through any local machine types. 10272b676d7Smrg echo $1 10372b676d7Smrg exit ;; 10472b676d7Smrg 10572b676d7Smrg * ) 10672b676d7Smrg break ;; 10772b676d7Smrg esac 10872b676d7Smrgdone 10972b676d7Smrg 11072b676d7Smrgcase $# in 11172b676d7Smrg 0) echo "$me: missing argument$help" >&2 11272b676d7Smrg exit 1;; 11372b676d7Smrg 1) ;; 11472b676d7Smrg *) echo "$me: too many arguments$help" >&2 11572b676d7Smrg exit 1;; 11672b676d7Smrgesac 11772b676d7Smrg 11872b676d7Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 11972b676d7Smrg# Here we must recognize all the valid KERNEL-OS combinations. 12072b676d7Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 12172b676d7Smrgcase $maybe_os in 12272b676d7Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 12372b676d7Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 12472b676d7Smrg storm-chaos* | os2-emx* | rtmk-nova*) 12572b676d7Smrg os=-$maybe_os 12672b676d7Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 12772b676d7Smrg ;; 12872b676d7Smrg *) 12972b676d7Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 13072b676d7Smrg if [ $basic_machine != $1 ] 13172b676d7Smrg then os=`echo $1 | sed 's/.*-/-/'` 13272b676d7Smrg else os=; fi 13372b676d7Smrg ;; 13472b676d7Smrgesac 13572b676d7Smrg 13672b676d7Smrg### Let's recognize common machines as not being operating systems so 13772b676d7Smrg### that things like config.sub decstation-3100 work. We also 13872b676d7Smrg### recognize some manufacturers as not being operating systems, so we 13972b676d7Smrg### can provide default operating systems below. 14072b676d7Smrgcase $os in 14172b676d7Smrg -sun*os*) 14272b676d7Smrg # Prevent following clause from handling this invalid input. 14372b676d7Smrg ;; 14472b676d7Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 14572b676d7Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 14672b676d7Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 14772b676d7Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 14872b676d7Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 14972b676d7Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 15072b676d7Smrg -apple | -axis | -knuth | -cray) 15172b676d7Smrg os= 15272b676d7Smrg basic_machine=$1 15372b676d7Smrg ;; 15472b676d7Smrg -sim | -cisco | -oki | -wec | -winbond) 15572b676d7Smrg os= 15672b676d7Smrg basic_machine=$1 15772b676d7Smrg ;; 15872b676d7Smrg -scout) 15972b676d7Smrg ;; 16072b676d7Smrg -wrs) 16172b676d7Smrg os=-vxworks 16272b676d7Smrg basic_machine=$1 16372b676d7Smrg ;; 16472b676d7Smrg -chorusos*) 16572b676d7Smrg os=-chorusos 16672b676d7Smrg basic_machine=$1 16772b676d7Smrg ;; 16872b676d7Smrg -chorusrdb) 16972b676d7Smrg os=-chorusrdb 17072b676d7Smrg basic_machine=$1 17172b676d7Smrg ;; 17272b676d7Smrg -hiux*) 17372b676d7Smrg os=-hiuxwe2 17472b676d7Smrg ;; 17572b676d7Smrg -sco6) 17672b676d7Smrg os=-sco5v6 17772b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 17872b676d7Smrg ;; 17972b676d7Smrg -sco5) 18072b676d7Smrg os=-sco3.2v5 18172b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18272b676d7Smrg ;; 18372b676d7Smrg -sco4) 18472b676d7Smrg os=-sco3.2v4 18572b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18672b676d7Smrg ;; 18772b676d7Smrg -sco3.2.[4-9]*) 18872b676d7Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 18972b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19072b676d7Smrg ;; 19172b676d7Smrg -sco3.2v[4-9]*) 19272b676d7Smrg # Don't forget version if it is 3.2v4 or newer. 19372b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19472b676d7Smrg ;; 19572b676d7Smrg -sco5v6*) 19672b676d7Smrg # Don't forget version if it is 3.2v4 or newer. 19772b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19872b676d7Smrg ;; 19972b676d7Smrg -sco*) 20072b676d7Smrg os=-sco3.2v2 20172b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20272b676d7Smrg ;; 20372b676d7Smrg -udk*) 20472b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20572b676d7Smrg ;; 20672b676d7Smrg -isc) 20772b676d7Smrg os=-isc2.2 20872b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20972b676d7Smrg ;; 21072b676d7Smrg -clix*) 21172b676d7Smrg basic_machine=clipper-intergraph 21272b676d7Smrg ;; 21372b676d7Smrg -isc*) 21472b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21572b676d7Smrg ;; 21672b676d7Smrg -lynx*) 21772b676d7Smrg os=-lynxos 21872b676d7Smrg ;; 21972b676d7Smrg -ptx*) 22072b676d7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 22172b676d7Smrg ;; 22272b676d7Smrg -windowsnt*) 22372b676d7Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 22472b676d7Smrg ;; 22572b676d7Smrg -psos*) 22672b676d7Smrg os=-psos 22772b676d7Smrg ;; 22872b676d7Smrg -mint | -mint[0-9]*) 22972b676d7Smrg basic_machine=m68k-atari 23072b676d7Smrg os=-mint 23172b676d7Smrg ;; 23272b676d7Smrgesac 23372b676d7Smrg 23472b676d7Smrg# Decode aliases for certain CPU-COMPANY combinations. 23572b676d7Smrgcase $basic_machine in 23672b676d7Smrg # Recognize the basic CPU types without company name. 23772b676d7Smrg # Some are omitted here because they have special meanings below. 23872b676d7Smrg 1750a | 580 \ 23972b676d7Smrg | a29k \ 24072b676d7Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 24172b676d7Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 24272b676d7Smrg | am33_2.0 \ 24372b676d7Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 24472b676d7Smrg | bfin \ 24572b676d7Smrg | c4x | clipper \ 24672b676d7Smrg | d10v | d30v | dlx | dsp16xx \ 24772b676d7Smrg | fr30 | frv \ 24872b676d7Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 24972b676d7Smrg | i370 | i860 | i960 | ia64 \ 25072b676d7Smrg | ip2k | iq2000 \ 25172b676d7Smrg | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ 25272b676d7Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 25372b676d7Smrg | mips16 \ 25472b676d7Smrg | mips64 | mips64el \ 25572b676d7Smrg | mips64vr | mips64vrel \ 25672b676d7Smrg | mips64orion | mips64orionel \ 25772b676d7Smrg | mips64vr4100 | mips64vr4100el \ 25872b676d7Smrg | mips64vr4300 | mips64vr4300el \ 25972b676d7Smrg | mips64vr5000 | mips64vr5000el \ 26072b676d7Smrg | mips64vr5900 | mips64vr5900el \ 26172b676d7Smrg | mipsisa32 | mipsisa32el \ 26272b676d7Smrg | mipsisa32r2 | mipsisa32r2el \ 26372b676d7Smrg | mipsisa64 | mipsisa64el \ 26472b676d7Smrg | mipsisa64r2 | mipsisa64r2el \ 26572b676d7Smrg | mipsisa64sb1 | mipsisa64sb1el \ 26672b676d7Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 26772b676d7Smrg | mipstx39 | mipstx39el \ 26872b676d7Smrg | mn10200 | mn10300 \ 26972b676d7Smrg | mt \ 27072b676d7Smrg | msp430 \ 27172b676d7Smrg | nios | nios2 \ 27272b676d7Smrg | ns16k | ns32k \ 27372b676d7Smrg | or32 \ 27472b676d7Smrg | pdp10 | pdp11 | pj | pjl \ 27572b676d7Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 27672b676d7Smrg | pyramid \ 27772b676d7Smrg | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 27872b676d7Smrg | sh64 | sh64le \ 27972b676d7Smrg | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 28072b676d7Smrg | sparcv8 | sparcv9 | sparcv9b \ 28172b676d7Smrg | strongarm \ 28272b676d7Smrg | tahoe | thumb | tic4x | tic80 | tron \ 28372b676d7Smrg | v850 | v850e \ 28472b676d7Smrg | we32k \ 28572b676d7Smrg | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 28672b676d7Smrg | z8k) 28772b676d7Smrg basic_machine=$basic_machine-unknown 28872b676d7Smrg ;; 28972b676d7Smrg m32c) 29072b676d7Smrg basic_machine=$basic_machine-unknown 29172b676d7Smrg ;; 29272b676d7Smrg m6811 | m68hc11 | m6812 | m68hc12) 29372b676d7Smrg # Motorola 68HC11/12. 29472b676d7Smrg basic_machine=$basic_machine-unknown 29572b676d7Smrg os=-none 29672b676d7Smrg ;; 29772b676d7Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 29872b676d7Smrg ;; 29972b676d7Smrg ms1) 30072b676d7Smrg basic_machine=mt-unknown 30172b676d7Smrg ;; 30272b676d7Smrg 30372b676d7Smrg # We use `pc' rather than `unknown' 30472b676d7Smrg # because (1) that's what they normally are, and 30572b676d7Smrg # (2) the word "unknown" tends to confuse beginning users. 30672b676d7Smrg i*86 | x86_64) 30772b676d7Smrg basic_machine=$basic_machine-pc 30872b676d7Smrg ;; 30972b676d7Smrg # Object if more than one company name word. 31072b676d7Smrg *-*-*) 31172b676d7Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 31272b676d7Smrg exit 1 31372b676d7Smrg ;; 31472b676d7Smrg # Recognize the basic CPU types with company name. 31572b676d7Smrg 580-* \ 31672b676d7Smrg | a29k-* \ 31772b676d7Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 31872b676d7Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 31972b676d7Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 32072b676d7Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 32172b676d7Smrg | avr-* \ 32272b676d7Smrg | bfin-* | bs2000-* \ 32372b676d7Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 32472b676d7Smrg | clipper-* | craynv-* | cydra-* \ 32572b676d7Smrg | d10v-* | d30v-* | dlx-* \ 32672b676d7Smrg | elxsi-* \ 32772b676d7Smrg | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 32872b676d7Smrg | h8300-* | h8500-* \ 32972b676d7Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 33072b676d7Smrg | i*86-* | i860-* | i960-* | ia64-* \ 33172b676d7Smrg | ip2k-* | iq2000-* \ 33272b676d7Smrg | m32r-* | m32rle-* \ 33372b676d7Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 33472b676d7Smrg | m88110-* | m88k-* | maxq-* | mcore-* \ 33572b676d7Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 33672b676d7Smrg | mips16-* \ 33772b676d7Smrg | mips64-* | mips64el-* \ 33872b676d7Smrg | mips64vr-* | mips64vrel-* \ 33972b676d7Smrg | mips64orion-* | mips64orionel-* \ 34072b676d7Smrg | mips64vr4100-* | mips64vr4100el-* \ 34172b676d7Smrg | mips64vr4300-* | mips64vr4300el-* \ 34272b676d7Smrg | mips64vr5000-* | mips64vr5000el-* \ 34372b676d7Smrg | mips64vr5900-* | mips64vr5900el-* \ 34472b676d7Smrg | mipsisa32-* | mipsisa32el-* \ 34572b676d7Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 34672b676d7Smrg | mipsisa64-* | mipsisa64el-* \ 34772b676d7Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 34872b676d7Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 34972b676d7Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 35072b676d7Smrg | mipstx39-* | mipstx39el-* \ 35172b676d7Smrg | mmix-* \ 35272b676d7Smrg | mt-* \ 35372b676d7Smrg | msp430-* \ 35472b676d7Smrg | nios-* | nios2-* \ 35572b676d7Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 35672b676d7Smrg | orion-* \ 35772b676d7Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 35872b676d7Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 35972b676d7Smrg | pyramid-* \ 36072b676d7Smrg | romp-* | rs6000-* \ 36172b676d7Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 36272b676d7Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 36372b676d7Smrg | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 36472b676d7Smrg | sparclite-* \ 36572b676d7Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 36672b676d7Smrg | tahoe-* | thumb-* \ 36772b676d7Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 36872b676d7Smrg | tron-* \ 36972b676d7Smrg | v850-* | v850e-* | vax-* \ 37072b676d7Smrg | we32k-* \ 37172b676d7Smrg | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 37272b676d7Smrg | xstormy16-* | xtensa-* \ 37372b676d7Smrg | ymp-* \ 37472b676d7Smrg | z8k-*) 37572b676d7Smrg ;; 37672b676d7Smrg m32c-*) 37772b676d7Smrg ;; 37872b676d7Smrg # Recognize the various machine names and aliases which stand 37972b676d7Smrg # for a CPU type and a company and sometimes even an OS. 38072b676d7Smrg 386bsd) 38172b676d7Smrg basic_machine=i386-unknown 38272b676d7Smrg os=-bsd 38372b676d7Smrg ;; 38472b676d7Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 38572b676d7Smrg basic_machine=m68000-att 38672b676d7Smrg ;; 38772b676d7Smrg 3b*) 38872b676d7Smrg basic_machine=we32k-att 38972b676d7Smrg ;; 39072b676d7Smrg a29khif) 39172b676d7Smrg basic_machine=a29k-amd 39272b676d7Smrg os=-udi 39372b676d7Smrg ;; 39472b676d7Smrg abacus) 39572b676d7Smrg basic_machine=abacus-unknown 39672b676d7Smrg ;; 39772b676d7Smrg adobe68k) 39872b676d7Smrg basic_machine=m68010-adobe 39972b676d7Smrg os=-scout 40072b676d7Smrg ;; 40172b676d7Smrg alliant | fx80) 40272b676d7Smrg basic_machine=fx80-alliant 40372b676d7Smrg ;; 40472b676d7Smrg altos | altos3068) 40572b676d7Smrg basic_machine=m68k-altos 40672b676d7Smrg ;; 40772b676d7Smrg am29k) 40872b676d7Smrg basic_machine=a29k-none 40972b676d7Smrg os=-bsd 41072b676d7Smrg ;; 41172b676d7Smrg amd64) 41272b676d7Smrg basic_machine=x86_64-pc 41372b676d7Smrg ;; 41472b676d7Smrg amd64-*) 41572b676d7Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 41672b676d7Smrg ;; 41772b676d7Smrg amdahl) 41872b676d7Smrg basic_machine=580-amdahl 41972b676d7Smrg os=-sysv 42072b676d7Smrg ;; 42172b676d7Smrg amiga | amiga-*) 42272b676d7Smrg basic_machine=m68k-unknown 42372b676d7Smrg ;; 42472b676d7Smrg amigaos | amigados) 42572b676d7Smrg basic_machine=m68k-unknown 42672b676d7Smrg os=-amigaos 42772b676d7Smrg ;; 42872b676d7Smrg amigaunix | amix) 42972b676d7Smrg basic_machine=m68k-unknown 43072b676d7Smrg os=-sysv4 43172b676d7Smrg ;; 43272b676d7Smrg apollo68) 43372b676d7Smrg basic_machine=m68k-apollo 43472b676d7Smrg os=-sysv 43572b676d7Smrg ;; 43672b676d7Smrg apollo68bsd) 43772b676d7Smrg basic_machine=m68k-apollo 43872b676d7Smrg os=-bsd 43972b676d7Smrg ;; 44072b676d7Smrg aux) 44172b676d7Smrg basic_machine=m68k-apple 44272b676d7Smrg os=-aux 44372b676d7Smrg ;; 44472b676d7Smrg balance) 44572b676d7Smrg basic_machine=ns32k-sequent 44672b676d7Smrg os=-dynix 44772b676d7Smrg ;; 44872b676d7Smrg c90) 44972b676d7Smrg basic_machine=c90-cray 45072b676d7Smrg os=-unicos 45172b676d7Smrg ;; 45272b676d7Smrg convex-c1) 45372b676d7Smrg basic_machine=c1-convex 45472b676d7Smrg os=-bsd 45572b676d7Smrg ;; 45672b676d7Smrg convex-c2) 45772b676d7Smrg basic_machine=c2-convex 45872b676d7Smrg os=-bsd 45972b676d7Smrg ;; 46072b676d7Smrg convex-c32) 46172b676d7Smrg basic_machine=c32-convex 46272b676d7Smrg os=-bsd 46372b676d7Smrg ;; 46472b676d7Smrg convex-c34) 46572b676d7Smrg basic_machine=c34-convex 46672b676d7Smrg os=-bsd 46772b676d7Smrg ;; 46872b676d7Smrg convex-c38) 46972b676d7Smrg basic_machine=c38-convex 47072b676d7Smrg os=-bsd 47172b676d7Smrg ;; 47272b676d7Smrg cray | j90) 47372b676d7Smrg basic_machine=j90-cray 47472b676d7Smrg os=-unicos 47572b676d7Smrg ;; 47672b676d7Smrg craynv) 47772b676d7Smrg basic_machine=craynv-cray 47872b676d7Smrg os=-unicosmp 47972b676d7Smrg ;; 48072b676d7Smrg cr16c) 48172b676d7Smrg basic_machine=cr16c-unknown 48272b676d7Smrg os=-elf 48372b676d7Smrg ;; 48472b676d7Smrg crds | unos) 48572b676d7Smrg basic_machine=m68k-crds 48672b676d7Smrg ;; 48772b676d7Smrg crisv32 | crisv32-* | etraxfs*) 48872b676d7Smrg basic_machine=crisv32-axis 48972b676d7Smrg ;; 49072b676d7Smrg cris | cris-* | etrax*) 49172b676d7Smrg basic_machine=cris-axis 49272b676d7Smrg ;; 49372b676d7Smrg crx) 49472b676d7Smrg basic_machine=crx-unknown 49572b676d7Smrg os=-elf 49672b676d7Smrg ;; 49772b676d7Smrg da30 | da30-*) 49872b676d7Smrg basic_machine=m68k-da30 49972b676d7Smrg ;; 50072b676d7Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 50172b676d7Smrg basic_machine=mips-dec 50272b676d7Smrg ;; 50372b676d7Smrg decsystem10* | dec10*) 50472b676d7Smrg basic_machine=pdp10-dec 50572b676d7Smrg os=-tops10 50672b676d7Smrg ;; 50772b676d7Smrg decsystem20* | dec20*) 50872b676d7Smrg basic_machine=pdp10-dec 50972b676d7Smrg os=-tops20 51072b676d7Smrg ;; 51172b676d7Smrg delta | 3300 | motorola-3300 | motorola-delta \ 51272b676d7Smrg | 3300-motorola | delta-motorola) 51372b676d7Smrg basic_machine=m68k-motorola 51472b676d7Smrg ;; 51572b676d7Smrg delta88) 51672b676d7Smrg basic_machine=m88k-motorola 51772b676d7Smrg os=-sysv3 51872b676d7Smrg ;; 51972b676d7Smrg djgpp) 52072b676d7Smrg basic_machine=i586-pc 52172b676d7Smrg os=-msdosdjgpp 52272b676d7Smrg ;; 52372b676d7Smrg dpx20 | dpx20-*) 52472b676d7Smrg basic_machine=rs6000-bull 52572b676d7Smrg os=-bosx 52672b676d7Smrg ;; 52772b676d7Smrg dpx2* | dpx2*-bull) 52872b676d7Smrg basic_machine=m68k-bull 52972b676d7Smrg os=-sysv3 53072b676d7Smrg ;; 53172b676d7Smrg ebmon29k) 53272b676d7Smrg basic_machine=a29k-amd 53372b676d7Smrg os=-ebmon 53472b676d7Smrg ;; 53572b676d7Smrg elxsi) 53672b676d7Smrg basic_machine=elxsi-elxsi 53772b676d7Smrg os=-bsd 53872b676d7Smrg ;; 53972b676d7Smrg encore | umax | mmax) 54072b676d7Smrg basic_machine=ns32k-encore 54172b676d7Smrg ;; 54272b676d7Smrg es1800 | OSE68k | ose68k | ose | OSE) 54372b676d7Smrg basic_machine=m68k-ericsson 54472b676d7Smrg os=-ose 54572b676d7Smrg ;; 54672b676d7Smrg fx2800) 54772b676d7Smrg basic_machine=i860-alliant 54872b676d7Smrg ;; 54972b676d7Smrg genix) 55072b676d7Smrg basic_machine=ns32k-ns 55172b676d7Smrg ;; 55272b676d7Smrg gmicro) 55372b676d7Smrg basic_machine=tron-gmicro 55472b676d7Smrg os=-sysv 55572b676d7Smrg ;; 55672b676d7Smrg go32) 55772b676d7Smrg basic_machine=i386-pc 55872b676d7Smrg os=-go32 55972b676d7Smrg ;; 56072b676d7Smrg h3050r* | hiux*) 56172b676d7Smrg basic_machine=hppa1.1-hitachi 56272b676d7Smrg os=-hiuxwe2 56372b676d7Smrg ;; 56472b676d7Smrg h8300hms) 56572b676d7Smrg basic_machine=h8300-hitachi 56672b676d7Smrg os=-hms 56772b676d7Smrg ;; 56872b676d7Smrg h8300xray) 56972b676d7Smrg basic_machine=h8300-hitachi 57072b676d7Smrg os=-xray 57172b676d7Smrg ;; 57272b676d7Smrg h8500hms) 57372b676d7Smrg basic_machine=h8500-hitachi 57472b676d7Smrg os=-hms 57572b676d7Smrg ;; 57672b676d7Smrg harris) 57772b676d7Smrg basic_machine=m88k-harris 57872b676d7Smrg os=-sysv3 57972b676d7Smrg ;; 58072b676d7Smrg hp300-*) 58172b676d7Smrg basic_machine=m68k-hp 58272b676d7Smrg ;; 58372b676d7Smrg hp300bsd) 58472b676d7Smrg basic_machine=m68k-hp 58572b676d7Smrg os=-bsd 58672b676d7Smrg ;; 58772b676d7Smrg hp300hpux) 58872b676d7Smrg basic_machine=m68k-hp 58972b676d7Smrg os=-hpux 59072b676d7Smrg ;; 59172b676d7Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 59272b676d7Smrg basic_machine=hppa1.0-hp 59372b676d7Smrg ;; 59472b676d7Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 59572b676d7Smrg basic_machine=m68000-hp 59672b676d7Smrg ;; 59772b676d7Smrg hp9k3[2-9][0-9]) 59872b676d7Smrg basic_machine=m68k-hp 59972b676d7Smrg ;; 60072b676d7Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 60172b676d7Smrg basic_machine=hppa1.0-hp 60272b676d7Smrg ;; 60372b676d7Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 60472b676d7Smrg basic_machine=hppa1.1-hp 60572b676d7Smrg ;; 60672b676d7Smrg hp9k78[0-9] | hp78[0-9]) 60772b676d7Smrg # FIXME: really hppa2.0-hp 60872b676d7Smrg basic_machine=hppa1.1-hp 60972b676d7Smrg ;; 61072b676d7Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 61172b676d7Smrg # FIXME: really hppa2.0-hp 61272b676d7Smrg basic_machine=hppa1.1-hp 61372b676d7Smrg ;; 61472b676d7Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 61572b676d7Smrg basic_machine=hppa1.1-hp 61672b676d7Smrg ;; 61772b676d7Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 61872b676d7Smrg basic_machine=hppa1.0-hp 61972b676d7Smrg ;; 62072b676d7Smrg hppa-next) 62172b676d7Smrg os=-nextstep3 62272b676d7Smrg ;; 62372b676d7Smrg hppaosf) 62472b676d7Smrg basic_machine=hppa1.1-hp 62572b676d7Smrg os=-osf 62672b676d7Smrg ;; 62772b676d7Smrg hppro) 62872b676d7Smrg basic_machine=hppa1.1-hp 62972b676d7Smrg os=-proelf 63072b676d7Smrg ;; 63172b676d7Smrg i370-ibm* | ibm*) 63272b676d7Smrg basic_machine=i370-ibm 63372b676d7Smrg ;; 63472b676d7Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 63572b676d7Smrg i*86v32) 63672b676d7Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 63772b676d7Smrg os=-sysv32 63872b676d7Smrg ;; 63972b676d7Smrg i*86v4*) 64072b676d7Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 64172b676d7Smrg os=-sysv4 64272b676d7Smrg ;; 64372b676d7Smrg i*86v) 64472b676d7Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 64572b676d7Smrg os=-sysv 64672b676d7Smrg ;; 64772b676d7Smrg i*86sol2) 64872b676d7Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 64972b676d7Smrg os=-solaris2 65072b676d7Smrg ;; 65172b676d7Smrg i386mach) 65272b676d7Smrg basic_machine=i386-mach 65372b676d7Smrg os=-mach 65472b676d7Smrg ;; 65572b676d7Smrg i386-vsta | vsta) 65672b676d7Smrg basic_machine=i386-unknown 65772b676d7Smrg os=-vsta 65872b676d7Smrg ;; 65972b676d7Smrg iris | iris4d) 66072b676d7Smrg basic_machine=mips-sgi 66172b676d7Smrg case $os in 66272b676d7Smrg -irix*) 66372b676d7Smrg ;; 66472b676d7Smrg *) 66572b676d7Smrg os=-irix4 66672b676d7Smrg ;; 66772b676d7Smrg esac 66872b676d7Smrg ;; 66972b676d7Smrg isi68 | isi) 67072b676d7Smrg basic_machine=m68k-isi 67172b676d7Smrg os=-sysv 67272b676d7Smrg ;; 67372b676d7Smrg m88k-omron*) 67472b676d7Smrg basic_machine=m88k-omron 67572b676d7Smrg ;; 67672b676d7Smrg magnum | m3230) 67772b676d7Smrg basic_machine=mips-mips 67872b676d7Smrg os=-sysv 67972b676d7Smrg ;; 68072b676d7Smrg merlin) 68172b676d7Smrg basic_machine=ns32k-utek 68272b676d7Smrg os=-sysv 68372b676d7Smrg ;; 68472b676d7Smrg mingw32) 68572b676d7Smrg basic_machine=i386-pc 68672b676d7Smrg os=-mingw32 68772b676d7Smrg ;; 68872b676d7Smrg miniframe) 68972b676d7Smrg basic_machine=m68000-convergent 69072b676d7Smrg ;; 69172b676d7Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 69272b676d7Smrg basic_machine=m68k-atari 69372b676d7Smrg os=-mint 69472b676d7Smrg ;; 69572b676d7Smrg mips3*-*) 69672b676d7Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 69772b676d7Smrg ;; 69872b676d7Smrg mips3*) 69972b676d7Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 70072b676d7Smrg ;; 70172b676d7Smrg monitor) 70272b676d7Smrg basic_machine=m68k-rom68k 70372b676d7Smrg os=-coff 70472b676d7Smrg ;; 70572b676d7Smrg morphos) 70672b676d7Smrg basic_machine=powerpc-unknown 70772b676d7Smrg os=-morphos 70872b676d7Smrg ;; 70972b676d7Smrg msdos) 71072b676d7Smrg basic_machine=i386-pc 71172b676d7Smrg os=-msdos 71272b676d7Smrg ;; 71372b676d7Smrg ms1-*) 71472b676d7Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 71572b676d7Smrg ;; 71672b676d7Smrg mvs) 71772b676d7Smrg basic_machine=i370-ibm 71872b676d7Smrg os=-mvs 71972b676d7Smrg ;; 72072b676d7Smrg ncr3000) 72172b676d7Smrg basic_machine=i486-ncr 72272b676d7Smrg os=-sysv4 72372b676d7Smrg ;; 72472b676d7Smrg netbsd386) 72572b676d7Smrg basic_machine=i386-unknown 72672b676d7Smrg os=-netbsd 72772b676d7Smrg ;; 72872b676d7Smrg netwinder) 72972b676d7Smrg basic_machine=armv4l-rebel 73072b676d7Smrg os=-linux 73172b676d7Smrg ;; 73272b676d7Smrg news | news700 | news800 | news900) 73372b676d7Smrg basic_machine=m68k-sony 73472b676d7Smrg os=-newsos 73572b676d7Smrg ;; 73672b676d7Smrg news1000) 73772b676d7Smrg basic_machine=m68030-sony 73872b676d7Smrg os=-newsos 73972b676d7Smrg ;; 74072b676d7Smrg news-3600 | risc-news) 74172b676d7Smrg basic_machine=mips-sony 74272b676d7Smrg os=-newsos 74372b676d7Smrg ;; 74472b676d7Smrg necv70) 74572b676d7Smrg basic_machine=v70-nec 74672b676d7Smrg os=-sysv 74772b676d7Smrg ;; 74872b676d7Smrg next | m*-next ) 74972b676d7Smrg basic_machine=m68k-next 75072b676d7Smrg case $os in 75172b676d7Smrg -nextstep* ) 75272b676d7Smrg ;; 75372b676d7Smrg -ns2*) 75472b676d7Smrg os=-nextstep2 75572b676d7Smrg ;; 75672b676d7Smrg *) 75772b676d7Smrg os=-nextstep3 75872b676d7Smrg ;; 75972b676d7Smrg esac 76072b676d7Smrg ;; 76172b676d7Smrg nh3000) 76272b676d7Smrg basic_machine=m68k-harris 76372b676d7Smrg os=-cxux 76472b676d7Smrg ;; 76572b676d7Smrg nh[45]000) 76672b676d7Smrg basic_machine=m88k-harris 76772b676d7Smrg os=-cxux 76872b676d7Smrg ;; 76972b676d7Smrg nindy960) 77072b676d7Smrg basic_machine=i960-intel 77172b676d7Smrg os=-nindy 77272b676d7Smrg ;; 77372b676d7Smrg mon960) 77472b676d7Smrg basic_machine=i960-intel 77572b676d7Smrg os=-mon960 77672b676d7Smrg ;; 77772b676d7Smrg nonstopux) 77872b676d7Smrg basic_machine=mips-compaq 77972b676d7Smrg os=-nonstopux 78072b676d7Smrg ;; 78172b676d7Smrg np1) 78272b676d7Smrg basic_machine=np1-gould 78372b676d7Smrg ;; 78472b676d7Smrg nsr-tandem) 78572b676d7Smrg basic_machine=nsr-tandem 78672b676d7Smrg ;; 78772b676d7Smrg op50n-* | op60c-*) 78872b676d7Smrg basic_machine=hppa1.1-oki 78972b676d7Smrg os=-proelf 79072b676d7Smrg ;; 79172b676d7Smrg openrisc | openrisc-*) 79272b676d7Smrg basic_machine=or32-unknown 79372b676d7Smrg ;; 79472b676d7Smrg os400) 79572b676d7Smrg basic_machine=powerpc-ibm 79672b676d7Smrg os=-os400 79772b676d7Smrg ;; 79872b676d7Smrg OSE68000 | ose68000) 79972b676d7Smrg basic_machine=m68000-ericsson 80072b676d7Smrg os=-ose 80172b676d7Smrg ;; 80272b676d7Smrg os68k) 80372b676d7Smrg basic_machine=m68k-none 80472b676d7Smrg os=-os68k 80572b676d7Smrg ;; 80672b676d7Smrg pa-hitachi) 80772b676d7Smrg basic_machine=hppa1.1-hitachi 80872b676d7Smrg os=-hiuxwe2 80972b676d7Smrg ;; 81072b676d7Smrg paragon) 81172b676d7Smrg basic_machine=i860-intel 81272b676d7Smrg os=-osf 81372b676d7Smrg ;; 81472b676d7Smrg pbd) 81572b676d7Smrg basic_machine=sparc-tti 81672b676d7Smrg ;; 81772b676d7Smrg pbb) 81872b676d7Smrg basic_machine=m68k-tti 81972b676d7Smrg ;; 82072b676d7Smrg pc532 | pc532-*) 82172b676d7Smrg basic_machine=ns32k-pc532 82272b676d7Smrg ;; 82372b676d7Smrg pc98) 82472b676d7Smrg basic_machine=i386-pc 82572b676d7Smrg ;; 82672b676d7Smrg pc98-*) 82772b676d7Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 82872b676d7Smrg ;; 82972b676d7Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 83072b676d7Smrg basic_machine=i586-pc 83172b676d7Smrg ;; 83272b676d7Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 83372b676d7Smrg basic_machine=i686-pc 83472b676d7Smrg ;; 83572b676d7Smrg pentiumii | pentium2 | pentiumiii | pentium3) 83672b676d7Smrg basic_machine=i686-pc 83772b676d7Smrg ;; 83872b676d7Smrg pentium4) 83972b676d7Smrg basic_machine=i786-pc 84072b676d7Smrg ;; 84172b676d7Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 84272b676d7Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 84372b676d7Smrg ;; 84472b676d7Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 84572b676d7Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 84672b676d7Smrg ;; 84772b676d7Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 84872b676d7Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 84972b676d7Smrg ;; 85072b676d7Smrg pentium4-*) 85172b676d7Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 85272b676d7Smrg ;; 85372b676d7Smrg pn) 85472b676d7Smrg basic_machine=pn-gould 85572b676d7Smrg ;; 85672b676d7Smrg power) basic_machine=power-ibm 85772b676d7Smrg ;; 85872b676d7Smrg ppc) basic_machine=powerpc-unknown 85972b676d7Smrg ;; 86072b676d7Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 86172b676d7Smrg ;; 86272b676d7Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 86372b676d7Smrg basic_machine=powerpcle-unknown 86472b676d7Smrg ;; 86572b676d7Smrg ppcle-* | powerpclittle-*) 86672b676d7Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 86772b676d7Smrg ;; 86872b676d7Smrg ppc64) basic_machine=powerpc64-unknown 86972b676d7Smrg ;; 87072b676d7Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 87172b676d7Smrg ;; 87272b676d7Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 87372b676d7Smrg basic_machine=powerpc64le-unknown 87472b676d7Smrg ;; 87572b676d7Smrg ppc64le-* | powerpc64little-*) 87672b676d7Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 87772b676d7Smrg ;; 87872b676d7Smrg ps2) 87972b676d7Smrg basic_machine=i386-ibm 88072b676d7Smrg ;; 88172b676d7Smrg pw32) 88272b676d7Smrg basic_machine=i586-unknown 88372b676d7Smrg os=-pw32 88472b676d7Smrg ;; 88572b676d7Smrg rdos) 88672b676d7Smrg basic_machine=i386-pc 88772b676d7Smrg os=-rdos 88872b676d7Smrg ;; 88972b676d7Smrg rom68k) 89072b676d7Smrg basic_machine=m68k-rom68k 89172b676d7Smrg os=-coff 89272b676d7Smrg ;; 89372b676d7Smrg rm[46]00) 89472b676d7Smrg basic_machine=mips-siemens 89572b676d7Smrg ;; 89672b676d7Smrg rtpc | rtpc-*) 89772b676d7Smrg basic_machine=romp-ibm 89872b676d7Smrg ;; 89972b676d7Smrg s390 | s390-*) 90072b676d7Smrg basic_machine=s390-ibm 90172b676d7Smrg ;; 90272b676d7Smrg s390x | s390x-*) 90372b676d7Smrg basic_machine=s390x-ibm 90472b676d7Smrg ;; 90572b676d7Smrg sa29200) 90672b676d7Smrg basic_machine=a29k-amd 90772b676d7Smrg os=-udi 90872b676d7Smrg ;; 90972b676d7Smrg sb1) 91072b676d7Smrg basic_machine=mipsisa64sb1-unknown 91172b676d7Smrg ;; 91272b676d7Smrg sb1el) 91372b676d7Smrg basic_machine=mipsisa64sb1el-unknown 91472b676d7Smrg ;; 91572b676d7Smrg sei) 91672b676d7Smrg basic_machine=mips-sei 91772b676d7Smrg os=-seiux 91872b676d7Smrg ;; 91972b676d7Smrg sequent) 92072b676d7Smrg basic_machine=i386-sequent 92172b676d7Smrg ;; 92272b676d7Smrg sh) 92372b676d7Smrg basic_machine=sh-hitachi 92472b676d7Smrg os=-hms 92572b676d7Smrg ;; 92672b676d7Smrg sh64) 92772b676d7Smrg basic_machine=sh64-unknown 92872b676d7Smrg ;; 92972b676d7Smrg sparclite-wrs | simso-wrs) 93072b676d7Smrg basic_machine=sparclite-wrs 93172b676d7Smrg os=-vxworks 93272b676d7Smrg ;; 93372b676d7Smrg sps7) 93472b676d7Smrg basic_machine=m68k-bull 93572b676d7Smrg os=-sysv2 93672b676d7Smrg ;; 93772b676d7Smrg spur) 93872b676d7Smrg basic_machine=spur-unknown 93972b676d7Smrg ;; 94072b676d7Smrg st2000) 94172b676d7Smrg basic_machine=m68k-tandem 94272b676d7Smrg ;; 94372b676d7Smrg stratus) 94472b676d7Smrg basic_machine=i860-stratus 94572b676d7Smrg os=-sysv4 94672b676d7Smrg ;; 94772b676d7Smrg sun2) 94872b676d7Smrg basic_machine=m68000-sun 94972b676d7Smrg ;; 95072b676d7Smrg sun2os3) 95172b676d7Smrg basic_machine=m68000-sun 95272b676d7Smrg os=-sunos3 95372b676d7Smrg ;; 95472b676d7Smrg sun2os4) 95572b676d7Smrg basic_machine=m68000-sun 95672b676d7Smrg os=-sunos4 95772b676d7Smrg ;; 95872b676d7Smrg sun3os3) 95972b676d7Smrg basic_machine=m68k-sun 96072b676d7Smrg os=-sunos3 96172b676d7Smrg ;; 96272b676d7Smrg sun3os4) 96372b676d7Smrg basic_machine=m68k-sun 96472b676d7Smrg os=-sunos4 96572b676d7Smrg ;; 96672b676d7Smrg sun4os3) 96772b676d7Smrg basic_machine=sparc-sun 96872b676d7Smrg os=-sunos3 96972b676d7Smrg ;; 97072b676d7Smrg sun4os4) 97172b676d7Smrg basic_machine=sparc-sun 97272b676d7Smrg os=-sunos4 97372b676d7Smrg ;; 97472b676d7Smrg sun4sol2) 97572b676d7Smrg basic_machine=sparc-sun 97672b676d7Smrg os=-solaris2 97772b676d7Smrg ;; 97872b676d7Smrg sun3 | sun3-*) 97972b676d7Smrg basic_machine=m68k-sun 98072b676d7Smrg ;; 98172b676d7Smrg sun4) 98272b676d7Smrg basic_machine=sparc-sun 98372b676d7Smrg ;; 98472b676d7Smrg sun386 | sun386i | roadrunner) 98572b676d7Smrg basic_machine=i386-sun 98672b676d7Smrg ;; 98772b676d7Smrg sv1) 98872b676d7Smrg basic_machine=sv1-cray 98972b676d7Smrg os=-unicos 99072b676d7Smrg ;; 99172b676d7Smrg symmetry) 99272b676d7Smrg basic_machine=i386-sequent 99372b676d7Smrg os=-dynix 99472b676d7Smrg ;; 99572b676d7Smrg t3e) 99672b676d7Smrg basic_machine=alphaev5-cray 99772b676d7Smrg os=-unicos 99872b676d7Smrg ;; 99972b676d7Smrg t90) 100072b676d7Smrg basic_machine=t90-cray 100172b676d7Smrg os=-unicos 100272b676d7Smrg ;; 100372b676d7Smrg tic54x | c54x*) 100472b676d7Smrg basic_machine=tic54x-unknown 100572b676d7Smrg os=-coff 100672b676d7Smrg ;; 100772b676d7Smrg tic55x | c55x*) 100872b676d7Smrg basic_machine=tic55x-unknown 100972b676d7Smrg os=-coff 101072b676d7Smrg ;; 101172b676d7Smrg tic6x | c6x*) 101272b676d7Smrg basic_machine=tic6x-unknown 101372b676d7Smrg os=-coff 101472b676d7Smrg ;; 101572b676d7Smrg tx39) 101672b676d7Smrg basic_machine=mipstx39-unknown 101772b676d7Smrg ;; 101872b676d7Smrg tx39el) 101972b676d7Smrg basic_machine=mipstx39el-unknown 102072b676d7Smrg ;; 102172b676d7Smrg toad1) 102272b676d7Smrg basic_machine=pdp10-xkl 102372b676d7Smrg os=-tops20 102472b676d7Smrg ;; 102572b676d7Smrg tower | tower-32) 102672b676d7Smrg basic_machine=m68k-ncr 102772b676d7Smrg ;; 102872b676d7Smrg tpf) 102972b676d7Smrg basic_machine=s390x-ibm 103072b676d7Smrg os=-tpf 103172b676d7Smrg ;; 103272b676d7Smrg udi29k) 103372b676d7Smrg basic_machine=a29k-amd 103472b676d7Smrg os=-udi 103572b676d7Smrg ;; 103672b676d7Smrg ultra3) 103772b676d7Smrg basic_machine=a29k-nyu 103872b676d7Smrg os=-sym1 103972b676d7Smrg ;; 104072b676d7Smrg v810 | necv810) 104172b676d7Smrg basic_machine=v810-nec 104272b676d7Smrg os=-none 104372b676d7Smrg ;; 104472b676d7Smrg vaxv) 104572b676d7Smrg basic_machine=vax-dec 104672b676d7Smrg os=-sysv 104772b676d7Smrg ;; 104872b676d7Smrg vms) 104972b676d7Smrg basic_machine=vax-dec 105072b676d7Smrg os=-vms 105172b676d7Smrg ;; 105272b676d7Smrg vpp*|vx|vx-*) 105372b676d7Smrg basic_machine=f301-fujitsu 105472b676d7Smrg ;; 105572b676d7Smrg vxworks960) 105672b676d7Smrg basic_machine=i960-wrs 105772b676d7Smrg os=-vxworks 105872b676d7Smrg ;; 105972b676d7Smrg vxworks68) 106072b676d7Smrg basic_machine=m68k-wrs 106172b676d7Smrg os=-vxworks 106272b676d7Smrg ;; 106372b676d7Smrg vxworks29k) 106472b676d7Smrg basic_machine=a29k-wrs 106572b676d7Smrg os=-vxworks 106672b676d7Smrg ;; 106772b676d7Smrg w65*) 106872b676d7Smrg basic_machine=w65-wdc 106972b676d7Smrg os=-none 107072b676d7Smrg ;; 107172b676d7Smrg w89k-*) 107272b676d7Smrg basic_machine=hppa1.1-winbond 107372b676d7Smrg os=-proelf 107472b676d7Smrg ;; 107572b676d7Smrg xbox) 107672b676d7Smrg basic_machine=i686-pc 107772b676d7Smrg os=-mingw32 107872b676d7Smrg ;; 107972b676d7Smrg xps | xps100) 108072b676d7Smrg basic_machine=xps100-honeywell 108172b676d7Smrg ;; 108272b676d7Smrg ymp) 108372b676d7Smrg basic_machine=ymp-cray 108472b676d7Smrg os=-unicos 108572b676d7Smrg ;; 108672b676d7Smrg z8k-*-coff) 108772b676d7Smrg basic_machine=z8k-unknown 108872b676d7Smrg os=-sim 108972b676d7Smrg ;; 109072b676d7Smrg none) 109172b676d7Smrg basic_machine=none-none 109272b676d7Smrg os=-none 109372b676d7Smrg ;; 109472b676d7Smrg 109572b676d7Smrg# Here we handle the default manufacturer of certain CPU types. It is in 109672b676d7Smrg# some cases the only manufacturer, in others, it is the most popular. 109772b676d7Smrg w89k) 109872b676d7Smrg basic_machine=hppa1.1-winbond 109972b676d7Smrg ;; 110072b676d7Smrg op50n) 110172b676d7Smrg basic_machine=hppa1.1-oki 110272b676d7Smrg ;; 110372b676d7Smrg op60c) 110472b676d7Smrg basic_machine=hppa1.1-oki 110572b676d7Smrg ;; 110672b676d7Smrg romp) 110772b676d7Smrg basic_machine=romp-ibm 110872b676d7Smrg ;; 110972b676d7Smrg mmix) 111072b676d7Smrg basic_machine=mmix-knuth 111172b676d7Smrg ;; 111272b676d7Smrg rs6000) 111372b676d7Smrg basic_machine=rs6000-ibm 111472b676d7Smrg ;; 111572b676d7Smrg vax) 111672b676d7Smrg basic_machine=vax-dec 111772b676d7Smrg ;; 111872b676d7Smrg pdp10) 111972b676d7Smrg # there are many clones, so DEC is not a safe bet 112072b676d7Smrg basic_machine=pdp10-unknown 112172b676d7Smrg ;; 112272b676d7Smrg pdp11) 112372b676d7Smrg basic_machine=pdp11-dec 112472b676d7Smrg ;; 112572b676d7Smrg we32k) 112672b676d7Smrg basic_machine=we32k-att 112772b676d7Smrg ;; 112872b676d7Smrg sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 112972b676d7Smrg basic_machine=sh-unknown 113072b676d7Smrg ;; 113172b676d7Smrg sparc | sparcv8 | sparcv9 | sparcv9b) 113272b676d7Smrg basic_machine=sparc-sun 113372b676d7Smrg ;; 113472b676d7Smrg cydra) 113572b676d7Smrg basic_machine=cydra-cydrome 113672b676d7Smrg ;; 113772b676d7Smrg orion) 113872b676d7Smrg basic_machine=orion-highlevel 113972b676d7Smrg ;; 114072b676d7Smrg orion105) 114172b676d7Smrg basic_machine=clipper-highlevel 114272b676d7Smrg ;; 114372b676d7Smrg mac | mpw | mac-mpw) 114472b676d7Smrg basic_machine=m68k-apple 114572b676d7Smrg ;; 114672b676d7Smrg pmac | pmac-mpw) 114772b676d7Smrg basic_machine=powerpc-apple 114872b676d7Smrg ;; 114972b676d7Smrg *-unknown) 115072b676d7Smrg # Make sure to match an already-canonicalized machine name. 115172b676d7Smrg ;; 115272b676d7Smrg *) 115372b676d7Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 115472b676d7Smrg exit 1 115572b676d7Smrg ;; 115672b676d7Smrgesac 115772b676d7Smrg 115872b676d7Smrg# Here we canonicalize certain aliases for manufacturers. 115972b676d7Smrgcase $basic_machine in 116072b676d7Smrg *-digital*) 116172b676d7Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 116272b676d7Smrg ;; 116372b676d7Smrg *-commodore*) 116472b676d7Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 116572b676d7Smrg ;; 116672b676d7Smrg *) 116772b676d7Smrg ;; 116872b676d7Smrgesac 116972b676d7Smrg 117072b676d7Smrg# Decode manufacturer-specific aliases for certain operating systems. 117172b676d7Smrg 117272b676d7Smrgif [ x"$os" != x"" ] 117372b676d7Smrgthen 117472b676d7Smrgcase $os in 117572b676d7Smrg # First match some system type aliases 117672b676d7Smrg # that might get confused with valid system types. 117772b676d7Smrg # -solaris* is a basic system type, with this one exception. 117872b676d7Smrg -solaris1 | -solaris1.*) 117972b676d7Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 118072b676d7Smrg ;; 118172b676d7Smrg -solaris) 118272b676d7Smrg os=-solaris2 118372b676d7Smrg ;; 118472b676d7Smrg -svr4*) 118572b676d7Smrg os=-sysv4 118672b676d7Smrg ;; 118772b676d7Smrg -unixware*) 118872b676d7Smrg os=-sysv4.2uw 118972b676d7Smrg ;; 119072b676d7Smrg -gnu/linux*) 119172b676d7Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 119272b676d7Smrg ;; 119372b676d7Smrg # First accept the basic system types. 119472b676d7Smrg # The portable systems comes first. 119572b676d7Smrg # Each alternative MUST END IN A *, to match a version number. 119672b676d7Smrg # -sysv* is not here because it comes later, after sysvr4. 119772b676d7Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 119872b676d7Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 119972b676d7Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 120072b676d7Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 120172b676d7Smrg | -aos* \ 120272b676d7Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 120372b676d7Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 120472b676d7Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 120572b676d7Smrg | -openbsd* | -solidbsd* \ 120672b676d7Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 120772b676d7Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 120872b676d7Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 120972b676d7Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 121072b676d7Smrg | -chorusos* | -chorusrdb* \ 121172b676d7Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 121272b676d7Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 121372b676d7Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 121472b676d7Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 121572b676d7Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 121672b676d7Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 121772b676d7Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 121872b676d7Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 121972b676d7Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 122072b676d7Smrg | -skyos* | -haiku* | -rdos*) 122172b676d7Smrg # Remember, each alternative MUST END IN *, to match a version number. 122272b676d7Smrg ;; 122372b676d7Smrg -qnx*) 122472b676d7Smrg case $basic_machine in 122572b676d7Smrg x86-* | i*86-*) 122672b676d7Smrg ;; 122772b676d7Smrg *) 122872b676d7Smrg os=-nto$os 122972b676d7Smrg ;; 123072b676d7Smrg esac 123172b676d7Smrg ;; 123272b676d7Smrg -nto-qnx*) 123372b676d7Smrg ;; 123472b676d7Smrg -nto*) 123572b676d7Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 123672b676d7Smrg ;; 123772b676d7Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 123872b676d7Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 123972b676d7Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 124072b676d7Smrg ;; 124172b676d7Smrg -mac*) 124272b676d7Smrg os=`echo $os | sed -e 's|mac|macos|'` 124372b676d7Smrg ;; 124472b676d7Smrg -linux-dietlibc) 124572b676d7Smrg os=-linux-dietlibc 124672b676d7Smrg ;; 124772b676d7Smrg -linux*) 124872b676d7Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 124972b676d7Smrg ;; 125072b676d7Smrg -sunos5*) 125172b676d7Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 125272b676d7Smrg ;; 125372b676d7Smrg -sunos6*) 125472b676d7Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 125572b676d7Smrg ;; 125672b676d7Smrg -opened*) 125772b676d7Smrg os=-openedition 125872b676d7Smrg ;; 125972b676d7Smrg -os400*) 126072b676d7Smrg os=-os400 126172b676d7Smrg ;; 126272b676d7Smrg -wince*) 126372b676d7Smrg os=-wince 126472b676d7Smrg ;; 126572b676d7Smrg -osfrose*) 126672b676d7Smrg os=-osfrose 126772b676d7Smrg ;; 126872b676d7Smrg -osf*) 126972b676d7Smrg os=-osf 127072b676d7Smrg ;; 127172b676d7Smrg -utek*) 127272b676d7Smrg os=-bsd 127372b676d7Smrg ;; 127472b676d7Smrg -dynix*) 127572b676d7Smrg os=-bsd 127672b676d7Smrg ;; 127772b676d7Smrg -acis*) 127872b676d7Smrg os=-aos 127972b676d7Smrg ;; 128072b676d7Smrg -atheos*) 128172b676d7Smrg os=-atheos 128272b676d7Smrg ;; 128372b676d7Smrg -syllable*) 128472b676d7Smrg os=-syllable 128572b676d7Smrg ;; 128672b676d7Smrg -386bsd) 128772b676d7Smrg os=-bsd 128872b676d7Smrg ;; 128972b676d7Smrg -ctix* | -uts*) 129072b676d7Smrg os=-sysv 129172b676d7Smrg ;; 129272b676d7Smrg -nova*) 129372b676d7Smrg os=-rtmk-nova 129472b676d7Smrg ;; 129572b676d7Smrg -ns2 ) 129672b676d7Smrg os=-nextstep2 129772b676d7Smrg ;; 129872b676d7Smrg -nsk*) 129972b676d7Smrg os=-nsk 130072b676d7Smrg ;; 130172b676d7Smrg # Preserve the version number of sinix5. 130272b676d7Smrg -sinix5.*) 130372b676d7Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 130472b676d7Smrg ;; 130572b676d7Smrg -sinix*) 130672b676d7Smrg os=-sysv4 130772b676d7Smrg ;; 130872b676d7Smrg -tpf*) 130972b676d7Smrg os=-tpf 131072b676d7Smrg ;; 131172b676d7Smrg -triton*) 131272b676d7Smrg os=-sysv3 131372b676d7Smrg ;; 131472b676d7Smrg -oss*) 131572b676d7Smrg os=-sysv3 131672b676d7Smrg ;; 131772b676d7Smrg -svr4) 131872b676d7Smrg os=-sysv4 131972b676d7Smrg ;; 132072b676d7Smrg -svr3) 132172b676d7Smrg os=-sysv3 132272b676d7Smrg ;; 132372b676d7Smrg -sysvr4) 132472b676d7Smrg os=-sysv4 132572b676d7Smrg ;; 132672b676d7Smrg # This must come after -sysvr4. 132772b676d7Smrg -sysv*) 132872b676d7Smrg ;; 132972b676d7Smrg -ose*) 133072b676d7Smrg os=-ose 133172b676d7Smrg ;; 133272b676d7Smrg -es1800*) 133372b676d7Smrg os=-ose 133472b676d7Smrg ;; 133572b676d7Smrg -xenix) 133672b676d7Smrg os=-xenix 133772b676d7Smrg ;; 133872b676d7Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 133972b676d7Smrg os=-mint 134072b676d7Smrg ;; 134172b676d7Smrg -aros*) 134272b676d7Smrg os=-aros 134372b676d7Smrg ;; 134472b676d7Smrg -kaos*) 134572b676d7Smrg os=-kaos 134672b676d7Smrg ;; 134772b676d7Smrg -zvmoe) 134872b676d7Smrg os=-zvmoe 134972b676d7Smrg ;; 135072b676d7Smrg -none) 135172b676d7Smrg ;; 135272b676d7Smrg *) 135372b676d7Smrg # Get rid of the `-' at the beginning of $os. 135472b676d7Smrg os=`echo $os | sed 's/[^-]*-//'` 135572b676d7Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 135672b676d7Smrg exit 1 135772b676d7Smrg ;; 135872b676d7Smrgesac 135972b676d7Smrgelse 136072b676d7Smrg 136172b676d7Smrg# Here we handle the default operating systems that come with various machines. 136272b676d7Smrg# The value should be what the vendor currently ships out the door with their 136372b676d7Smrg# machine or put another way, the most popular os provided with the machine. 136472b676d7Smrg 136572b676d7Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 136672b676d7Smrg# "-sun"), then you have to tell the case statement up towards the top 136772b676d7Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 136872b676d7Smrg# will signal an error saying that MANUFACTURER isn't an operating 136972b676d7Smrg# system, and we'll never get to this point. 137072b676d7Smrg 137172b676d7Smrgcase $basic_machine in 137272b676d7Smrg *-acorn) 137372b676d7Smrg os=-riscix1.2 137472b676d7Smrg ;; 137572b676d7Smrg arm*-rebel) 137672b676d7Smrg os=-linux 137772b676d7Smrg ;; 137872b676d7Smrg arm*-semi) 137972b676d7Smrg os=-aout 138072b676d7Smrg ;; 138172b676d7Smrg c4x-* | tic4x-*) 138272b676d7Smrg os=-coff 138372b676d7Smrg ;; 138472b676d7Smrg # This must come before the *-dec entry. 138572b676d7Smrg pdp10-*) 138672b676d7Smrg os=-tops20 138772b676d7Smrg ;; 138872b676d7Smrg pdp11-*) 138972b676d7Smrg os=-none 139072b676d7Smrg ;; 139172b676d7Smrg *-dec | vax-*) 139272b676d7Smrg os=-ultrix4.2 139372b676d7Smrg ;; 139472b676d7Smrg m68*-apollo) 139572b676d7Smrg os=-domain 139672b676d7Smrg ;; 139772b676d7Smrg i386-sun) 139872b676d7Smrg os=-sunos4.0.2 139972b676d7Smrg ;; 140072b676d7Smrg m68000-sun) 140172b676d7Smrg os=-sunos3 140272b676d7Smrg # This also exists in the configure program, but was not the 140372b676d7Smrg # default. 140472b676d7Smrg # os=-sunos4 140572b676d7Smrg ;; 140672b676d7Smrg m68*-cisco) 140772b676d7Smrg os=-aout 140872b676d7Smrg ;; 140972b676d7Smrg mips*-cisco) 141072b676d7Smrg os=-elf 141172b676d7Smrg ;; 141272b676d7Smrg mips*-*) 141372b676d7Smrg os=-elf 141472b676d7Smrg ;; 141572b676d7Smrg or32-*) 141672b676d7Smrg os=-coff 141772b676d7Smrg ;; 141872b676d7Smrg *-tti) # must be before sparc entry or we get the wrong os. 141972b676d7Smrg os=-sysv3 142072b676d7Smrg ;; 142172b676d7Smrg sparc-* | *-sun) 142272b676d7Smrg os=-sunos4.1.1 142372b676d7Smrg ;; 142472b676d7Smrg *-be) 142572b676d7Smrg os=-beos 142672b676d7Smrg ;; 142772b676d7Smrg *-haiku) 142872b676d7Smrg os=-haiku 142972b676d7Smrg ;; 143072b676d7Smrg *-ibm) 143172b676d7Smrg os=-aix 143272b676d7Smrg ;; 143372b676d7Smrg *-knuth) 143472b676d7Smrg os=-mmixware 143572b676d7Smrg ;; 143672b676d7Smrg *-wec) 143772b676d7Smrg os=-proelf 143872b676d7Smrg ;; 143972b676d7Smrg *-winbond) 144072b676d7Smrg os=-proelf 144172b676d7Smrg ;; 144272b676d7Smrg *-oki) 144372b676d7Smrg os=-proelf 144472b676d7Smrg ;; 144572b676d7Smrg *-hp) 144672b676d7Smrg os=-hpux 144772b676d7Smrg ;; 144872b676d7Smrg *-hitachi) 144972b676d7Smrg os=-hiux 145072b676d7Smrg ;; 145172b676d7Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 145272b676d7Smrg os=-sysv 145372b676d7Smrg ;; 145472b676d7Smrg *-cbm) 145572b676d7Smrg os=-amigaos 145672b676d7Smrg ;; 145772b676d7Smrg *-dg) 145872b676d7Smrg os=-dgux 145972b676d7Smrg ;; 146072b676d7Smrg *-dolphin) 146172b676d7Smrg os=-sysv3 146272b676d7Smrg ;; 146372b676d7Smrg m68k-ccur) 146472b676d7Smrg os=-rtu 146572b676d7Smrg ;; 146672b676d7Smrg m88k-omron*) 146772b676d7Smrg os=-luna 146872b676d7Smrg ;; 146972b676d7Smrg *-next ) 147072b676d7Smrg os=-nextstep 147172b676d7Smrg ;; 147272b676d7Smrg *-sequent) 147372b676d7Smrg os=-ptx 147472b676d7Smrg ;; 147572b676d7Smrg *-crds) 147672b676d7Smrg os=-unos 147772b676d7Smrg ;; 147872b676d7Smrg *-ns) 147972b676d7Smrg os=-genix 148072b676d7Smrg ;; 148172b676d7Smrg i370-*) 148272b676d7Smrg os=-mvs 148372b676d7Smrg ;; 148472b676d7Smrg *-next) 148572b676d7Smrg os=-nextstep3 148672b676d7Smrg ;; 148772b676d7Smrg *-gould) 148872b676d7Smrg os=-sysv 148972b676d7Smrg ;; 149072b676d7Smrg *-highlevel) 149172b676d7Smrg os=-bsd 149272b676d7Smrg ;; 149372b676d7Smrg *-encore) 149472b676d7Smrg os=-bsd 149572b676d7Smrg ;; 149672b676d7Smrg *-sgi) 149772b676d7Smrg os=-irix 149872b676d7Smrg ;; 149972b676d7Smrg *-siemens) 150072b676d7Smrg os=-sysv4 150172b676d7Smrg ;; 150272b676d7Smrg *-masscomp) 150372b676d7Smrg os=-rtu 150472b676d7Smrg ;; 150572b676d7Smrg f30[01]-fujitsu | f700-fujitsu) 150672b676d7Smrg os=-uxpv 150772b676d7Smrg ;; 150872b676d7Smrg *-rom68k) 150972b676d7Smrg os=-coff 151072b676d7Smrg ;; 151172b676d7Smrg *-*bug) 151272b676d7Smrg os=-coff 151372b676d7Smrg ;; 151472b676d7Smrg *-apple) 151572b676d7Smrg os=-macos 151672b676d7Smrg ;; 151772b676d7Smrg *-atari*) 151872b676d7Smrg os=-mint 151972b676d7Smrg ;; 152072b676d7Smrg *) 152172b676d7Smrg os=-none 152272b676d7Smrg ;; 152372b676d7Smrgesac 152472b676d7Smrgfi 152572b676d7Smrg 152672b676d7Smrg# Here we handle the case where we know the os, and the CPU type, but not the 152772b676d7Smrg# manufacturer. We pick the logical manufacturer. 152872b676d7Smrgvendor=unknown 152972b676d7Smrgcase $basic_machine in 153072b676d7Smrg *-unknown) 153172b676d7Smrg case $os in 153272b676d7Smrg -riscix*) 153372b676d7Smrg vendor=acorn 153472b676d7Smrg ;; 153572b676d7Smrg -sunos*) 153672b676d7Smrg vendor=sun 153772b676d7Smrg ;; 153872b676d7Smrg -aix*) 153972b676d7Smrg vendor=ibm 154072b676d7Smrg ;; 154172b676d7Smrg -beos*) 154272b676d7Smrg vendor=be 154372b676d7Smrg ;; 154472b676d7Smrg -hpux*) 154572b676d7Smrg vendor=hp 154672b676d7Smrg ;; 154772b676d7Smrg -mpeix*) 154872b676d7Smrg vendor=hp 154972b676d7Smrg ;; 155072b676d7Smrg -hiux*) 155172b676d7Smrg vendor=hitachi 155272b676d7Smrg ;; 155372b676d7Smrg -unos*) 155472b676d7Smrg vendor=crds 155572b676d7Smrg ;; 155672b676d7Smrg -dgux*) 155772b676d7Smrg vendor=dg 155872b676d7Smrg ;; 155972b676d7Smrg -luna*) 156072b676d7Smrg vendor=omron 156172b676d7Smrg ;; 156272b676d7Smrg -genix*) 156372b676d7Smrg vendor=ns 156472b676d7Smrg ;; 156572b676d7Smrg -mvs* | -opened*) 156672b676d7Smrg vendor=ibm 156772b676d7Smrg ;; 156872b676d7Smrg -os400*) 156972b676d7Smrg vendor=ibm 157072b676d7Smrg ;; 157172b676d7Smrg -ptx*) 157272b676d7Smrg vendor=sequent 157372b676d7Smrg ;; 157472b676d7Smrg -tpf*) 157572b676d7Smrg vendor=ibm 157672b676d7Smrg ;; 157772b676d7Smrg -vxsim* | -vxworks* | -windiss*) 157872b676d7Smrg vendor=wrs 157972b676d7Smrg ;; 158072b676d7Smrg -aux*) 158172b676d7Smrg vendor=apple 158272b676d7Smrg ;; 158372b676d7Smrg -hms*) 158472b676d7Smrg vendor=hitachi 158572b676d7Smrg ;; 158672b676d7Smrg -mpw* | -macos*) 158772b676d7Smrg vendor=apple 158872b676d7Smrg ;; 158972b676d7Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 159072b676d7Smrg vendor=atari 159172b676d7Smrg ;; 159272b676d7Smrg -vos*) 159372b676d7Smrg vendor=stratus 159472b676d7Smrg ;; 159572b676d7Smrg esac 159672b676d7Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 159772b676d7Smrg ;; 159872b676d7Smrgesac 159972b676d7Smrg 160072b676d7Smrgecho $basic_machine$os 160172b676d7Smrgexit 160272b676d7Smrg 160372b676d7Smrg# Local variables: 160472b676d7Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 160572b676d7Smrg# time-stamp-start: "timestamp='" 160672b676d7Smrg# time-stamp-format: "%:y-%02m-%02d" 160772b676d7Smrg# time-stamp-end: "'" 160872b676d7Smrg# End: 1609