config.sub revision 93493779
16c321187Smrg#! /bin/sh 26c321187Smrg# Configuration validation subroutine script. 36c321187Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 493493779Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 593493779Smrg# Free Software Foundation, Inc. 66c321187Smrg 793493779Smrgtimestamp='2008-01-16' 86c321187Smrg 96c321187Smrg# This file is (in principle) common to ALL GNU software. 106c321187Smrg# The presence of a machine in this file suggests that SOME GNU software 116c321187Smrg# can handle that machine. It does not imply ALL GNU software can. 126c321187Smrg# 136c321187Smrg# This file is free software; you can redistribute it and/or modify 146c321187Smrg# it under the terms of the GNU General Public License as published by 156c321187Smrg# the Free Software Foundation; either version 2 of the License, or 166c321187Smrg# (at your option) any later version. 176c321187Smrg# 186c321187Smrg# This program is distributed in the hope that it will be useful, 196c321187Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 206c321187Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 216c321187Smrg# GNU General Public License for more details. 226c321187Smrg# 236c321187Smrg# You should have received a copy of the GNU General Public License 246c321187Smrg# along with this program; if not, write to the Free Software 256c321187Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 266c321187Smrg# 02110-1301, USA. 276c321187Smrg# 286c321187Smrg# As a special exception to the GNU General Public License, if you 296c321187Smrg# distribute this file as part of a program that contains a 306c321187Smrg# configuration script generated by Autoconf, you may include it under 316c321187Smrg# the same distribution terms that you use for the rest of that program. 326c321187Smrg 336c321187Smrg 346c321187Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 356c321187Smrg# diff and a properly formatted ChangeLog entry. 366c321187Smrg# 376c321187Smrg# Configuration subroutine to validate and canonicalize a configuration type. 386c321187Smrg# Supply the specified configuration type as an argument. 396c321187Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 406c321187Smrg# Otherwise, we print the canonical config type on stdout and succeed. 416c321187Smrg 426c321187Smrg# This file is supposed to be the same for all GNU packages 436c321187Smrg# and recognize all the CPU types, system types and aliases 446c321187Smrg# that are meaningful with *any* GNU software. 456c321187Smrg# Each package is responsible for reporting which valid configurations 466c321187Smrg# it does not support. The user should be able to distinguish 476c321187Smrg# a failure to support a valid configuration from a meaningless 486c321187Smrg# configuration. 496c321187Smrg 506c321187Smrg# The goal of this file is to map all the various variations of a given 516c321187Smrg# machine specification into a single specification in the form: 526c321187Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 536c321187Smrg# or in some cases, the newer four-part form: 546c321187Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 556c321187Smrg# It is wrong to echo any other type of specification. 566c321187Smrg 576c321187Smrgme=`echo "$0" | sed -e 's,.*/,,'` 586c321187Smrg 596c321187Smrgusage="\ 606c321187SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 616c321187Smrg $0 [OPTION] ALIAS 626c321187Smrg 636c321187SmrgCanonicalize a configuration name. 646c321187Smrg 656c321187SmrgOperation modes: 666c321187Smrg -h, --help print this help, then exit 676c321187Smrg -t, --time-stamp print date of last modification, then exit 686c321187Smrg -v, --version print version number, then exit 696c321187Smrg 706c321187SmrgReport bugs and patches to <config-patches@gnu.org>." 716c321187Smrg 726c321187Smrgversion="\ 736c321187SmrgGNU config.sub ($timestamp) 746c321187Smrg 7593493779SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 7693493779Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 776c321187Smrg 786c321187SmrgThis is free software; see the source for copying conditions. There is NO 796c321187Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 806c321187Smrg 816c321187Smrghelp=" 826c321187SmrgTry \`$me --help' for more information." 836c321187Smrg 846c321187Smrg# Parse command line 856c321187Smrgwhile test $# -gt 0 ; do 866c321187Smrg case $1 in 876c321187Smrg --time-stamp | --time* | -t ) 886c321187Smrg echo "$timestamp" ; exit ;; 896c321187Smrg --version | -v ) 906c321187Smrg echo "$version" ; exit ;; 916c321187Smrg --help | --h* | -h ) 926c321187Smrg echo "$usage"; exit ;; 936c321187Smrg -- ) # Stop option processing 946c321187Smrg shift; break ;; 956c321187Smrg - ) # Use stdin as input. 966c321187Smrg break ;; 976c321187Smrg -* ) 986c321187Smrg echo "$me: invalid option $1$help" 996c321187Smrg exit 1 ;; 1006c321187Smrg 1016c321187Smrg *local*) 1026c321187Smrg # First pass through any local machine types. 1036c321187Smrg echo $1 1046c321187Smrg exit ;; 1056c321187Smrg 1066c321187Smrg * ) 1076c321187Smrg break ;; 1086c321187Smrg esac 1096c321187Smrgdone 1106c321187Smrg 1116c321187Smrgcase $# in 1126c321187Smrg 0) echo "$me: missing argument$help" >&2 1136c321187Smrg exit 1;; 1146c321187Smrg 1) ;; 1156c321187Smrg *) echo "$me: too many arguments$help" >&2 1166c321187Smrg exit 1;; 1176c321187Smrgesac 1186c321187Smrg 1196c321187Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 1206c321187Smrg# Here we must recognize all the valid KERNEL-OS combinations. 1216c321187Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 1226c321187Smrgcase $maybe_os in 1236c321187Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 1246c321187Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 1256c321187Smrg storm-chaos* | os2-emx* | rtmk-nova*) 1266c321187Smrg os=-$maybe_os 1276c321187Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 1286c321187Smrg ;; 1296c321187Smrg *) 1306c321187Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 1316c321187Smrg if [ $basic_machine != $1 ] 1326c321187Smrg then os=`echo $1 | sed 's/.*-/-/'` 1336c321187Smrg else os=; fi 1346c321187Smrg ;; 1356c321187Smrgesac 1366c321187Smrg 1376c321187Smrg### Let's recognize common machines as not being operating systems so 1386c321187Smrg### that things like config.sub decstation-3100 work. We also 1396c321187Smrg### recognize some manufacturers as not being operating systems, so we 1406c321187Smrg### can provide default operating systems below. 1416c321187Smrgcase $os in 1426c321187Smrg -sun*os*) 1436c321187Smrg # Prevent following clause from handling this invalid input. 1446c321187Smrg ;; 1456c321187Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 1466c321187Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 1476c321187Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 1486c321187Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 1496c321187Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 1506c321187Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 1516c321187Smrg -apple | -axis | -knuth | -cray) 1526c321187Smrg os= 1536c321187Smrg basic_machine=$1 1546c321187Smrg ;; 1556c321187Smrg -sim | -cisco | -oki | -wec | -winbond) 1566c321187Smrg os= 1576c321187Smrg basic_machine=$1 1586c321187Smrg ;; 1596c321187Smrg -scout) 1606c321187Smrg ;; 1616c321187Smrg -wrs) 1626c321187Smrg os=-vxworks 1636c321187Smrg basic_machine=$1 1646c321187Smrg ;; 1656c321187Smrg -chorusos*) 1666c321187Smrg os=-chorusos 1676c321187Smrg basic_machine=$1 1686c321187Smrg ;; 1696c321187Smrg -chorusrdb) 1706c321187Smrg os=-chorusrdb 1716c321187Smrg basic_machine=$1 1726c321187Smrg ;; 1736c321187Smrg -hiux*) 1746c321187Smrg os=-hiuxwe2 1756c321187Smrg ;; 1766c321187Smrg -sco6) 1776c321187Smrg os=-sco5v6 1786c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1796c321187Smrg ;; 1806c321187Smrg -sco5) 1816c321187Smrg os=-sco3.2v5 1826c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1836c321187Smrg ;; 1846c321187Smrg -sco4) 1856c321187Smrg os=-sco3.2v4 1866c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1876c321187Smrg ;; 1886c321187Smrg -sco3.2.[4-9]*) 1896c321187Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1906c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1916c321187Smrg ;; 1926c321187Smrg -sco3.2v[4-9]*) 1936c321187Smrg # Don't forget version if it is 3.2v4 or newer. 1946c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1956c321187Smrg ;; 1966c321187Smrg -sco5v6*) 1976c321187Smrg # Don't forget version if it is 3.2v4 or newer. 1986c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1996c321187Smrg ;; 2006c321187Smrg -sco*) 2016c321187Smrg os=-sco3.2v2 2026c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2036c321187Smrg ;; 2046c321187Smrg -udk*) 2056c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2066c321187Smrg ;; 2076c321187Smrg -isc) 2086c321187Smrg os=-isc2.2 2096c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2106c321187Smrg ;; 2116c321187Smrg -clix*) 2126c321187Smrg basic_machine=clipper-intergraph 2136c321187Smrg ;; 2146c321187Smrg -isc*) 2156c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2166c321187Smrg ;; 2176c321187Smrg -lynx*) 2186c321187Smrg os=-lynxos 2196c321187Smrg ;; 2206c321187Smrg -ptx*) 2216c321187Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 2226c321187Smrg ;; 2236c321187Smrg -windowsnt*) 2246c321187Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 2256c321187Smrg ;; 2266c321187Smrg -psos*) 2276c321187Smrg os=-psos 2286c321187Smrg ;; 2296c321187Smrg -mint | -mint[0-9]*) 2306c321187Smrg basic_machine=m68k-atari 2316c321187Smrg os=-mint 2326c321187Smrg ;; 2336c321187Smrgesac 2346c321187Smrg 2356c321187Smrg# Decode aliases for certain CPU-COMPANY combinations. 2366c321187Smrgcase $basic_machine in 2376c321187Smrg # Recognize the basic CPU types without company name. 2386c321187Smrg # Some are omitted here because they have special meanings below. 2396c321187Smrg 1750a | 580 \ 2406c321187Smrg | a29k \ 2416c321187Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 2426c321187Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 2436c321187Smrg | am33_2.0 \ 24493493779Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 2456c321187Smrg | bfin \ 2466c321187Smrg | c4x | clipper \ 2476c321187Smrg | d10v | d30v | dlx | dsp16xx \ 24893493779Smrg | fido | fr30 | frv \ 2496c321187Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 2506c321187Smrg | i370 | i860 | i960 | ia64 \ 2516c321187Smrg | ip2k | iq2000 \ 25293493779Smrg | m32c | m32r | m32rle | m68000 | m68k | m88k \ 25393493779Smrg | maxq | mb | microblaze | mcore | mep \ 2546c321187Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 2556c321187Smrg | mips16 \ 2566c321187Smrg | mips64 | mips64el \ 2576c321187Smrg | mips64vr | mips64vrel \ 2586c321187Smrg | mips64orion | mips64orionel \ 2596c321187Smrg | mips64vr4100 | mips64vr4100el \ 2606c321187Smrg | mips64vr4300 | mips64vr4300el \ 2616c321187Smrg | mips64vr5000 | mips64vr5000el \ 2626c321187Smrg | mips64vr5900 | mips64vr5900el \ 2636c321187Smrg | mipsisa32 | mipsisa32el \ 2646c321187Smrg | mipsisa32r2 | mipsisa32r2el \ 2656c321187Smrg | mipsisa64 | mipsisa64el \ 2666c321187Smrg | mipsisa64r2 | mipsisa64r2el \ 2676c321187Smrg | mipsisa64sb1 | mipsisa64sb1el \ 2686c321187Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 2696c321187Smrg | mipstx39 | mipstx39el \ 2706c321187Smrg | mn10200 | mn10300 \ 2716c321187Smrg | mt \ 2726c321187Smrg | msp430 \ 27393493779Smrg | nios | nios2 \ 2746c321187Smrg | ns16k | ns32k \ 2756c321187Smrg | or32 \ 2766c321187Smrg | pdp10 | pdp11 | pj | pjl \ 2776c321187Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 2786c321187Smrg | pyramid \ 27993493779Smrg | score \ 28093493779Smrg | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 2816c321187Smrg | sh64 | sh64le \ 28293493779Smrg | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 28393493779Smrg | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 28493493779Smrg | spu | strongarm \ 2856c321187Smrg | tahoe | thumb | tic4x | tic80 | tron \ 2866c321187Smrg | v850 | v850e \ 2876c321187Smrg | we32k \ 28893493779Smrg | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 2896c321187Smrg | z8k) 2906c321187Smrg basic_machine=$basic_machine-unknown 2916c321187Smrg ;; 2926c321187Smrg m6811 | m68hc11 | m6812 | m68hc12) 2936c321187Smrg # Motorola 68HC11/12. 2946c321187Smrg basic_machine=$basic_machine-unknown 2956c321187Smrg os=-none 2966c321187Smrg ;; 2976c321187Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 2986c321187Smrg ;; 2996c321187Smrg ms1) 3006c321187Smrg basic_machine=mt-unknown 3016c321187Smrg ;; 3026c321187Smrg 3036c321187Smrg # We use `pc' rather than `unknown' 3046c321187Smrg # because (1) that's what they normally are, and 3056c321187Smrg # (2) the word "unknown" tends to confuse beginning users. 3066c321187Smrg i*86 | x86_64) 3076c321187Smrg basic_machine=$basic_machine-pc 3086c321187Smrg ;; 3096c321187Smrg # Object if more than one company name word. 3106c321187Smrg *-*-*) 3116c321187Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 3126c321187Smrg exit 1 3136c321187Smrg ;; 3146c321187Smrg # Recognize the basic CPU types with company name. 3156c321187Smrg 580-* \ 3166c321187Smrg | a29k-* \ 3176c321187Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 3186c321187Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 3196c321187Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 3206c321187Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 32193493779Smrg | avr-* | avr32-* \ 3226c321187Smrg | bfin-* | bs2000-* \ 3236c321187Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 3246c321187Smrg | clipper-* | craynv-* | cydra-* \ 3256c321187Smrg | d10v-* | d30v-* | dlx-* \ 3266c321187Smrg | elxsi-* \ 32793493779Smrg | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 3286c321187Smrg | h8300-* | h8500-* \ 3296c321187Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 3306c321187Smrg | i*86-* | i860-* | i960-* | ia64-* \ 3316c321187Smrg | ip2k-* | iq2000-* \ 33293493779Smrg | m32c-* | m32r-* | m32rle-* \ 3336c321187Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 3346c321187Smrg | m88110-* | m88k-* | maxq-* | mcore-* \ 3356c321187Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 3366c321187Smrg | mips16-* \ 3376c321187Smrg | mips64-* | mips64el-* \ 3386c321187Smrg | mips64vr-* | mips64vrel-* \ 3396c321187Smrg | mips64orion-* | mips64orionel-* \ 3406c321187Smrg | mips64vr4100-* | mips64vr4100el-* \ 3416c321187Smrg | mips64vr4300-* | mips64vr4300el-* \ 3426c321187Smrg | mips64vr5000-* | mips64vr5000el-* \ 3436c321187Smrg | mips64vr5900-* | mips64vr5900el-* \ 3446c321187Smrg | mipsisa32-* | mipsisa32el-* \ 3456c321187Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 3466c321187Smrg | mipsisa64-* | mipsisa64el-* \ 3476c321187Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 3486c321187Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 3496c321187Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 3506c321187Smrg | mipstx39-* | mipstx39el-* \ 3516c321187Smrg | mmix-* \ 3526c321187Smrg | mt-* \ 3536c321187Smrg | msp430-* \ 35493493779Smrg | nios-* | nios2-* \ 3556c321187Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 3566c321187Smrg | orion-* \ 3576c321187Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 3586c321187Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 3596c321187Smrg | pyramid-* \ 3606c321187Smrg | romp-* | rs6000-* \ 36193493779Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 3626c321187Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 36393493779Smrg | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 3646c321187Smrg | sparclite-* \ 36593493779Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 3666c321187Smrg | tahoe-* | thumb-* \ 3676c321187Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 3686c321187Smrg | tron-* \ 3696c321187Smrg | v850-* | v850e-* | vax-* \ 3706c321187Smrg | we32k-* \ 37193493779Smrg | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 37293493779Smrg | xstormy16-* | xtensa*-* \ 3736c321187Smrg | ymp-* \ 3746c321187Smrg | z8k-*) 3756c321187Smrg ;; 37693493779Smrg # Recognize the basic CPU types without company name, with glob match. 37793493779Smrg xtensa*) 37893493779Smrg basic_machine=$basic_machine-unknown 3796c321187Smrg ;; 3806c321187Smrg # Recognize the various machine names and aliases which stand 3816c321187Smrg # for a CPU type and a company and sometimes even an OS. 3826c321187Smrg 386bsd) 3836c321187Smrg basic_machine=i386-unknown 3846c321187Smrg os=-bsd 3856c321187Smrg ;; 3866c321187Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 3876c321187Smrg basic_machine=m68000-att 3886c321187Smrg ;; 3896c321187Smrg 3b*) 3906c321187Smrg basic_machine=we32k-att 3916c321187Smrg ;; 3926c321187Smrg a29khif) 3936c321187Smrg basic_machine=a29k-amd 3946c321187Smrg os=-udi 3956c321187Smrg ;; 3966c321187Smrg abacus) 3976c321187Smrg basic_machine=abacus-unknown 3986c321187Smrg ;; 3996c321187Smrg adobe68k) 4006c321187Smrg basic_machine=m68010-adobe 4016c321187Smrg os=-scout 4026c321187Smrg ;; 4036c321187Smrg alliant | fx80) 4046c321187Smrg basic_machine=fx80-alliant 4056c321187Smrg ;; 4066c321187Smrg altos | altos3068) 4076c321187Smrg basic_machine=m68k-altos 4086c321187Smrg ;; 4096c321187Smrg am29k) 4106c321187Smrg basic_machine=a29k-none 4116c321187Smrg os=-bsd 4126c321187Smrg ;; 4136c321187Smrg amd64) 4146c321187Smrg basic_machine=x86_64-pc 4156c321187Smrg ;; 4166c321187Smrg amd64-*) 4176c321187Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 4186c321187Smrg ;; 4196c321187Smrg amdahl) 4206c321187Smrg basic_machine=580-amdahl 4216c321187Smrg os=-sysv 4226c321187Smrg ;; 4236c321187Smrg amiga | amiga-*) 4246c321187Smrg basic_machine=m68k-unknown 4256c321187Smrg ;; 4266c321187Smrg amigaos | amigados) 4276c321187Smrg basic_machine=m68k-unknown 4286c321187Smrg os=-amigaos 4296c321187Smrg ;; 4306c321187Smrg amigaunix | amix) 4316c321187Smrg basic_machine=m68k-unknown 4326c321187Smrg os=-sysv4 4336c321187Smrg ;; 4346c321187Smrg apollo68) 4356c321187Smrg basic_machine=m68k-apollo 4366c321187Smrg os=-sysv 4376c321187Smrg ;; 4386c321187Smrg apollo68bsd) 4396c321187Smrg basic_machine=m68k-apollo 4406c321187Smrg os=-bsd 4416c321187Smrg ;; 4426c321187Smrg aux) 4436c321187Smrg basic_machine=m68k-apple 4446c321187Smrg os=-aux 4456c321187Smrg ;; 4466c321187Smrg balance) 4476c321187Smrg basic_machine=ns32k-sequent 4486c321187Smrg os=-dynix 4496c321187Smrg ;; 45093493779Smrg blackfin) 45193493779Smrg basic_machine=bfin-unknown 45293493779Smrg os=-linux 45393493779Smrg ;; 45493493779Smrg blackfin-*) 45593493779Smrg basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 45693493779Smrg os=-linux 45793493779Smrg ;; 4586c321187Smrg c90) 4596c321187Smrg basic_machine=c90-cray 4606c321187Smrg os=-unicos 4616c321187Smrg ;; 4626c321187Smrg convex-c1) 4636c321187Smrg basic_machine=c1-convex 4646c321187Smrg os=-bsd 4656c321187Smrg ;; 4666c321187Smrg convex-c2) 4676c321187Smrg basic_machine=c2-convex 4686c321187Smrg os=-bsd 4696c321187Smrg ;; 4706c321187Smrg convex-c32) 4716c321187Smrg basic_machine=c32-convex 4726c321187Smrg os=-bsd 4736c321187Smrg ;; 4746c321187Smrg convex-c34) 4756c321187Smrg basic_machine=c34-convex 4766c321187Smrg os=-bsd 4776c321187Smrg ;; 4786c321187Smrg convex-c38) 4796c321187Smrg basic_machine=c38-convex 4806c321187Smrg os=-bsd 4816c321187Smrg ;; 4826c321187Smrg cray | j90) 4836c321187Smrg basic_machine=j90-cray 4846c321187Smrg os=-unicos 4856c321187Smrg ;; 4866c321187Smrg craynv) 4876c321187Smrg basic_machine=craynv-cray 4886c321187Smrg os=-unicosmp 4896c321187Smrg ;; 49093493779Smrg cr16) 49193493779Smrg basic_machine=cr16-unknown 4926c321187Smrg os=-elf 4936c321187Smrg ;; 4946c321187Smrg crds | unos) 4956c321187Smrg basic_machine=m68k-crds 4966c321187Smrg ;; 4976c321187Smrg crisv32 | crisv32-* | etraxfs*) 4986c321187Smrg basic_machine=crisv32-axis 4996c321187Smrg ;; 5006c321187Smrg cris | cris-* | etrax*) 5016c321187Smrg basic_machine=cris-axis 5026c321187Smrg ;; 5036c321187Smrg crx) 5046c321187Smrg basic_machine=crx-unknown 5056c321187Smrg os=-elf 5066c321187Smrg ;; 5076c321187Smrg da30 | da30-*) 5086c321187Smrg basic_machine=m68k-da30 5096c321187Smrg ;; 5106c321187Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 5116c321187Smrg basic_machine=mips-dec 5126c321187Smrg ;; 5136c321187Smrg decsystem10* | dec10*) 5146c321187Smrg basic_machine=pdp10-dec 5156c321187Smrg os=-tops10 5166c321187Smrg ;; 5176c321187Smrg decsystem20* | dec20*) 5186c321187Smrg basic_machine=pdp10-dec 5196c321187Smrg os=-tops20 5206c321187Smrg ;; 5216c321187Smrg delta | 3300 | motorola-3300 | motorola-delta \ 5226c321187Smrg | 3300-motorola | delta-motorola) 5236c321187Smrg basic_machine=m68k-motorola 5246c321187Smrg ;; 5256c321187Smrg delta88) 5266c321187Smrg basic_machine=m88k-motorola 5276c321187Smrg os=-sysv3 5286c321187Smrg ;; 5296c321187Smrg djgpp) 5306c321187Smrg basic_machine=i586-pc 5316c321187Smrg os=-msdosdjgpp 5326c321187Smrg ;; 5336c321187Smrg dpx20 | dpx20-*) 5346c321187Smrg basic_machine=rs6000-bull 5356c321187Smrg os=-bosx 5366c321187Smrg ;; 5376c321187Smrg dpx2* | dpx2*-bull) 5386c321187Smrg basic_machine=m68k-bull 5396c321187Smrg os=-sysv3 5406c321187Smrg ;; 5416c321187Smrg ebmon29k) 5426c321187Smrg basic_machine=a29k-amd 5436c321187Smrg os=-ebmon 5446c321187Smrg ;; 5456c321187Smrg elxsi) 5466c321187Smrg basic_machine=elxsi-elxsi 5476c321187Smrg os=-bsd 5486c321187Smrg ;; 5496c321187Smrg encore | umax | mmax) 5506c321187Smrg basic_machine=ns32k-encore 5516c321187Smrg ;; 5526c321187Smrg es1800 | OSE68k | ose68k | ose | OSE) 5536c321187Smrg basic_machine=m68k-ericsson 5546c321187Smrg os=-ose 5556c321187Smrg ;; 5566c321187Smrg fx2800) 5576c321187Smrg basic_machine=i860-alliant 5586c321187Smrg ;; 5596c321187Smrg genix) 5606c321187Smrg basic_machine=ns32k-ns 5616c321187Smrg ;; 5626c321187Smrg gmicro) 5636c321187Smrg basic_machine=tron-gmicro 5646c321187Smrg os=-sysv 5656c321187Smrg ;; 5666c321187Smrg go32) 5676c321187Smrg basic_machine=i386-pc 5686c321187Smrg os=-go32 5696c321187Smrg ;; 5706c321187Smrg h3050r* | hiux*) 5716c321187Smrg basic_machine=hppa1.1-hitachi 5726c321187Smrg os=-hiuxwe2 5736c321187Smrg ;; 5746c321187Smrg h8300hms) 5756c321187Smrg basic_machine=h8300-hitachi 5766c321187Smrg os=-hms 5776c321187Smrg ;; 5786c321187Smrg h8300xray) 5796c321187Smrg basic_machine=h8300-hitachi 5806c321187Smrg os=-xray 5816c321187Smrg ;; 5826c321187Smrg h8500hms) 5836c321187Smrg basic_machine=h8500-hitachi 5846c321187Smrg os=-hms 5856c321187Smrg ;; 5866c321187Smrg harris) 5876c321187Smrg basic_machine=m88k-harris 5886c321187Smrg os=-sysv3 5896c321187Smrg ;; 5906c321187Smrg hp300-*) 5916c321187Smrg basic_machine=m68k-hp 5926c321187Smrg ;; 5936c321187Smrg hp300bsd) 5946c321187Smrg basic_machine=m68k-hp 5956c321187Smrg os=-bsd 5966c321187Smrg ;; 5976c321187Smrg hp300hpux) 5986c321187Smrg basic_machine=m68k-hp 5996c321187Smrg os=-hpux 6006c321187Smrg ;; 6016c321187Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 6026c321187Smrg basic_machine=hppa1.0-hp 6036c321187Smrg ;; 6046c321187Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 6056c321187Smrg basic_machine=m68000-hp 6066c321187Smrg ;; 6076c321187Smrg hp9k3[2-9][0-9]) 6086c321187Smrg basic_machine=m68k-hp 6096c321187Smrg ;; 6106c321187Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 6116c321187Smrg basic_machine=hppa1.0-hp 6126c321187Smrg ;; 6136c321187Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 6146c321187Smrg basic_machine=hppa1.1-hp 6156c321187Smrg ;; 6166c321187Smrg hp9k78[0-9] | hp78[0-9]) 6176c321187Smrg # FIXME: really hppa2.0-hp 6186c321187Smrg basic_machine=hppa1.1-hp 6196c321187Smrg ;; 6206c321187Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 6216c321187Smrg # FIXME: really hppa2.0-hp 6226c321187Smrg basic_machine=hppa1.1-hp 6236c321187Smrg ;; 6246c321187Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 6256c321187Smrg basic_machine=hppa1.1-hp 6266c321187Smrg ;; 6276c321187Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 6286c321187Smrg basic_machine=hppa1.0-hp 6296c321187Smrg ;; 6306c321187Smrg hppa-next) 6316c321187Smrg os=-nextstep3 6326c321187Smrg ;; 6336c321187Smrg hppaosf) 6346c321187Smrg basic_machine=hppa1.1-hp 6356c321187Smrg os=-osf 6366c321187Smrg ;; 6376c321187Smrg hppro) 6386c321187Smrg basic_machine=hppa1.1-hp 6396c321187Smrg os=-proelf 6406c321187Smrg ;; 6416c321187Smrg i370-ibm* | ibm*) 6426c321187Smrg basic_machine=i370-ibm 6436c321187Smrg ;; 6446c321187Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 6456c321187Smrg i*86v32) 6466c321187Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6476c321187Smrg os=-sysv32 6486c321187Smrg ;; 6496c321187Smrg i*86v4*) 6506c321187Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6516c321187Smrg os=-sysv4 6526c321187Smrg ;; 6536c321187Smrg i*86v) 6546c321187Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6556c321187Smrg os=-sysv 6566c321187Smrg ;; 6576c321187Smrg i*86sol2) 6586c321187Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6596c321187Smrg os=-solaris2 6606c321187Smrg ;; 6616c321187Smrg i386mach) 6626c321187Smrg basic_machine=i386-mach 6636c321187Smrg os=-mach 6646c321187Smrg ;; 6656c321187Smrg i386-vsta | vsta) 6666c321187Smrg basic_machine=i386-unknown 6676c321187Smrg os=-vsta 6686c321187Smrg ;; 6696c321187Smrg iris | iris4d) 6706c321187Smrg basic_machine=mips-sgi 6716c321187Smrg case $os in 6726c321187Smrg -irix*) 6736c321187Smrg ;; 6746c321187Smrg *) 6756c321187Smrg os=-irix4 6766c321187Smrg ;; 6776c321187Smrg esac 6786c321187Smrg ;; 6796c321187Smrg isi68 | isi) 6806c321187Smrg basic_machine=m68k-isi 6816c321187Smrg os=-sysv 6826c321187Smrg ;; 68393493779Smrg m68knommu) 68493493779Smrg basic_machine=m68k-unknown 68593493779Smrg os=-linux 68693493779Smrg ;; 68793493779Smrg m68knommu-*) 68893493779Smrg basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 68993493779Smrg os=-linux 69093493779Smrg ;; 6916c321187Smrg m88k-omron*) 6926c321187Smrg basic_machine=m88k-omron 6936c321187Smrg ;; 6946c321187Smrg magnum | m3230) 6956c321187Smrg basic_machine=mips-mips 6966c321187Smrg os=-sysv 6976c321187Smrg ;; 6986c321187Smrg merlin) 6996c321187Smrg basic_machine=ns32k-utek 7006c321187Smrg os=-sysv 7016c321187Smrg ;; 7026c321187Smrg mingw32) 7036c321187Smrg basic_machine=i386-pc 7046c321187Smrg os=-mingw32 7056c321187Smrg ;; 70693493779Smrg mingw32ce) 70793493779Smrg basic_machine=arm-unknown 70893493779Smrg os=-mingw32ce 70993493779Smrg ;; 7106c321187Smrg miniframe) 7116c321187Smrg basic_machine=m68000-convergent 7126c321187Smrg ;; 7136c321187Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 7146c321187Smrg basic_machine=m68k-atari 7156c321187Smrg os=-mint 7166c321187Smrg ;; 7176c321187Smrg mips3*-*) 7186c321187Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 7196c321187Smrg ;; 7206c321187Smrg mips3*) 7216c321187Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 7226c321187Smrg ;; 7236c321187Smrg monitor) 7246c321187Smrg basic_machine=m68k-rom68k 7256c321187Smrg os=-coff 7266c321187Smrg ;; 7276c321187Smrg morphos) 7286c321187Smrg basic_machine=powerpc-unknown 7296c321187Smrg os=-morphos 7306c321187Smrg ;; 7316c321187Smrg msdos) 7326c321187Smrg basic_machine=i386-pc 7336c321187Smrg os=-msdos 7346c321187Smrg ;; 7356c321187Smrg ms1-*) 7366c321187Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 7376c321187Smrg ;; 7386c321187Smrg mvs) 7396c321187Smrg basic_machine=i370-ibm 7406c321187Smrg os=-mvs 7416c321187Smrg ;; 7426c321187Smrg ncr3000) 7436c321187Smrg basic_machine=i486-ncr 7446c321187Smrg os=-sysv4 7456c321187Smrg ;; 7466c321187Smrg netbsd386) 7476c321187Smrg basic_machine=i386-unknown 7486c321187Smrg os=-netbsd 7496c321187Smrg ;; 7506c321187Smrg netwinder) 7516c321187Smrg basic_machine=armv4l-rebel 7526c321187Smrg os=-linux 7536c321187Smrg ;; 7546c321187Smrg news | news700 | news800 | news900) 7556c321187Smrg basic_machine=m68k-sony 7566c321187Smrg os=-newsos 7576c321187Smrg ;; 7586c321187Smrg news1000) 7596c321187Smrg basic_machine=m68030-sony 7606c321187Smrg os=-newsos 7616c321187Smrg ;; 7626c321187Smrg news-3600 | risc-news) 7636c321187Smrg basic_machine=mips-sony 7646c321187Smrg os=-newsos 7656c321187Smrg ;; 7666c321187Smrg necv70) 7676c321187Smrg basic_machine=v70-nec 7686c321187Smrg os=-sysv 7696c321187Smrg ;; 7706c321187Smrg next | m*-next ) 7716c321187Smrg basic_machine=m68k-next 7726c321187Smrg case $os in 7736c321187Smrg -nextstep* ) 7746c321187Smrg ;; 7756c321187Smrg -ns2*) 7766c321187Smrg os=-nextstep2 7776c321187Smrg ;; 7786c321187Smrg *) 7796c321187Smrg os=-nextstep3 7806c321187Smrg ;; 7816c321187Smrg esac 7826c321187Smrg ;; 7836c321187Smrg nh3000) 7846c321187Smrg basic_machine=m68k-harris 7856c321187Smrg os=-cxux 7866c321187Smrg ;; 7876c321187Smrg nh[45]000) 7886c321187Smrg basic_machine=m88k-harris 7896c321187Smrg os=-cxux 7906c321187Smrg ;; 7916c321187Smrg nindy960) 7926c321187Smrg basic_machine=i960-intel 7936c321187Smrg os=-nindy 7946c321187Smrg ;; 7956c321187Smrg mon960) 7966c321187Smrg basic_machine=i960-intel 7976c321187Smrg os=-mon960 7986c321187Smrg ;; 7996c321187Smrg nonstopux) 8006c321187Smrg basic_machine=mips-compaq 8016c321187Smrg os=-nonstopux 8026c321187Smrg ;; 8036c321187Smrg np1) 8046c321187Smrg basic_machine=np1-gould 8056c321187Smrg ;; 8066c321187Smrg nsr-tandem) 8076c321187Smrg basic_machine=nsr-tandem 8086c321187Smrg ;; 8096c321187Smrg op50n-* | op60c-*) 8106c321187Smrg basic_machine=hppa1.1-oki 8116c321187Smrg os=-proelf 8126c321187Smrg ;; 8136c321187Smrg openrisc | openrisc-*) 8146c321187Smrg basic_machine=or32-unknown 8156c321187Smrg ;; 8166c321187Smrg os400) 8176c321187Smrg basic_machine=powerpc-ibm 8186c321187Smrg os=-os400 8196c321187Smrg ;; 8206c321187Smrg OSE68000 | ose68000) 8216c321187Smrg basic_machine=m68000-ericsson 8226c321187Smrg os=-ose 8236c321187Smrg ;; 8246c321187Smrg os68k) 8256c321187Smrg basic_machine=m68k-none 8266c321187Smrg os=-os68k 8276c321187Smrg ;; 8286c321187Smrg pa-hitachi) 8296c321187Smrg basic_machine=hppa1.1-hitachi 8306c321187Smrg os=-hiuxwe2 8316c321187Smrg ;; 8326c321187Smrg paragon) 8336c321187Smrg basic_machine=i860-intel 8346c321187Smrg os=-osf 8356c321187Smrg ;; 83693493779Smrg parisc) 83793493779Smrg basic_machine=hppa-unknown 83893493779Smrg os=-linux 83993493779Smrg ;; 84093493779Smrg parisc-*) 84193493779Smrg basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 84293493779Smrg os=-linux 84393493779Smrg ;; 8446c321187Smrg pbd) 8456c321187Smrg basic_machine=sparc-tti 8466c321187Smrg ;; 8476c321187Smrg pbb) 8486c321187Smrg basic_machine=m68k-tti 8496c321187Smrg ;; 8506c321187Smrg pc532 | pc532-*) 8516c321187Smrg basic_machine=ns32k-pc532 8526c321187Smrg ;; 85393493779Smrg pc98) 85493493779Smrg basic_machine=i386-pc 85593493779Smrg ;; 85693493779Smrg pc98-*) 85793493779Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 85893493779Smrg ;; 8596c321187Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 8606c321187Smrg basic_machine=i586-pc 8616c321187Smrg ;; 8626c321187Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 8636c321187Smrg basic_machine=i686-pc 8646c321187Smrg ;; 8656c321187Smrg pentiumii | pentium2 | pentiumiii | pentium3) 8666c321187Smrg basic_machine=i686-pc 8676c321187Smrg ;; 8686c321187Smrg pentium4) 8696c321187Smrg basic_machine=i786-pc 8706c321187Smrg ;; 8716c321187Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 8726c321187Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 8736c321187Smrg ;; 8746c321187Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 8756c321187Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 8766c321187Smrg ;; 8776c321187Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 8786c321187Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 8796c321187Smrg ;; 8806c321187Smrg pentium4-*) 8816c321187Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 8826c321187Smrg ;; 8836c321187Smrg pn) 8846c321187Smrg basic_machine=pn-gould 8856c321187Smrg ;; 8866c321187Smrg power) basic_machine=power-ibm 8876c321187Smrg ;; 8886c321187Smrg ppc) basic_machine=powerpc-unknown 8896c321187Smrg ;; 8906c321187Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 8916c321187Smrg ;; 8926c321187Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 8936c321187Smrg basic_machine=powerpcle-unknown 8946c321187Smrg ;; 8956c321187Smrg ppcle-* | powerpclittle-*) 8966c321187Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 8976c321187Smrg ;; 8986c321187Smrg ppc64) basic_machine=powerpc64-unknown 8996c321187Smrg ;; 9006c321187Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 9016c321187Smrg ;; 9026c321187Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 9036c321187Smrg basic_machine=powerpc64le-unknown 9046c321187Smrg ;; 9056c321187Smrg ppc64le-* | powerpc64little-*) 9066c321187Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 9076c321187Smrg ;; 9086c321187Smrg ps2) 9096c321187Smrg basic_machine=i386-ibm 9106c321187Smrg ;; 9116c321187Smrg pw32) 9126c321187Smrg basic_machine=i586-unknown 9136c321187Smrg os=-pw32 9146c321187Smrg ;; 9156c321187Smrg rdos) 9166c321187Smrg basic_machine=i386-pc 9176c321187Smrg os=-rdos 9186c321187Smrg ;; 9196c321187Smrg rom68k) 9206c321187Smrg basic_machine=m68k-rom68k 9216c321187Smrg os=-coff 9226c321187Smrg ;; 9236c321187Smrg rm[46]00) 9246c321187Smrg basic_machine=mips-siemens 9256c321187Smrg ;; 9266c321187Smrg rtpc | rtpc-*) 9276c321187Smrg basic_machine=romp-ibm 9286c321187Smrg ;; 9296c321187Smrg s390 | s390-*) 9306c321187Smrg basic_machine=s390-ibm 9316c321187Smrg ;; 9326c321187Smrg s390x | s390x-*) 9336c321187Smrg basic_machine=s390x-ibm 9346c321187Smrg ;; 9356c321187Smrg sa29200) 9366c321187Smrg basic_machine=a29k-amd 9376c321187Smrg os=-udi 9386c321187Smrg ;; 9396c321187Smrg sb1) 9406c321187Smrg basic_machine=mipsisa64sb1-unknown 9416c321187Smrg ;; 9426c321187Smrg sb1el) 9436c321187Smrg basic_machine=mipsisa64sb1el-unknown 9446c321187Smrg ;; 94593493779Smrg sde) 94693493779Smrg basic_machine=mipsisa32-sde 94793493779Smrg os=-elf 94893493779Smrg ;; 9496c321187Smrg sei) 9506c321187Smrg basic_machine=mips-sei 9516c321187Smrg os=-seiux 9526c321187Smrg ;; 9536c321187Smrg sequent) 9546c321187Smrg basic_machine=i386-sequent 9556c321187Smrg ;; 9566c321187Smrg sh) 9576c321187Smrg basic_machine=sh-hitachi 9586c321187Smrg os=-hms 9596c321187Smrg ;; 96093493779Smrg sh5el) 96193493779Smrg basic_machine=sh5le-unknown 96293493779Smrg ;; 9636c321187Smrg sh64) 9646c321187Smrg basic_machine=sh64-unknown 9656c321187Smrg ;; 9666c321187Smrg sparclite-wrs | simso-wrs) 9676c321187Smrg basic_machine=sparclite-wrs 9686c321187Smrg os=-vxworks 9696c321187Smrg ;; 9706c321187Smrg sps7) 9716c321187Smrg basic_machine=m68k-bull 9726c321187Smrg os=-sysv2 9736c321187Smrg ;; 9746c321187Smrg spur) 9756c321187Smrg basic_machine=spur-unknown 9766c321187Smrg ;; 9776c321187Smrg st2000) 9786c321187Smrg basic_machine=m68k-tandem 9796c321187Smrg ;; 9806c321187Smrg stratus) 9816c321187Smrg basic_machine=i860-stratus 9826c321187Smrg os=-sysv4 9836c321187Smrg ;; 9846c321187Smrg sun2) 9856c321187Smrg basic_machine=m68000-sun 9866c321187Smrg ;; 9876c321187Smrg sun2os3) 9886c321187Smrg basic_machine=m68000-sun 9896c321187Smrg os=-sunos3 9906c321187Smrg ;; 9916c321187Smrg sun2os4) 9926c321187Smrg basic_machine=m68000-sun 9936c321187Smrg os=-sunos4 9946c321187Smrg ;; 9956c321187Smrg sun3os3) 9966c321187Smrg basic_machine=m68k-sun 9976c321187Smrg os=-sunos3 9986c321187Smrg ;; 9996c321187Smrg sun3os4) 10006c321187Smrg basic_machine=m68k-sun 10016c321187Smrg os=-sunos4 10026c321187Smrg ;; 10036c321187Smrg sun4os3) 10046c321187Smrg basic_machine=sparc-sun 10056c321187Smrg os=-sunos3 10066c321187Smrg ;; 10076c321187Smrg sun4os4) 10086c321187Smrg basic_machine=sparc-sun 10096c321187Smrg os=-sunos4 10106c321187Smrg ;; 10116c321187Smrg sun4sol2) 10126c321187Smrg basic_machine=sparc-sun 10136c321187Smrg os=-solaris2 10146c321187Smrg ;; 10156c321187Smrg sun3 | sun3-*) 10166c321187Smrg basic_machine=m68k-sun 10176c321187Smrg ;; 10186c321187Smrg sun4) 10196c321187Smrg basic_machine=sparc-sun 10206c321187Smrg ;; 10216c321187Smrg sun386 | sun386i | roadrunner) 10226c321187Smrg basic_machine=i386-sun 10236c321187Smrg ;; 10246c321187Smrg sv1) 10256c321187Smrg basic_machine=sv1-cray 10266c321187Smrg os=-unicos 10276c321187Smrg ;; 10286c321187Smrg symmetry) 10296c321187Smrg basic_machine=i386-sequent 10306c321187Smrg os=-dynix 10316c321187Smrg ;; 10326c321187Smrg t3e) 10336c321187Smrg basic_machine=alphaev5-cray 10346c321187Smrg os=-unicos 10356c321187Smrg ;; 10366c321187Smrg t90) 10376c321187Smrg basic_machine=t90-cray 10386c321187Smrg os=-unicos 10396c321187Smrg ;; 10406c321187Smrg tic54x | c54x*) 10416c321187Smrg basic_machine=tic54x-unknown 10426c321187Smrg os=-coff 10436c321187Smrg ;; 10446c321187Smrg tic55x | c55x*) 10456c321187Smrg basic_machine=tic55x-unknown 10466c321187Smrg os=-coff 10476c321187Smrg ;; 10486c321187Smrg tic6x | c6x*) 10496c321187Smrg basic_machine=tic6x-unknown 10506c321187Smrg os=-coff 10516c321187Smrg ;; 105293493779Smrg tile*) 105393493779Smrg basic_machine=tile-unknown 105493493779Smrg os=-linux-gnu 105593493779Smrg ;; 10566c321187Smrg tx39) 10576c321187Smrg basic_machine=mipstx39-unknown 10586c321187Smrg ;; 10596c321187Smrg tx39el) 10606c321187Smrg basic_machine=mipstx39el-unknown 10616c321187Smrg ;; 10626c321187Smrg toad1) 10636c321187Smrg basic_machine=pdp10-xkl 10646c321187Smrg os=-tops20 10656c321187Smrg ;; 10666c321187Smrg tower | tower-32) 10676c321187Smrg basic_machine=m68k-ncr 10686c321187Smrg ;; 10696c321187Smrg tpf) 10706c321187Smrg basic_machine=s390x-ibm 10716c321187Smrg os=-tpf 10726c321187Smrg ;; 10736c321187Smrg udi29k) 10746c321187Smrg basic_machine=a29k-amd 10756c321187Smrg os=-udi 10766c321187Smrg ;; 10776c321187Smrg ultra3) 10786c321187Smrg basic_machine=a29k-nyu 10796c321187Smrg os=-sym1 10806c321187Smrg ;; 10816c321187Smrg v810 | necv810) 10826c321187Smrg basic_machine=v810-nec 10836c321187Smrg os=-none 10846c321187Smrg ;; 10856c321187Smrg vaxv) 10866c321187Smrg basic_machine=vax-dec 10876c321187Smrg os=-sysv 10886c321187Smrg ;; 10896c321187Smrg vms) 10906c321187Smrg basic_machine=vax-dec 10916c321187Smrg os=-vms 10926c321187Smrg ;; 10936c321187Smrg vpp*|vx|vx-*) 10946c321187Smrg basic_machine=f301-fujitsu 10956c321187Smrg ;; 10966c321187Smrg vxworks960) 10976c321187Smrg basic_machine=i960-wrs 10986c321187Smrg os=-vxworks 10996c321187Smrg ;; 11006c321187Smrg vxworks68) 11016c321187Smrg basic_machine=m68k-wrs 11026c321187Smrg os=-vxworks 11036c321187Smrg ;; 11046c321187Smrg vxworks29k) 11056c321187Smrg basic_machine=a29k-wrs 11066c321187Smrg os=-vxworks 11076c321187Smrg ;; 11086c321187Smrg w65*) 11096c321187Smrg basic_machine=w65-wdc 11106c321187Smrg os=-none 11116c321187Smrg ;; 11126c321187Smrg w89k-*) 11136c321187Smrg basic_machine=hppa1.1-winbond 11146c321187Smrg os=-proelf 11156c321187Smrg ;; 11166c321187Smrg xbox) 11176c321187Smrg basic_machine=i686-pc 11186c321187Smrg os=-mingw32 11196c321187Smrg ;; 11206c321187Smrg xps | xps100) 11216c321187Smrg basic_machine=xps100-honeywell 11226c321187Smrg ;; 11236c321187Smrg ymp) 11246c321187Smrg basic_machine=ymp-cray 11256c321187Smrg os=-unicos 11266c321187Smrg ;; 11276c321187Smrg z8k-*-coff) 11286c321187Smrg basic_machine=z8k-unknown 11296c321187Smrg os=-sim 11306c321187Smrg ;; 11316c321187Smrg none) 11326c321187Smrg basic_machine=none-none 11336c321187Smrg os=-none 11346c321187Smrg ;; 11356c321187Smrg 11366c321187Smrg# Here we handle the default manufacturer of certain CPU types. It is in 11376c321187Smrg# some cases the only manufacturer, in others, it is the most popular. 11386c321187Smrg w89k) 11396c321187Smrg basic_machine=hppa1.1-winbond 11406c321187Smrg ;; 11416c321187Smrg op50n) 11426c321187Smrg basic_machine=hppa1.1-oki 11436c321187Smrg ;; 11446c321187Smrg op60c) 11456c321187Smrg basic_machine=hppa1.1-oki 11466c321187Smrg ;; 11476c321187Smrg romp) 11486c321187Smrg basic_machine=romp-ibm 11496c321187Smrg ;; 11506c321187Smrg mmix) 11516c321187Smrg basic_machine=mmix-knuth 11526c321187Smrg ;; 11536c321187Smrg rs6000) 11546c321187Smrg basic_machine=rs6000-ibm 11556c321187Smrg ;; 11566c321187Smrg vax) 11576c321187Smrg basic_machine=vax-dec 11586c321187Smrg ;; 11596c321187Smrg pdp10) 11606c321187Smrg # there are many clones, so DEC is not a safe bet 11616c321187Smrg basic_machine=pdp10-unknown 11626c321187Smrg ;; 11636c321187Smrg pdp11) 11646c321187Smrg basic_machine=pdp11-dec 11656c321187Smrg ;; 11666c321187Smrg we32k) 11676c321187Smrg basic_machine=we32k-att 11686c321187Smrg ;; 11696c321187Smrg sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 11706c321187Smrg basic_machine=sh-unknown 11716c321187Smrg ;; 117293493779Smrg sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 11736c321187Smrg basic_machine=sparc-sun 11746c321187Smrg ;; 11756c321187Smrg cydra) 11766c321187Smrg basic_machine=cydra-cydrome 11776c321187Smrg ;; 11786c321187Smrg orion) 11796c321187Smrg basic_machine=orion-highlevel 11806c321187Smrg ;; 11816c321187Smrg orion105) 11826c321187Smrg basic_machine=clipper-highlevel 11836c321187Smrg ;; 11846c321187Smrg mac | mpw | mac-mpw) 11856c321187Smrg basic_machine=m68k-apple 11866c321187Smrg ;; 11876c321187Smrg pmac | pmac-mpw) 11886c321187Smrg basic_machine=powerpc-apple 11896c321187Smrg ;; 11906c321187Smrg *-unknown) 11916c321187Smrg # Make sure to match an already-canonicalized machine name. 11926c321187Smrg ;; 11936c321187Smrg *) 11946c321187Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 11956c321187Smrg exit 1 11966c321187Smrg ;; 11976c321187Smrgesac 11986c321187Smrg 11996c321187Smrg# Here we canonicalize certain aliases for manufacturers. 12006c321187Smrgcase $basic_machine in 12016c321187Smrg *-digital*) 12026c321187Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 12036c321187Smrg ;; 12046c321187Smrg *-commodore*) 12056c321187Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 12066c321187Smrg ;; 12076c321187Smrg *) 12086c321187Smrg ;; 12096c321187Smrgesac 12106c321187Smrg 12116c321187Smrg# Decode manufacturer-specific aliases for certain operating systems. 12126c321187Smrg 12136c321187Smrgif [ x"$os" != x"" ] 12146c321187Smrgthen 12156c321187Smrgcase $os in 12166c321187Smrg # First match some system type aliases 12176c321187Smrg # that might get confused with valid system types. 12186c321187Smrg # -solaris* is a basic system type, with this one exception. 12196c321187Smrg -solaris1 | -solaris1.*) 12206c321187Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 12216c321187Smrg ;; 12226c321187Smrg -solaris) 12236c321187Smrg os=-solaris2 12246c321187Smrg ;; 12256c321187Smrg -svr4*) 12266c321187Smrg os=-sysv4 12276c321187Smrg ;; 12286c321187Smrg -unixware*) 12296c321187Smrg os=-sysv4.2uw 12306c321187Smrg ;; 12316c321187Smrg -gnu/linux*) 12326c321187Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 12336c321187Smrg ;; 12346c321187Smrg # First accept the basic system types. 12356c321187Smrg # The portable systems comes first. 12366c321187Smrg # Each alternative MUST END IN A *, to match a version number. 12376c321187Smrg # -sysv* is not here because it comes later, after sysvr4. 12386c321187Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 12396c321187Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 12406c321187Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 12416c321187Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 12426c321187Smrg | -aos* \ 12436c321187Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 12446c321187Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 124593493779Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 124693493779Smrg | -openbsd* | -solidbsd* \ 12476c321187Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 12486c321187Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 12496c321187Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 12506c321187Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 12516c321187Smrg | -chorusos* | -chorusrdb* \ 12526c321187Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 12536c321187Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 12546c321187Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 12556c321187Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 12566c321187Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 12576c321187Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 12586c321187Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 12596c321187Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 12606c321187Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 126193493779Smrg | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 12626c321187Smrg # Remember, each alternative MUST END IN *, to match a version number. 12636c321187Smrg ;; 12646c321187Smrg -qnx*) 12656c321187Smrg case $basic_machine in 12666c321187Smrg x86-* | i*86-*) 12676c321187Smrg ;; 12686c321187Smrg *) 12696c321187Smrg os=-nto$os 12706c321187Smrg ;; 12716c321187Smrg esac 12726c321187Smrg ;; 12736c321187Smrg -nto-qnx*) 12746c321187Smrg ;; 12756c321187Smrg -nto*) 12766c321187Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 12776c321187Smrg ;; 12786c321187Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 12796c321187Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 12806c321187Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 12816c321187Smrg ;; 12826c321187Smrg -mac*) 12836c321187Smrg os=`echo $os | sed -e 's|mac|macos|'` 12846c321187Smrg ;; 12856c321187Smrg -linux-dietlibc) 12866c321187Smrg os=-linux-dietlibc 12876c321187Smrg ;; 12886c321187Smrg -linux*) 12896c321187Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 12906c321187Smrg ;; 12916c321187Smrg -sunos5*) 12926c321187Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 12936c321187Smrg ;; 12946c321187Smrg -sunos6*) 12956c321187Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 12966c321187Smrg ;; 12976c321187Smrg -opened*) 12986c321187Smrg os=-openedition 12996c321187Smrg ;; 13006c321187Smrg -os400*) 13016c321187Smrg os=-os400 13026c321187Smrg ;; 13036c321187Smrg -wince*) 13046c321187Smrg os=-wince 13056c321187Smrg ;; 13066c321187Smrg -osfrose*) 13076c321187Smrg os=-osfrose 13086c321187Smrg ;; 13096c321187Smrg -osf*) 13106c321187Smrg os=-osf 13116c321187Smrg ;; 13126c321187Smrg -utek*) 13136c321187Smrg os=-bsd 13146c321187Smrg ;; 13156c321187Smrg -dynix*) 13166c321187Smrg os=-bsd 13176c321187Smrg ;; 13186c321187Smrg -acis*) 13196c321187Smrg os=-aos 13206c321187Smrg ;; 13216c321187Smrg -atheos*) 13226c321187Smrg os=-atheos 13236c321187Smrg ;; 13246c321187Smrg -syllable*) 13256c321187Smrg os=-syllable 13266c321187Smrg ;; 13276c321187Smrg -386bsd) 13286c321187Smrg os=-bsd 13296c321187Smrg ;; 13306c321187Smrg -ctix* | -uts*) 13316c321187Smrg os=-sysv 13326c321187Smrg ;; 13336c321187Smrg -nova*) 13346c321187Smrg os=-rtmk-nova 13356c321187Smrg ;; 13366c321187Smrg -ns2 ) 13376c321187Smrg os=-nextstep2 13386c321187Smrg ;; 13396c321187Smrg -nsk*) 13406c321187Smrg os=-nsk 13416c321187Smrg ;; 13426c321187Smrg # Preserve the version number of sinix5. 13436c321187Smrg -sinix5.*) 13446c321187Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 13456c321187Smrg ;; 13466c321187Smrg -sinix*) 13476c321187Smrg os=-sysv4 13486c321187Smrg ;; 13496c321187Smrg -tpf*) 13506c321187Smrg os=-tpf 13516c321187Smrg ;; 13526c321187Smrg -triton*) 13536c321187Smrg os=-sysv3 13546c321187Smrg ;; 13556c321187Smrg -oss*) 13566c321187Smrg os=-sysv3 13576c321187Smrg ;; 13586c321187Smrg -svr4) 13596c321187Smrg os=-sysv4 13606c321187Smrg ;; 13616c321187Smrg -svr3) 13626c321187Smrg os=-sysv3 13636c321187Smrg ;; 13646c321187Smrg -sysvr4) 13656c321187Smrg os=-sysv4 13666c321187Smrg ;; 13676c321187Smrg # This must come after -sysvr4. 13686c321187Smrg -sysv*) 13696c321187Smrg ;; 13706c321187Smrg -ose*) 13716c321187Smrg os=-ose 13726c321187Smrg ;; 13736c321187Smrg -es1800*) 13746c321187Smrg os=-ose 13756c321187Smrg ;; 13766c321187Smrg -xenix) 13776c321187Smrg os=-xenix 13786c321187Smrg ;; 13796c321187Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 13806c321187Smrg os=-mint 13816c321187Smrg ;; 13826c321187Smrg -aros*) 13836c321187Smrg os=-aros 13846c321187Smrg ;; 13856c321187Smrg -kaos*) 13866c321187Smrg os=-kaos 13876c321187Smrg ;; 13886c321187Smrg -zvmoe) 13896c321187Smrg os=-zvmoe 13906c321187Smrg ;; 13916c321187Smrg -none) 13926c321187Smrg ;; 13936c321187Smrg *) 13946c321187Smrg # Get rid of the `-' at the beginning of $os. 13956c321187Smrg os=`echo $os | sed 's/[^-]*-//'` 13966c321187Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 13976c321187Smrg exit 1 13986c321187Smrg ;; 13996c321187Smrgesac 14006c321187Smrgelse 14016c321187Smrg 14026c321187Smrg# Here we handle the default operating systems that come with various machines. 14036c321187Smrg# The value should be what the vendor currently ships out the door with their 14046c321187Smrg# machine or put another way, the most popular os provided with the machine. 14056c321187Smrg 14066c321187Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 14076c321187Smrg# "-sun"), then you have to tell the case statement up towards the top 14086c321187Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 14096c321187Smrg# will signal an error saying that MANUFACTURER isn't an operating 14106c321187Smrg# system, and we'll never get to this point. 14116c321187Smrg 14126c321187Smrgcase $basic_machine in 141393493779Smrg score-*) 141493493779Smrg os=-elf 141593493779Smrg ;; 141693493779Smrg spu-*) 141793493779Smrg os=-elf 141893493779Smrg ;; 14196c321187Smrg *-acorn) 14206c321187Smrg os=-riscix1.2 14216c321187Smrg ;; 14226c321187Smrg arm*-rebel) 14236c321187Smrg os=-linux 14246c321187Smrg ;; 14256c321187Smrg arm*-semi) 14266c321187Smrg os=-aout 14276c321187Smrg ;; 142893493779Smrg c4x-* | tic4x-*) 142993493779Smrg os=-coff 143093493779Smrg ;; 14316c321187Smrg # This must come before the *-dec entry. 14326c321187Smrg pdp10-*) 14336c321187Smrg os=-tops20 14346c321187Smrg ;; 14356c321187Smrg pdp11-*) 14366c321187Smrg os=-none 14376c321187Smrg ;; 14386c321187Smrg *-dec | vax-*) 14396c321187Smrg os=-ultrix4.2 14406c321187Smrg ;; 14416c321187Smrg m68*-apollo) 14426c321187Smrg os=-domain 14436c321187Smrg ;; 14446c321187Smrg i386-sun) 14456c321187Smrg os=-sunos4.0.2 14466c321187Smrg ;; 14476c321187Smrg m68000-sun) 14486c321187Smrg os=-sunos3 14496c321187Smrg # This also exists in the configure program, but was not the 14506c321187Smrg # default. 14516c321187Smrg # os=-sunos4 14526c321187Smrg ;; 14536c321187Smrg m68*-cisco) 14546c321187Smrg os=-aout 14556c321187Smrg ;; 145693493779Smrg mep-*) 145793493779Smrg os=-elf 145893493779Smrg ;; 14596c321187Smrg mips*-cisco) 14606c321187Smrg os=-elf 14616c321187Smrg ;; 14626c321187Smrg mips*-*) 14636c321187Smrg os=-elf 14646c321187Smrg ;; 14656c321187Smrg or32-*) 14666c321187Smrg os=-coff 14676c321187Smrg ;; 14686c321187Smrg *-tti) # must be before sparc entry or we get the wrong os. 14696c321187Smrg os=-sysv3 14706c321187Smrg ;; 14716c321187Smrg sparc-* | *-sun) 14726c321187Smrg os=-sunos4.1.1 14736c321187Smrg ;; 14746c321187Smrg *-be) 14756c321187Smrg os=-beos 14766c321187Smrg ;; 14776c321187Smrg *-haiku) 14786c321187Smrg os=-haiku 14796c321187Smrg ;; 14806c321187Smrg *-ibm) 14816c321187Smrg os=-aix 14826c321187Smrg ;; 14836c321187Smrg *-knuth) 14846c321187Smrg os=-mmixware 14856c321187Smrg ;; 14866c321187Smrg *-wec) 14876c321187Smrg os=-proelf 14886c321187Smrg ;; 14896c321187Smrg *-winbond) 14906c321187Smrg os=-proelf 14916c321187Smrg ;; 14926c321187Smrg *-oki) 14936c321187Smrg os=-proelf 14946c321187Smrg ;; 14956c321187Smrg *-hp) 14966c321187Smrg os=-hpux 14976c321187Smrg ;; 14986c321187Smrg *-hitachi) 14996c321187Smrg os=-hiux 15006c321187Smrg ;; 15016c321187Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 15026c321187Smrg os=-sysv 15036c321187Smrg ;; 15046c321187Smrg *-cbm) 15056c321187Smrg os=-amigaos 15066c321187Smrg ;; 15076c321187Smrg *-dg) 15086c321187Smrg os=-dgux 15096c321187Smrg ;; 15106c321187Smrg *-dolphin) 15116c321187Smrg os=-sysv3 15126c321187Smrg ;; 15136c321187Smrg m68k-ccur) 15146c321187Smrg os=-rtu 15156c321187Smrg ;; 15166c321187Smrg m88k-omron*) 15176c321187Smrg os=-luna 15186c321187Smrg ;; 15196c321187Smrg *-next ) 15206c321187Smrg os=-nextstep 15216c321187Smrg ;; 15226c321187Smrg *-sequent) 15236c321187Smrg os=-ptx 15246c321187Smrg ;; 15256c321187Smrg *-crds) 15266c321187Smrg os=-unos 15276c321187Smrg ;; 15286c321187Smrg *-ns) 15296c321187Smrg os=-genix 15306c321187Smrg ;; 15316c321187Smrg i370-*) 15326c321187Smrg os=-mvs 15336c321187Smrg ;; 15346c321187Smrg *-next) 15356c321187Smrg os=-nextstep3 15366c321187Smrg ;; 15376c321187Smrg *-gould) 15386c321187Smrg os=-sysv 15396c321187Smrg ;; 15406c321187Smrg *-highlevel) 15416c321187Smrg os=-bsd 15426c321187Smrg ;; 15436c321187Smrg *-encore) 15446c321187Smrg os=-bsd 15456c321187Smrg ;; 15466c321187Smrg *-sgi) 15476c321187Smrg os=-irix 15486c321187Smrg ;; 15496c321187Smrg *-siemens) 15506c321187Smrg os=-sysv4 15516c321187Smrg ;; 15526c321187Smrg *-masscomp) 15536c321187Smrg os=-rtu 15546c321187Smrg ;; 15556c321187Smrg f30[01]-fujitsu | f700-fujitsu) 15566c321187Smrg os=-uxpv 15576c321187Smrg ;; 15586c321187Smrg *-rom68k) 15596c321187Smrg os=-coff 15606c321187Smrg ;; 15616c321187Smrg *-*bug) 15626c321187Smrg os=-coff 15636c321187Smrg ;; 15646c321187Smrg *-apple) 15656c321187Smrg os=-macos 15666c321187Smrg ;; 15676c321187Smrg *-atari*) 15686c321187Smrg os=-mint 15696c321187Smrg ;; 15706c321187Smrg *) 15716c321187Smrg os=-none 15726c321187Smrg ;; 15736c321187Smrgesac 15746c321187Smrgfi 15756c321187Smrg 15766c321187Smrg# Here we handle the case where we know the os, and the CPU type, but not the 15776c321187Smrg# manufacturer. We pick the logical manufacturer. 15786c321187Smrgvendor=unknown 15796c321187Smrgcase $basic_machine in 15806c321187Smrg *-unknown) 15816c321187Smrg case $os in 15826c321187Smrg -riscix*) 15836c321187Smrg vendor=acorn 15846c321187Smrg ;; 15856c321187Smrg -sunos*) 15866c321187Smrg vendor=sun 15876c321187Smrg ;; 15886c321187Smrg -aix*) 15896c321187Smrg vendor=ibm 15906c321187Smrg ;; 15916c321187Smrg -beos*) 15926c321187Smrg vendor=be 15936c321187Smrg ;; 15946c321187Smrg -hpux*) 15956c321187Smrg vendor=hp 15966c321187Smrg ;; 15976c321187Smrg -mpeix*) 15986c321187Smrg vendor=hp 15996c321187Smrg ;; 16006c321187Smrg -hiux*) 16016c321187Smrg vendor=hitachi 16026c321187Smrg ;; 16036c321187Smrg -unos*) 16046c321187Smrg vendor=crds 16056c321187Smrg ;; 16066c321187Smrg -dgux*) 16076c321187Smrg vendor=dg 16086c321187Smrg ;; 16096c321187Smrg -luna*) 16106c321187Smrg vendor=omron 16116c321187Smrg ;; 16126c321187Smrg -genix*) 16136c321187Smrg vendor=ns 16146c321187Smrg ;; 16156c321187Smrg -mvs* | -opened*) 16166c321187Smrg vendor=ibm 16176c321187Smrg ;; 16186c321187Smrg -os400*) 16196c321187Smrg vendor=ibm 16206c321187Smrg ;; 16216c321187Smrg -ptx*) 16226c321187Smrg vendor=sequent 16236c321187Smrg ;; 16246c321187Smrg -tpf*) 16256c321187Smrg vendor=ibm 16266c321187Smrg ;; 16276c321187Smrg -vxsim* | -vxworks* | -windiss*) 16286c321187Smrg vendor=wrs 16296c321187Smrg ;; 16306c321187Smrg -aux*) 16316c321187Smrg vendor=apple 16326c321187Smrg ;; 16336c321187Smrg -hms*) 16346c321187Smrg vendor=hitachi 16356c321187Smrg ;; 16366c321187Smrg -mpw* | -macos*) 16376c321187Smrg vendor=apple 16386c321187Smrg ;; 16396c321187Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 16406c321187Smrg vendor=atari 16416c321187Smrg ;; 16426c321187Smrg -vos*) 16436c321187Smrg vendor=stratus 16446c321187Smrg ;; 16456c321187Smrg esac 16466c321187Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 16476c321187Smrg ;; 16486c321187Smrgesac 16496c321187Smrg 16506c321187Smrgecho $basic_machine$os 16516c321187Smrgexit 16526c321187Smrg 16536c321187Smrg# Local variables: 16546c321187Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 16556c321187Smrg# time-stamp-start: "timestamp='" 16566c321187Smrg# time-stamp-format: "%:y-%02m-%02d" 16576c321187Smrg# time-stamp-end: "'" 16586c321187Smrg# End: 1659