config.sub revision 8440cca4
18440cca4Smrg#! /bin/sh 28440cca4Smrg# Configuration validation subroutine script. 38440cca4Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 48440cca4Smrg# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 58440cca4Smrg 68440cca4Smrgtimestamp='2003-06-18' 78440cca4Smrg 88440cca4Smrg# This file is (in principle) common to ALL GNU software. 98440cca4Smrg# The presence of a machine in this file suggests that SOME GNU software 108440cca4Smrg# can handle that machine. It does not imply ALL GNU software can. 118440cca4Smrg# 128440cca4Smrg# This file is free software; you can redistribute it and/or modify 138440cca4Smrg# it under the terms of the GNU General Public License as published by 148440cca4Smrg# the Free Software Foundation; either version 2 of the License, or 158440cca4Smrg# (at your option) any later version. 168440cca4Smrg# 178440cca4Smrg# This program is distributed in the hope that it will be useful, 188440cca4Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 198440cca4Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 208440cca4Smrg# GNU General Public License for more details. 218440cca4Smrg# 228440cca4Smrg# You should have received a copy of the GNU General Public License 238440cca4Smrg# along with this program; if not, write to the Free Software 248440cca4Smrg# Foundation, Inc., 59 Temple Place - Suite 330, 258440cca4Smrg# Boston, MA 02111-1307, USA. 268440cca4Smrg 278440cca4Smrg# As a special exception to the GNU General Public License, if you 288440cca4Smrg# distribute this file as part of a program that contains a 298440cca4Smrg# configuration script generated by Autoconf, you may include it under 308440cca4Smrg# the same distribution terms that you use for the rest of that program. 318440cca4Smrg 328440cca4Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 338440cca4Smrg# diff and a properly formatted ChangeLog entry. 348440cca4Smrg# 358440cca4Smrg# Configuration subroutine to validate and canonicalize a configuration type. 368440cca4Smrg# Supply the specified configuration type as an argument. 378440cca4Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 388440cca4Smrg# Otherwise, we print the canonical config type on stdout and succeed. 398440cca4Smrg 408440cca4Smrg# This file is supposed to be the same for all GNU packages 418440cca4Smrg# and recognize all the CPU types, system types and aliases 428440cca4Smrg# that are meaningful with *any* GNU software. 438440cca4Smrg# Each package is responsible for reporting which valid configurations 448440cca4Smrg# it does not support. The user should be able to distinguish 458440cca4Smrg# a failure to support a valid configuration from a meaningless 468440cca4Smrg# configuration. 478440cca4Smrg 488440cca4Smrg# The goal of this file is to map all the various variations of a given 498440cca4Smrg# machine specification into a single specification in the form: 508440cca4Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 518440cca4Smrg# or in some cases, the newer four-part form: 528440cca4Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 538440cca4Smrg# It is wrong to echo any other type of specification. 548440cca4Smrg 558440cca4Smrgme=`echo "$0" | sed -e 's,.*/,,'` 568440cca4Smrg 578440cca4Smrgusage="\ 588440cca4SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 598440cca4Smrg $0 [OPTION] ALIAS 608440cca4Smrg 618440cca4SmrgCanonicalize a configuration name. 628440cca4Smrg 638440cca4SmrgOperation modes: 648440cca4Smrg -h, --help print this help, then exit 658440cca4Smrg -t, --time-stamp print date of last modification, then exit 668440cca4Smrg -v, --version print version number, then exit 678440cca4Smrg 688440cca4SmrgReport bugs and patches to <config-patches@gnu.org>." 698440cca4Smrg 708440cca4Smrgversion="\ 718440cca4SmrgGNU config.sub ($timestamp) 728440cca4Smrg 738440cca4SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 748440cca4SmrgFree Software Foundation, Inc. 758440cca4Smrg 768440cca4SmrgThis is free software; see the source for copying conditions. There is NO 778440cca4Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 788440cca4Smrg 798440cca4Smrghelp=" 808440cca4SmrgTry \`$me --help' for more information." 818440cca4Smrg 828440cca4Smrg# Parse command line 838440cca4Smrgwhile test $# -gt 0 ; do 848440cca4Smrg case $1 in 858440cca4Smrg --time-stamp | --time* | -t ) 868440cca4Smrg echo "$timestamp" ; exit 0 ;; 878440cca4Smrg --version | -v ) 888440cca4Smrg echo "$version" ; exit 0 ;; 898440cca4Smrg --help | --h* | -h ) 908440cca4Smrg echo "$usage"; exit 0 ;; 918440cca4Smrg -- ) # Stop option processing 928440cca4Smrg shift; break ;; 938440cca4Smrg - ) # Use stdin as input. 948440cca4Smrg break ;; 958440cca4Smrg -* ) 968440cca4Smrg echo "$me: invalid option $1$help" 978440cca4Smrg exit 1 ;; 988440cca4Smrg 998440cca4Smrg *local*) 1008440cca4Smrg # First pass through any local machine types. 1018440cca4Smrg echo $1 1028440cca4Smrg exit 0;; 1038440cca4Smrg 1048440cca4Smrg * ) 1058440cca4Smrg break ;; 1068440cca4Smrg esac 1078440cca4Smrgdone 1088440cca4Smrg 1098440cca4Smrgcase $# in 1108440cca4Smrg 0) echo "$me: missing argument$help" >&2 1118440cca4Smrg exit 1;; 1128440cca4Smrg 1) ;; 1138440cca4Smrg *) echo "$me: too many arguments$help" >&2 1148440cca4Smrg exit 1;; 1158440cca4Smrgesac 1168440cca4Smrg 1178440cca4Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 1188440cca4Smrg# Here we must recognize all the valid KERNEL-OS combinations. 1198440cca4Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 1208440cca4Smrgcase $maybe_os in 1218440cca4Smrg nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 1228440cca4Smrg os=-$maybe_os 1238440cca4Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 1248440cca4Smrg ;; 1258440cca4Smrg *) 1268440cca4Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 1278440cca4Smrg if [ $basic_machine != $1 ] 1288440cca4Smrg then os=`echo $1 | sed 's/.*-/-/'` 1298440cca4Smrg else os=; fi 1308440cca4Smrg ;; 1318440cca4Smrgesac 1328440cca4Smrg 1338440cca4Smrg### Let's recognize common machines as not being operating systems so 1348440cca4Smrg### that things like config.sub decstation-3100 work. We also 1358440cca4Smrg### recognize some manufacturers as not being operating systems, so we 1368440cca4Smrg### can provide default operating systems below. 1378440cca4Smrgcase $os in 1388440cca4Smrg -sun*os*) 1398440cca4Smrg # Prevent following clause from handling this invalid input. 1408440cca4Smrg ;; 1418440cca4Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 1428440cca4Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 1438440cca4Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 1448440cca4Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 1458440cca4Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 1468440cca4Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 1478440cca4Smrg -apple | -axis) 1488440cca4Smrg os= 1498440cca4Smrg basic_machine=$1 1508440cca4Smrg ;; 1518440cca4Smrg -sim | -cisco | -oki | -wec | -winbond) 1528440cca4Smrg os= 1538440cca4Smrg basic_machine=$1 1548440cca4Smrg ;; 1558440cca4Smrg -scout) 1568440cca4Smrg ;; 1578440cca4Smrg -wrs) 1588440cca4Smrg os=-vxworks 1598440cca4Smrg basic_machine=$1 1608440cca4Smrg ;; 1618440cca4Smrg -chorusos*) 1628440cca4Smrg os=-chorusos 1638440cca4Smrg basic_machine=$1 1648440cca4Smrg ;; 1658440cca4Smrg -chorusrdb) 1668440cca4Smrg os=-chorusrdb 1678440cca4Smrg basic_machine=$1 1688440cca4Smrg ;; 1698440cca4Smrg -hiux*) 1708440cca4Smrg os=-hiuxwe2 1718440cca4Smrg ;; 1728440cca4Smrg -sco5) 1738440cca4Smrg os=-sco3.2v5 1748440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1758440cca4Smrg ;; 1768440cca4Smrg -sco4) 1778440cca4Smrg os=-sco3.2v4 1788440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1798440cca4Smrg ;; 1808440cca4Smrg -sco3.2.[4-9]*) 1818440cca4Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1828440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1838440cca4Smrg ;; 1848440cca4Smrg -sco3.2v[4-9]*) 1858440cca4Smrg # Don't forget version if it is 3.2v4 or newer. 1868440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1878440cca4Smrg ;; 1888440cca4Smrg -sco*) 1898440cca4Smrg os=-sco3.2v2 1908440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1918440cca4Smrg ;; 1928440cca4Smrg -udk*) 1938440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1948440cca4Smrg ;; 1958440cca4Smrg -isc) 1968440cca4Smrg os=-isc2.2 1978440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1988440cca4Smrg ;; 1998440cca4Smrg -clix*) 2008440cca4Smrg basic_machine=clipper-intergraph 2018440cca4Smrg ;; 2028440cca4Smrg -isc*) 2038440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2048440cca4Smrg ;; 2058440cca4Smrg -lynx*) 2068440cca4Smrg os=-lynxos 2078440cca4Smrg ;; 2088440cca4Smrg -ptx*) 2098440cca4Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 2108440cca4Smrg ;; 2118440cca4Smrg -windowsnt*) 2128440cca4Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 2138440cca4Smrg ;; 2148440cca4Smrg -psos*) 2158440cca4Smrg os=-psos 2168440cca4Smrg ;; 2178440cca4Smrg -mint | -mint[0-9]*) 2188440cca4Smrg basic_machine=m68k-atari 2198440cca4Smrg os=-mint 2208440cca4Smrg ;; 2218440cca4Smrgesac 2228440cca4Smrg 2238440cca4Smrg# Decode aliases for certain CPU-COMPANY combinations. 2248440cca4Smrgcase $basic_machine in 2258440cca4Smrg # Recognize the basic CPU types without company name. 2268440cca4Smrg # Some are omitted here because they have special meanings below. 2278440cca4Smrg 1750a | 580 \ 2288440cca4Smrg | a29k \ 2298440cca4Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 2308440cca4Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 2318440cca4Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 2328440cca4Smrg | c4x | clipper \ 2338440cca4Smrg | d10v | d30v | dlx | dsp16xx \ 2348440cca4Smrg | fr30 | frv \ 2358440cca4Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 2368440cca4Smrg | i370 | i860 | i960 | ia64 \ 2378440cca4Smrg | ip2k \ 2388440cca4Smrg | m32r | m68000 | m68k | m88k | mcore \ 2398440cca4Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 2408440cca4Smrg | mips16 \ 2418440cca4Smrg | mips64 | mips64el \ 2428440cca4Smrg | mips64vr | mips64vrel \ 2438440cca4Smrg | mips64orion | mips64orionel \ 2448440cca4Smrg | mips64vr4100 | mips64vr4100el \ 2458440cca4Smrg | mips64vr4300 | mips64vr4300el \ 2468440cca4Smrg | mips64vr5000 | mips64vr5000el \ 2478440cca4Smrg | mipsisa32 | mipsisa32el \ 2488440cca4Smrg | mipsisa32r2 | mipsisa32r2el \ 2498440cca4Smrg | mipsisa64 | mipsisa64el \ 2508440cca4Smrg | mipsisa64sb1 | mipsisa64sb1el \ 2518440cca4Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 2528440cca4Smrg | mipstx39 | mipstx39el \ 2538440cca4Smrg | mn10200 | mn10300 \ 2548440cca4Smrg | msp430 \ 2558440cca4Smrg | ns16k | ns32k \ 2568440cca4Smrg | openrisc | or32 \ 2578440cca4Smrg | pdp10 | pdp11 | pj | pjl \ 2588440cca4Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 2598440cca4Smrg | pyramid \ 2608440cca4Smrg | s390 | s390x \ 2618440cca4Smrg | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 2628440cca4Smrg | sh64 | sh64le \ 2638440cca4Smrg | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 2648440cca4Smrg | strongarm \ 2658440cca4Smrg | tahoe | thumb | tic4x | tic80 | tron \ 2668440cca4Smrg | v850 | v850e \ 2678440cca4Smrg | we32k \ 2688440cca4Smrg | x86 | xscale | xstormy16 | xtensa \ 2698440cca4Smrg | z8k) 2708440cca4Smrg basic_machine=$basic_machine-unknown 2718440cca4Smrg ;; 2728440cca4Smrg m6811 | m68hc11 | m6812 | m68hc12) 2738440cca4Smrg # Motorola 68HC11/12. 2748440cca4Smrg basic_machine=$basic_machine-unknown 2758440cca4Smrg os=-none 2768440cca4Smrg ;; 2778440cca4Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 2788440cca4Smrg ;; 2798440cca4Smrg 2808440cca4Smrg # We use `pc' rather than `unknown' 2818440cca4Smrg # because (1) that's what they normally are, and 2828440cca4Smrg # (2) the word "unknown" tends to confuse beginning users. 2838440cca4Smrg i*86 | x86_64) 2848440cca4Smrg basic_machine=$basic_machine-pc 2858440cca4Smrg ;; 2868440cca4Smrg # Object if more than one company name word. 2878440cca4Smrg *-*-*) 2888440cca4Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 2898440cca4Smrg exit 1 2908440cca4Smrg ;; 2918440cca4Smrg # Recognize the basic CPU types with company name. 2928440cca4Smrg 580-* \ 2938440cca4Smrg | a29k-* \ 2948440cca4Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 2958440cca4Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 2968440cca4Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 2978440cca4Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 2988440cca4Smrg | avr-* \ 2998440cca4Smrg | bs2000-* \ 3008440cca4Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 3018440cca4Smrg | clipper-* | cydra-* \ 3028440cca4Smrg | d10v-* | d30v-* | dlx-* \ 3038440cca4Smrg | elxsi-* \ 3048440cca4Smrg | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 3058440cca4Smrg | h8300-* | h8500-* \ 3068440cca4Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 3078440cca4Smrg | i*86-* | i860-* | i960-* | ia64-* \ 3088440cca4Smrg | ip2k-* \ 3098440cca4Smrg | m32r-* \ 3108440cca4Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 3118440cca4Smrg | m88110-* | m88k-* | mcore-* \ 3128440cca4Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 3138440cca4Smrg | mips16-* \ 3148440cca4Smrg | mips64-* | mips64el-* \ 3158440cca4Smrg | mips64vr-* | mips64vrel-* \ 3168440cca4Smrg | mips64orion-* | mips64orionel-* \ 3178440cca4Smrg | mips64vr4100-* | mips64vr4100el-* \ 3188440cca4Smrg | mips64vr4300-* | mips64vr4300el-* \ 3198440cca4Smrg | mips64vr5000-* | mips64vr5000el-* \ 3208440cca4Smrg | mipsisa32-* | mipsisa32el-* \ 3218440cca4Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 3228440cca4Smrg | mipsisa64-* | mipsisa64el-* \ 3238440cca4Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 3248440cca4Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 3258440cca4Smrg | mipstx39-* | mipstx39el-* \ 3268440cca4Smrg | msp430-* \ 3278440cca4Smrg | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 3288440cca4Smrg | orion-* \ 3298440cca4Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 3308440cca4Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 3318440cca4Smrg | pyramid-* \ 3328440cca4Smrg | romp-* | rs6000-* \ 3338440cca4Smrg | s390-* | s390x-* \ 3348440cca4Smrg | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 3358440cca4Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 3368440cca4Smrg | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 3378440cca4Smrg | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 3388440cca4Smrg | tahoe-* | thumb-* \ 3398440cca4Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 3408440cca4Smrg | tron-* \ 3418440cca4Smrg | v850-* | v850e-* | vax-* \ 3428440cca4Smrg | we32k-* \ 3438440cca4Smrg | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 3448440cca4Smrg | xtensa-* \ 3458440cca4Smrg | ymp-* \ 3468440cca4Smrg | z8k-*) 3478440cca4Smrg ;; 3488440cca4Smrg # Recognize the various machine names and aliases which stand 3498440cca4Smrg # for a CPU type and a company and sometimes even an OS. 3508440cca4Smrg 386bsd) 3518440cca4Smrg basic_machine=i386-unknown 3528440cca4Smrg os=-bsd 3538440cca4Smrg ;; 3548440cca4Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 3558440cca4Smrg basic_machine=m68000-att 3568440cca4Smrg ;; 3578440cca4Smrg 3b*) 3588440cca4Smrg basic_machine=we32k-att 3598440cca4Smrg ;; 3608440cca4Smrg a29khif) 3618440cca4Smrg basic_machine=a29k-amd 3628440cca4Smrg os=-udi 3638440cca4Smrg ;; 3648440cca4Smrg adobe68k) 3658440cca4Smrg basic_machine=m68010-adobe 3668440cca4Smrg os=-scout 3678440cca4Smrg ;; 3688440cca4Smrg alliant | fx80) 3698440cca4Smrg basic_machine=fx80-alliant 3708440cca4Smrg ;; 3718440cca4Smrg altos | altos3068) 3728440cca4Smrg basic_machine=m68k-altos 3738440cca4Smrg ;; 3748440cca4Smrg am29k) 3758440cca4Smrg basic_machine=a29k-none 3768440cca4Smrg os=-bsd 3778440cca4Smrg ;; 3788440cca4Smrg amd64) 3798440cca4Smrg basic_machine=x86_64-pc 3808440cca4Smrg ;; 3818440cca4Smrg amdahl) 3828440cca4Smrg basic_machine=580-amdahl 3838440cca4Smrg os=-sysv 3848440cca4Smrg ;; 3858440cca4Smrg amiga | amiga-*) 3868440cca4Smrg basic_machine=m68k-unknown 3878440cca4Smrg ;; 3888440cca4Smrg amigaos | amigados) 3898440cca4Smrg basic_machine=m68k-unknown 3908440cca4Smrg os=-amigaos 3918440cca4Smrg ;; 3928440cca4Smrg amigaunix | amix) 3938440cca4Smrg basic_machine=m68k-unknown 3948440cca4Smrg os=-sysv4 3958440cca4Smrg ;; 3968440cca4Smrg apollo68) 3978440cca4Smrg basic_machine=m68k-apollo 3988440cca4Smrg os=-sysv 3998440cca4Smrg ;; 4008440cca4Smrg apollo68bsd) 4018440cca4Smrg basic_machine=m68k-apollo 4028440cca4Smrg os=-bsd 4038440cca4Smrg ;; 4048440cca4Smrg aux) 4058440cca4Smrg basic_machine=m68k-apple 4068440cca4Smrg os=-aux 4078440cca4Smrg ;; 4088440cca4Smrg balance) 4098440cca4Smrg basic_machine=ns32k-sequent 4108440cca4Smrg os=-dynix 4118440cca4Smrg ;; 4128440cca4Smrg c90) 4138440cca4Smrg basic_machine=c90-cray 4148440cca4Smrg os=-unicos 4158440cca4Smrg ;; 4168440cca4Smrg convex-c1) 4178440cca4Smrg basic_machine=c1-convex 4188440cca4Smrg os=-bsd 4198440cca4Smrg ;; 4208440cca4Smrg convex-c2) 4218440cca4Smrg basic_machine=c2-convex 4228440cca4Smrg os=-bsd 4238440cca4Smrg ;; 4248440cca4Smrg convex-c32) 4258440cca4Smrg basic_machine=c32-convex 4268440cca4Smrg os=-bsd 4278440cca4Smrg ;; 4288440cca4Smrg convex-c34) 4298440cca4Smrg basic_machine=c34-convex 4308440cca4Smrg os=-bsd 4318440cca4Smrg ;; 4328440cca4Smrg convex-c38) 4338440cca4Smrg basic_machine=c38-convex 4348440cca4Smrg os=-bsd 4358440cca4Smrg ;; 4368440cca4Smrg cray | j90) 4378440cca4Smrg basic_machine=j90-cray 4388440cca4Smrg os=-unicos 4398440cca4Smrg ;; 4408440cca4Smrg crds | unos) 4418440cca4Smrg basic_machine=m68k-crds 4428440cca4Smrg ;; 4438440cca4Smrg cris | cris-* | etrax*) 4448440cca4Smrg basic_machine=cris-axis 4458440cca4Smrg ;; 4468440cca4Smrg da30 | da30-*) 4478440cca4Smrg basic_machine=m68k-da30 4488440cca4Smrg ;; 4498440cca4Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 4508440cca4Smrg basic_machine=mips-dec 4518440cca4Smrg ;; 4528440cca4Smrg decsystem10* | dec10*) 4538440cca4Smrg basic_machine=pdp10-dec 4548440cca4Smrg os=-tops10 4558440cca4Smrg ;; 4568440cca4Smrg decsystem20* | dec20*) 4578440cca4Smrg basic_machine=pdp10-dec 4588440cca4Smrg os=-tops20 4598440cca4Smrg ;; 4608440cca4Smrg delta | 3300 | motorola-3300 | motorola-delta \ 4618440cca4Smrg | 3300-motorola | delta-motorola) 4628440cca4Smrg basic_machine=m68k-motorola 4638440cca4Smrg ;; 4648440cca4Smrg delta88) 4658440cca4Smrg basic_machine=m88k-motorola 4668440cca4Smrg os=-sysv3 4678440cca4Smrg ;; 4688440cca4Smrg dpx20 | dpx20-*) 4698440cca4Smrg basic_machine=rs6000-bull 4708440cca4Smrg os=-bosx 4718440cca4Smrg ;; 4728440cca4Smrg dpx2* | dpx2*-bull) 4738440cca4Smrg basic_machine=m68k-bull 4748440cca4Smrg os=-sysv3 4758440cca4Smrg ;; 4768440cca4Smrg ebmon29k) 4778440cca4Smrg basic_machine=a29k-amd 4788440cca4Smrg os=-ebmon 4798440cca4Smrg ;; 4808440cca4Smrg elxsi) 4818440cca4Smrg basic_machine=elxsi-elxsi 4828440cca4Smrg os=-bsd 4838440cca4Smrg ;; 4848440cca4Smrg encore | umax | mmax) 4858440cca4Smrg basic_machine=ns32k-encore 4868440cca4Smrg ;; 4878440cca4Smrg es1800 | OSE68k | ose68k | ose | OSE) 4888440cca4Smrg basic_machine=m68k-ericsson 4898440cca4Smrg os=-ose 4908440cca4Smrg ;; 4918440cca4Smrg fx2800) 4928440cca4Smrg basic_machine=i860-alliant 4938440cca4Smrg ;; 4948440cca4Smrg genix) 4958440cca4Smrg basic_machine=ns32k-ns 4968440cca4Smrg ;; 4978440cca4Smrg gmicro) 4988440cca4Smrg basic_machine=tron-gmicro 4998440cca4Smrg os=-sysv 5008440cca4Smrg ;; 5018440cca4Smrg go32) 5028440cca4Smrg basic_machine=i386-pc 5038440cca4Smrg os=-go32 5048440cca4Smrg ;; 5058440cca4Smrg h3050r* | hiux*) 5068440cca4Smrg basic_machine=hppa1.1-hitachi 5078440cca4Smrg os=-hiuxwe2 5088440cca4Smrg ;; 5098440cca4Smrg h8300hms) 5108440cca4Smrg basic_machine=h8300-hitachi 5118440cca4Smrg os=-hms 5128440cca4Smrg ;; 5138440cca4Smrg h8300xray) 5148440cca4Smrg basic_machine=h8300-hitachi 5158440cca4Smrg os=-xray 5168440cca4Smrg ;; 5178440cca4Smrg h8500hms) 5188440cca4Smrg basic_machine=h8500-hitachi 5198440cca4Smrg os=-hms 5208440cca4Smrg ;; 5218440cca4Smrg harris) 5228440cca4Smrg basic_machine=m88k-harris 5238440cca4Smrg os=-sysv3 5248440cca4Smrg ;; 5258440cca4Smrg hp300-*) 5268440cca4Smrg basic_machine=m68k-hp 5278440cca4Smrg ;; 5288440cca4Smrg hp300bsd) 5298440cca4Smrg basic_machine=m68k-hp 5308440cca4Smrg os=-bsd 5318440cca4Smrg ;; 5328440cca4Smrg hp300hpux) 5338440cca4Smrg basic_machine=m68k-hp 5348440cca4Smrg os=-hpux 5358440cca4Smrg ;; 5368440cca4Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 5378440cca4Smrg basic_machine=hppa1.0-hp 5388440cca4Smrg ;; 5398440cca4Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 5408440cca4Smrg basic_machine=m68000-hp 5418440cca4Smrg ;; 5428440cca4Smrg hp9k3[2-9][0-9]) 5438440cca4Smrg basic_machine=m68k-hp 5448440cca4Smrg ;; 5458440cca4Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 5468440cca4Smrg basic_machine=hppa1.0-hp 5478440cca4Smrg ;; 5488440cca4Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 5498440cca4Smrg basic_machine=hppa1.1-hp 5508440cca4Smrg ;; 5518440cca4Smrg hp9k78[0-9] | hp78[0-9]) 5528440cca4Smrg # FIXME: really hppa2.0-hp 5538440cca4Smrg basic_machine=hppa1.1-hp 5548440cca4Smrg ;; 5558440cca4Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 5568440cca4Smrg # FIXME: really hppa2.0-hp 5578440cca4Smrg basic_machine=hppa1.1-hp 5588440cca4Smrg ;; 5598440cca4Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 5608440cca4Smrg basic_machine=hppa1.1-hp 5618440cca4Smrg ;; 5628440cca4Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 5638440cca4Smrg basic_machine=hppa1.0-hp 5648440cca4Smrg ;; 5658440cca4Smrg hppa-next) 5668440cca4Smrg os=-nextstep3 5678440cca4Smrg ;; 5688440cca4Smrg hppaosf) 5698440cca4Smrg basic_machine=hppa1.1-hp 5708440cca4Smrg os=-osf 5718440cca4Smrg ;; 5728440cca4Smrg hppro) 5738440cca4Smrg basic_machine=hppa1.1-hp 5748440cca4Smrg os=-proelf 5758440cca4Smrg ;; 5768440cca4Smrg i370-ibm* | ibm*) 5778440cca4Smrg basic_machine=i370-ibm 5788440cca4Smrg ;; 5798440cca4Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 5808440cca4Smrg i*86v32) 5818440cca4Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5828440cca4Smrg os=-sysv32 5838440cca4Smrg ;; 5848440cca4Smrg i*86v4*) 5858440cca4Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5868440cca4Smrg os=-sysv4 5878440cca4Smrg ;; 5888440cca4Smrg i*86v) 5898440cca4Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5908440cca4Smrg os=-sysv 5918440cca4Smrg ;; 5928440cca4Smrg i*86sol2) 5938440cca4Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5948440cca4Smrg os=-solaris2 5958440cca4Smrg ;; 5968440cca4Smrg i386mach) 5978440cca4Smrg basic_machine=i386-mach 5988440cca4Smrg os=-mach 5998440cca4Smrg ;; 6008440cca4Smrg i386-vsta | vsta) 6018440cca4Smrg basic_machine=i386-unknown 6028440cca4Smrg os=-vsta 6038440cca4Smrg ;; 6048440cca4Smrg iris | iris4d) 6058440cca4Smrg basic_machine=mips-sgi 6068440cca4Smrg case $os in 6078440cca4Smrg -irix*) 6088440cca4Smrg ;; 6098440cca4Smrg *) 6108440cca4Smrg os=-irix4 6118440cca4Smrg ;; 6128440cca4Smrg esac 6138440cca4Smrg ;; 6148440cca4Smrg isi68 | isi) 6158440cca4Smrg basic_machine=m68k-isi 6168440cca4Smrg os=-sysv 6178440cca4Smrg ;; 6188440cca4Smrg m88k-omron*) 6198440cca4Smrg basic_machine=m88k-omron 6208440cca4Smrg ;; 6218440cca4Smrg magnum | m3230) 6228440cca4Smrg basic_machine=mips-mips 6238440cca4Smrg os=-sysv 6248440cca4Smrg ;; 6258440cca4Smrg merlin) 6268440cca4Smrg basic_machine=ns32k-utek 6278440cca4Smrg os=-sysv 6288440cca4Smrg ;; 6298440cca4Smrg mingw32) 6308440cca4Smrg basic_machine=i386-pc 6318440cca4Smrg os=-mingw32 6328440cca4Smrg ;; 6338440cca4Smrg miniframe) 6348440cca4Smrg basic_machine=m68000-convergent 6358440cca4Smrg ;; 6368440cca4Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 6378440cca4Smrg basic_machine=m68k-atari 6388440cca4Smrg os=-mint 6398440cca4Smrg ;; 6408440cca4Smrg mips3*-*) 6418440cca4Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 6428440cca4Smrg ;; 6438440cca4Smrg mips3*) 6448440cca4Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 6458440cca4Smrg ;; 6468440cca4Smrg mmix*) 6478440cca4Smrg basic_machine=mmix-knuth 6488440cca4Smrg os=-mmixware 6498440cca4Smrg ;; 6508440cca4Smrg monitor) 6518440cca4Smrg basic_machine=m68k-rom68k 6528440cca4Smrg os=-coff 6538440cca4Smrg ;; 6548440cca4Smrg morphos) 6558440cca4Smrg basic_machine=powerpc-unknown 6568440cca4Smrg os=-morphos 6578440cca4Smrg ;; 6588440cca4Smrg msdos) 6598440cca4Smrg basic_machine=i386-pc 6608440cca4Smrg os=-msdos 6618440cca4Smrg ;; 6628440cca4Smrg mvs) 6638440cca4Smrg basic_machine=i370-ibm 6648440cca4Smrg os=-mvs 6658440cca4Smrg ;; 6668440cca4Smrg ncr3000) 6678440cca4Smrg basic_machine=i486-ncr 6688440cca4Smrg os=-sysv4 6698440cca4Smrg ;; 6708440cca4Smrg netbsd386) 6718440cca4Smrg basic_machine=i386-unknown 6728440cca4Smrg os=-netbsd 6738440cca4Smrg ;; 6748440cca4Smrg netwinder) 6758440cca4Smrg basic_machine=armv4l-rebel 6768440cca4Smrg os=-linux 6778440cca4Smrg ;; 6788440cca4Smrg news | news700 | news800 | news900) 6798440cca4Smrg basic_machine=m68k-sony 6808440cca4Smrg os=-newsos 6818440cca4Smrg ;; 6828440cca4Smrg news1000) 6838440cca4Smrg basic_machine=m68030-sony 6848440cca4Smrg os=-newsos 6858440cca4Smrg ;; 6868440cca4Smrg news-3600 | risc-news) 6878440cca4Smrg basic_machine=mips-sony 6888440cca4Smrg os=-newsos 6898440cca4Smrg ;; 6908440cca4Smrg necv70) 6918440cca4Smrg basic_machine=v70-nec 6928440cca4Smrg os=-sysv 6938440cca4Smrg ;; 6948440cca4Smrg next | m*-next ) 6958440cca4Smrg basic_machine=m68k-next 6968440cca4Smrg case $os in 6978440cca4Smrg -nextstep* ) 6988440cca4Smrg ;; 6998440cca4Smrg -ns2*) 7008440cca4Smrg os=-nextstep2 7018440cca4Smrg ;; 7028440cca4Smrg *) 7038440cca4Smrg os=-nextstep3 7048440cca4Smrg ;; 7058440cca4Smrg esac 7068440cca4Smrg ;; 7078440cca4Smrg nh3000) 7088440cca4Smrg basic_machine=m68k-harris 7098440cca4Smrg os=-cxux 7108440cca4Smrg ;; 7118440cca4Smrg nh[45]000) 7128440cca4Smrg basic_machine=m88k-harris 7138440cca4Smrg os=-cxux 7148440cca4Smrg ;; 7158440cca4Smrg nindy960) 7168440cca4Smrg basic_machine=i960-intel 7178440cca4Smrg os=-nindy 7188440cca4Smrg ;; 7198440cca4Smrg mon960) 7208440cca4Smrg basic_machine=i960-intel 7218440cca4Smrg os=-mon960 7228440cca4Smrg ;; 7238440cca4Smrg nonstopux) 7248440cca4Smrg basic_machine=mips-compaq 7258440cca4Smrg os=-nonstopux 7268440cca4Smrg ;; 7278440cca4Smrg np1) 7288440cca4Smrg basic_machine=np1-gould 7298440cca4Smrg ;; 7308440cca4Smrg nv1) 7318440cca4Smrg basic_machine=nv1-cray 7328440cca4Smrg os=-unicosmp 7338440cca4Smrg ;; 7348440cca4Smrg nsr-tandem) 7358440cca4Smrg basic_machine=nsr-tandem 7368440cca4Smrg ;; 7378440cca4Smrg op50n-* | op60c-*) 7388440cca4Smrg basic_machine=hppa1.1-oki 7398440cca4Smrg os=-proelf 7408440cca4Smrg ;; 7418440cca4Smrg or32 | or32-*) 7428440cca4Smrg basic_machine=or32-unknown 7438440cca4Smrg os=-coff 7448440cca4Smrg ;; 7458440cca4Smrg OSE68000 | ose68000) 7468440cca4Smrg basic_machine=m68000-ericsson 7478440cca4Smrg os=-ose 7488440cca4Smrg ;; 7498440cca4Smrg os68k) 7508440cca4Smrg basic_machine=m68k-none 7518440cca4Smrg os=-os68k 7528440cca4Smrg ;; 7538440cca4Smrg pa-hitachi) 7548440cca4Smrg basic_machine=hppa1.1-hitachi 7558440cca4Smrg os=-hiuxwe2 7568440cca4Smrg ;; 7578440cca4Smrg paragon) 7588440cca4Smrg basic_machine=i860-intel 7598440cca4Smrg os=-osf 7608440cca4Smrg ;; 7618440cca4Smrg pbd) 7628440cca4Smrg basic_machine=sparc-tti 7638440cca4Smrg ;; 7648440cca4Smrg pbb) 7658440cca4Smrg basic_machine=m68k-tti 7668440cca4Smrg ;; 7678440cca4Smrg pc532 | pc532-*) 7688440cca4Smrg basic_machine=ns32k-pc532 7698440cca4Smrg ;; 7708440cca4Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 7718440cca4Smrg basic_machine=i586-pc 7728440cca4Smrg ;; 7738440cca4Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 7748440cca4Smrg basic_machine=i686-pc 7758440cca4Smrg ;; 7768440cca4Smrg pentiumii | pentium2 | pentiumiii | pentium3) 7778440cca4Smrg basic_machine=i686-pc 7788440cca4Smrg ;; 7798440cca4Smrg pentium4) 7808440cca4Smrg basic_machine=i786-pc 7818440cca4Smrg ;; 7828440cca4Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 7838440cca4Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 7848440cca4Smrg ;; 7858440cca4Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 7868440cca4Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 7878440cca4Smrg ;; 7888440cca4Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 7898440cca4Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 7908440cca4Smrg ;; 7918440cca4Smrg pentium4-*) 7928440cca4Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 7938440cca4Smrg ;; 7948440cca4Smrg pn) 7958440cca4Smrg basic_machine=pn-gould 7968440cca4Smrg ;; 7978440cca4Smrg power) basic_machine=power-ibm 7988440cca4Smrg ;; 7998440cca4Smrg ppc) basic_machine=powerpc-unknown 8008440cca4Smrg ;; 8018440cca4Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 8028440cca4Smrg ;; 8038440cca4Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 8048440cca4Smrg basic_machine=powerpcle-unknown 8058440cca4Smrg ;; 8068440cca4Smrg ppcle-* | powerpclittle-*) 8078440cca4Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 8088440cca4Smrg ;; 8098440cca4Smrg ppc64) basic_machine=powerpc64-unknown 8108440cca4Smrg ;; 8118440cca4Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 8128440cca4Smrg ;; 8138440cca4Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 8148440cca4Smrg basic_machine=powerpc64le-unknown 8158440cca4Smrg ;; 8168440cca4Smrg ppc64le-* | powerpc64little-*) 8178440cca4Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 8188440cca4Smrg ;; 8198440cca4Smrg ps2) 8208440cca4Smrg basic_machine=i386-ibm 8218440cca4Smrg ;; 8228440cca4Smrg pw32) 8238440cca4Smrg basic_machine=i586-unknown 8248440cca4Smrg os=-pw32 8258440cca4Smrg ;; 8268440cca4Smrg rom68k) 8278440cca4Smrg basic_machine=m68k-rom68k 8288440cca4Smrg os=-coff 8298440cca4Smrg ;; 8308440cca4Smrg rm[46]00) 8318440cca4Smrg basic_machine=mips-siemens 8328440cca4Smrg ;; 8338440cca4Smrg rtpc | rtpc-*) 8348440cca4Smrg basic_machine=romp-ibm 8358440cca4Smrg ;; 8368440cca4Smrg sa29200) 8378440cca4Smrg basic_machine=a29k-amd 8388440cca4Smrg os=-udi 8398440cca4Smrg ;; 8408440cca4Smrg sb1) 8418440cca4Smrg basic_machine=mipsisa64sb1-unknown 8428440cca4Smrg ;; 8438440cca4Smrg sb1el) 8448440cca4Smrg basic_machine=mipsisa64sb1el-unknown 8458440cca4Smrg ;; 8468440cca4Smrg sei) 8478440cca4Smrg basic_machine=mips-sei 8488440cca4Smrg os=-seiux 8498440cca4Smrg ;; 8508440cca4Smrg sequent) 8518440cca4Smrg basic_machine=i386-sequent 8528440cca4Smrg ;; 8538440cca4Smrg sh) 8548440cca4Smrg basic_machine=sh-hitachi 8558440cca4Smrg os=-hms 8568440cca4Smrg ;; 8578440cca4Smrg sh64) 8588440cca4Smrg basic_machine=sh64-unknown 8598440cca4Smrg ;; 8608440cca4Smrg sparclite-wrs | simso-wrs) 8618440cca4Smrg basic_machine=sparclite-wrs 8628440cca4Smrg os=-vxworks 8638440cca4Smrg ;; 8648440cca4Smrg sps7) 8658440cca4Smrg basic_machine=m68k-bull 8668440cca4Smrg os=-sysv2 8678440cca4Smrg ;; 8688440cca4Smrg spur) 8698440cca4Smrg basic_machine=spur-unknown 8708440cca4Smrg ;; 8718440cca4Smrg st2000) 8728440cca4Smrg basic_machine=m68k-tandem 8738440cca4Smrg ;; 8748440cca4Smrg stratus) 8758440cca4Smrg basic_machine=i860-stratus 8768440cca4Smrg os=-sysv4 8778440cca4Smrg ;; 8788440cca4Smrg sun2) 8798440cca4Smrg basic_machine=m68000-sun 8808440cca4Smrg ;; 8818440cca4Smrg sun2os3) 8828440cca4Smrg basic_machine=m68000-sun 8838440cca4Smrg os=-sunos3 8848440cca4Smrg ;; 8858440cca4Smrg sun2os4) 8868440cca4Smrg basic_machine=m68000-sun 8878440cca4Smrg os=-sunos4 8888440cca4Smrg ;; 8898440cca4Smrg sun3os3) 8908440cca4Smrg basic_machine=m68k-sun 8918440cca4Smrg os=-sunos3 8928440cca4Smrg ;; 8938440cca4Smrg sun3os4) 8948440cca4Smrg basic_machine=m68k-sun 8958440cca4Smrg os=-sunos4 8968440cca4Smrg ;; 8978440cca4Smrg sun4os3) 8988440cca4Smrg basic_machine=sparc-sun 8998440cca4Smrg os=-sunos3 9008440cca4Smrg ;; 9018440cca4Smrg sun4os4) 9028440cca4Smrg basic_machine=sparc-sun 9038440cca4Smrg os=-sunos4 9048440cca4Smrg ;; 9058440cca4Smrg sun4sol2) 9068440cca4Smrg basic_machine=sparc-sun 9078440cca4Smrg os=-solaris2 9088440cca4Smrg ;; 9098440cca4Smrg sun3 | sun3-*) 9108440cca4Smrg basic_machine=m68k-sun 9118440cca4Smrg ;; 9128440cca4Smrg sun4) 9138440cca4Smrg basic_machine=sparc-sun 9148440cca4Smrg ;; 9158440cca4Smrg sun386 | sun386i | roadrunner) 9168440cca4Smrg basic_machine=i386-sun 9178440cca4Smrg ;; 9188440cca4Smrg sv1) 9198440cca4Smrg basic_machine=sv1-cray 9208440cca4Smrg os=-unicos 9218440cca4Smrg ;; 9228440cca4Smrg symmetry) 9238440cca4Smrg basic_machine=i386-sequent 9248440cca4Smrg os=-dynix 9258440cca4Smrg ;; 9268440cca4Smrg t3e) 9278440cca4Smrg basic_machine=alphaev5-cray 9288440cca4Smrg os=-unicos 9298440cca4Smrg ;; 9308440cca4Smrg t90) 9318440cca4Smrg basic_machine=t90-cray 9328440cca4Smrg os=-unicos 9338440cca4Smrg ;; 9348440cca4Smrg tic54x | c54x*) 9358440cca4Smrg basic_machine=tic54x-unknown 9368440cca4Smrg os=-coff 9378440cca4Smrg ;; 9388440cca4Smrg tic55x | c55x*) 9398440cca4Smrg basic_machine=tic55x-unknown 9408440cca4Smrg os=-coff 9418440cca4Smrg ;; 9428440cca4Smrg tic6x | c6x*) 9438440cca4Smrg basic_machine=tic6x-unknown 9448440cca4Smrg os=-coff 9458440cca4Smrg ;; 9468440cca4Smrg tx39) 9478440cca4Smrg basic_machine=mipstx39-unknown 9488440cca4Smrg ;; 9498440cca4Smrg tx39el) 9508440cca4Smrg basic_machine=mipstx39el-unknown 9518440cca4Smrg ;; 9528440cca4Smrg toad1) 9538440cca4Smrg basic_machine=pdp10-xkl 9548440cca4Smrg os=-tops20 9558440cca4Smrg ;; 9568440cca4Smrg tower | tower-32) 9578440cca4Smrg basic_machine=m68k-ncr 9588440cca4Smrg ;; 9598440cca4Smrg udi29k) 9608440cca4Smrg basic_machine=a29k-amd 9618440cca4Smrg os=-udi 9628440cca4Smrg ;; 9638440cca4Smrg ultra3) 9648440cca4Smrg basic_machine=a29k-nyu 9658440cca4Smrg os=-sym1 9668440cca4Smrg ;; 9678440cca4Smrg v810 | necv810) 9688440cca4Smrg basic_machine=v810-nec 9698440cca4Smrg os=-none 9708440cca4Smrg ;; 9718440cca4Smrg vaxv) 9728440cca4Smrg basic_machine=vax-dec 9738440cca4Smrg os=-sysv 9748440cca4Smrg ;; 9758440cca4Smrg vms) 9768440cca4Smrg basic_machine=vax-dec 9778440cca4Smrg os=-vms 9788440cca4Smrg ;; 9798440cca4Smrg vpp*|vx|vx-*) 9808440cca4Smrg basic_machine=f301-fujitsu 9818440cca4Smrg ;; 9828440cca4Smrg vxworks960) 9838440cca4Smrg basic_machine=i960-wrs 9848440cca4Smrg os=-vxworks 9858440cca4Smrg ;; 9868440cca4Smrg vxworks68) 9878440cca4Smrg basic_machine=m68k-wrs 9888440cca4Smrg os=-vxworks 9898440cca4Smrg ;; 9908440cca4Smrg vxworks29k) 9918440cca4Smrg basic_machine=a29k-wrs 9928440cca4Smrg os=-vxworks 9938440cca4Smrg ;; 9948440cca4Smrg w65*) 9958440cca4Smrg basic_machine=w65-wdc 9968440cca4Smrg os=-none 9978440cca4Smrg ;; 9988440cca4Smrg w89k-*) 9998440cca4Smrg basic_machine=hppa1.1-winbond 10008440cca4Smrg os=-proelf 10018440cca4Smrg ;; 10028440cca4Smrg xps | xps100) 10038440cca4Smrg basic_machine=xps100-honeywell 10048440cca4Smrg ;; 10058440cca4Smrg ymp) 10068440cca4Smrg basic_machine=ymp-cray 10078440cca4Smrg os=-unicos 10088440cca4Smrg ;; 10098440cca4Smrg z8k-*-coff) 10108440cca4Smrg basic_machine=z8k-unknown 10118440cca4Smrg os=-sim 10128440cca4Smrg ;; 10138440cca4Smrg none) 10148440cca4Smrg basic_machine=none-none 10158440cca4Smrg os=-none 10168440cca4Smrg ;; 10178440cca4Smrg 10188440cca4Smrg# Here we handle the default manufacturer of certain CPU types. It is in 10198440cca4Smrg# some cases the only manufacturer, in others, it is the most popular. 10208440cca4Smrg w89k) 10218440cca4Smrg basic_machine=hppa1.1-winbond 10228440cca4Smrg ;; 10238440cca4Smrg op50n) 10248440cca4Smrg basic_machine=hppa1.1-oki 10258440cca4Smrg ;; 10268440cca4Smrg op60c) 10278440cca4Smrg basic_machine=hppa1.1-oki 10288440cca4Smrg ;; 10298440cca4Smrg romp) 10308440cca4Smrg basic_machine=romp-ibm 10318440cca4Smrg ;; 10328440cca4Smrg rs6000) 10338440cca4Smrg basic_machine=rs6000-ibm 10348440cca4Smrg ;; 10358440cca4Smrg vax) 10368440cca4Smrg basic_machine=vax-dec 10378440cca4Smrg ;; 10388440cca4Smrg pdp10) 10398440cca4Smrg # there are many clones, so DEC is not a safe bet 10408440cca4Smrg basic_machine=pdp10-unknown 10418440cca4Smrg ;; 10428440cca4Smrg pdp11) 10438440cca4Smrg basic_machine=pdp11-dec 10448440cca4Smrg ;; 10458440cca4Smrg we32k) 10468440cca4Smrg basic_machine=we32k-att 10478440cca4Smrg ;; 10488440cca4Smrg sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 10498440cca4Smrg basic_machine=sh-unknown 10508440cca4Smrg ;; 10518440cca4Smrg sh64) 10528440cca4Smrg basic_machine=sh64-unknown 10538440cca4Smrg ;; 10548440cca4Smrg sparc | sparcv9 | sparcv9b) 10558440cca4Smrg basic_machine=sparc-sun 10568440cca4Smrg ;; 10578440cca4Smrg cydra) 10588440cca4Smrg basic_machine=cydra-cydrome 10598440cca4Smrg ;; 10608440cca4Smrg orion) 10618440cca4Smrg basic_machine=orion-highlevel 10628440cca4Smrg ;; 10638440cca4Smrg orion105) 10648440cca4Smrg basic_machine=clipper-highlevel 10658440cca4Smrg ;; 10668440cca4Smrg mac | mpw | mac-mpw) 10678440cca4Smrg basic_machine=m68k-apple 10688440cca4Smrg ;; 10698440cca4Smrg pmac | pmac-mpw) 10708440cca4Smrg basic_machine=powerpc-apple 10718440cca4Smrg ;; 10728440cca4Smrg *-unknown) 10738440cca4Smrg # Make sure to match an already-canonicalized machine name. 10748440cca4Smrg ;; 10758440cca4Smrg *) 10768440cca4Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 10778440cca4Smrg exit 1 10788440cca4Smrg ;; 10798440cca4Smrgesac 10808440cca4Smrg 10818440cca4Smrg# Here we canonicalize certain aliases for manufacturers. 10828440cca4Smrgcase $basic_machine in 10838440cca4Smrg *-digital*) 10848440cca4Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 10858440cca4Smrg ;; 10868440cca4Smrg *-commodore*) 10878440cca4Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 10888440cca4Smrg ;; 10898440cca4Smrg *) 10908440cca4Smrg ;; 10918440cca4Smrgesac 10928440cca4Smrg 10938440cca4Smrg# Decode manufacturer-specific aliases for certain operating systems. 10948440cca4Smrg 10958440cca4Smrgif [ x"$os" != x"" ] 10968440cca4Smrgthen 10978440cca4Smrgcase $os in 10988440cca4Smrg # First match some system type aliases 10998440cca4Smrg # that might get confused with valid system types. 11008440cca4Smrg # -solaris* is a basic system type, with this one exception. 11018440cca4Smrg -solaris1 | -solaris1.*) 11028440cca4Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 11038440cca4Smrg ;; 11048440cca4Smrg -solaris) 11058440cca4Smrg os=-solaris2 11068440cca4Smrg ;; 11078440cca4Smrg -svr4*) 11088440cca4Smrg os=-sysv4 11098440cca4Smrg ;; 11108440cca4Smrg -unixware*) 11118440cca4Smrg os=-sysv4.2uw 11128440cca4Smrg ;; 11138440cca4Smrg -gnu/linux*) 11148440cca4Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 11158440cca4Smrg ;; 11168440cca4Smrg # First accept the basic system types. 11178440cca4Smrg # The portable systems comes first. 11188440cca4Smrg # Each alternative MUST END IN A *, to match a version number. 11198440cca4Smrg # -sysv* is not here because it comes later, after sysvr4. 11208440cca4Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 11218440cca4Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 11228440cca4Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 11238440cca4Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 11248440cca4Smrg | -aos* \ 11258440cca4Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 11268440cca4Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 11278440cca4Smrg | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 11288440cca4Smrg | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 11298440cca4Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 11308440cca4Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 11318440cca4Smrg | -chorusos* | -chorusrdb* \ 11328440cca4Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 11338440cca4Smrg | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 11348440cca4Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 11358440cca4Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 11368440cca4Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 11378440cca4Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 11388440cca4Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 11398440cca4Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) 11408440cca4Smrg # Remember, each alternative MUST END IN *, to match a version number. 11418440cca4Smrg ;; 11428440cca4Smrg -qnx*) 11438440cca4Smrg case $basic_machine in 11448440cca4Smrg x86-* | i*86-*) 11458440cca4Smrg ;; 11468440cca4Smrg *) 11478440cca4Smrg os=-nto$os 11488440cca4Smrg ;; 11498440cca4Smrg esac 11508440cca4Smrg ;; 11518440cca4Smrg -nto-qnx*) 11528440cca4Smrg ;; 11538440cca4Smrg -nto*) 11548440cca4Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 11558440cca4Smrg ;; 11568440cca4Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 11578440cca4Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 11588440cca4Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 11598440cca4Smrg ;; 11608440cca4Smrg -mac*) 11618440cca4Smrg os=`echo $os | sed -e 's|mac|macos|'` 11628440cca4Smrg ;; 11638440cca4Smrg -linux*) 11648440cca4Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 11658440cca4Smrg ;; 11668440cca4Smrg -sunos5*) 11678440cca4Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 11688440cca4Smrg ;; 11698440cca4Smrg -sunos6*) 11708440cca4Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 11718440cca4Smrg ;; 11728440cca4Smrg -opened*) 11738440cca4Smrg os=-openedition 11748440cca4Smrg ;; 11758440cca4Smrg -wince*) 11768440cca4Smrg os=-wince 11778440cca4Smrg ;; 11788440cca4Smrg -osfrose*) 11798440cca4Smrg os=-osfrose 11808440cca4Smrg ;; 11818440cca4Smrg -osf*) 11828440cca4Smrg os=-osf 11838440cca4Smrg ;; 11848440cca4Smrg -utek*) 11858440cca4Smrg os=-bsd 11868440cca4Smrg ;; 11878440cca4Smrg -dynix*) 11888440cca4Smrg os=-bsd 11898440cca4Smrg ;; 11908440cca4Smrg -acis*) 11918440cca4Smrg os=-aos 11928440cca4Smrg ;; 11938440cca4Smrg -atheos*) 11948440cca4Smrg os=-atheos 11958440cca4Smrg ;; 11968440cca4Smrg -386bsd) 11978440cca4Smrg os=-bsd 11988440cca4Smrg ;; 11998440cca4Smrg -ctix* | -uts*) 12008440cca4Smrg os=-sysv 12018440cca4Smrg ;; 12028440cca4Smrg -nova*) 12038440cca4Smrg os=-rtmk-nova 12048440cca4Smrg ;; 12058440cca4Smrg -ns2 ) 12068440cca4Smrg os=-nextstep2 12078440cca4Smrg ;; 12088440cca4Smrg -nsk*) 12098440cca4Smrg os=-nsk 12108440cca4Smrg ;; 12118440cca4Smrg # Preserve the version number of sinix5. 12128440cca4Smrg -sinix5.*) 12138440cca4Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 12148440cca4Smrg ;; 12158440cca4Smrg -sinix*) 12168440cca4Smrg os=-sysv4 12178440cca4Smrg ;; 12188440cca4Smrg -triton*) 12198440cca4Smrg os=-sysv3 12208440cca4Smrg ;; 12218440cca4Smrg -oss*) 12228440cca4Smrg os=-sysv3 12238440cca4Smrg ;; 12248440cca4Smrg -svr4) 12258440cca4Smrg os=-sysv4 12268440cca4Smrg ;; 12278440cca4Smrg -svr3) 12288440cca4Smrg os=-sysv3 12298440cca4Smrg ;; 12308440cca4Smrg -sysvr4) 12318440cca4Smrg os=-sysv4 12328440cca4Smrg ;; 12338440cca4Smrg # This must come after -sysvr4. 12348440cca4Smrg -sysv*) 12358440cca4Smrg ;; 12368440cca4Smrg -ose*) 12378440cca4Smrg os=-ose 12388440cca4Smrg ;; 12398440cca4Smrg -es1800*) 12408440cca4Smrg os=-ose 12418440cca4Smrg ;; 12428440cca4Smrg -xenix) 12438440cca4Smrg os=-xenix 12448440cca4Smrg ;; 12458440cca4Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 12468440cca4Smrg os=-mint 12478440cca4Smrg ;; 12488440cca4Smrg -aros*) 12498440cca4Smrg os=-aros 12508440cca4Smrg ;; 12518440cca4Smrg -kaos*) 12528440cca4Smrg os=-kaos 12538440cca4Smrg ;; 12548440cca4Smrg -none) 12558440cca4Smrg ;; 12568440cca4Smrg *) 12578440cca4Smrg # Get rid of the `-' at the beginning of $os. 12588440cca4Smrg os=`echo $os | sed 's/[^-]*-//'` 12598440cca4Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 12608440cca4Smrg exit 1 12618440cca4Smrg ;; 12628440cca4Smrgesac 12638440cca4Smrgelse 12648440cca4Smrg 12658440cca4Smrg# Here we handle the default operating systems that come with various machines. 12668440cca4Smrg# The value should be what the vendor currently ships out the door with their 12678440cca4Smrg# machine or put another way, the most popular os provided with the machine. 12688440cca4Smrg 12698440cca4Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 12708440cca4Smrg# "-sun"), then you have to tell the case statement up towards the top 12718440cca4Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 12728440cca4Smrg# will signal an error saying that MANUFACTURER isn't an operating 12738440cca4Smrg# system, and we'll never get to this point. 12748440cca4Smrg 12758440cca4Smrgcase $basic_machine in 12768440cca4Smrg *-acorn) 12778440cca4Smrg os=-riscix1.2 12788440cca4Smrg ;; 12798440cca4Smrg arm*-rebel) 12808440cca4Smrg os=-linux 12818440cca4Smrg ;; 12828440cca4Smrg arm*-semi) 12838440cca4Smrg os=-aout 12848440cca4Smrg ;; 12858440cca4Smrg c4x-* | tic4x-*) 12868440cca4Smrg os=-coff 12878440cca4Smrg ;; 12888440cca4Smrg # This must come before the *-dec entry. 12898440cca4Smrg pdp10-*) 12908440cca4Smrg os=-tops20 12918440cca4Smrg ;; 12928440cca4Smrg pdp11-*) 12938440cca4Smrg os=-none 12948440cca4Smrg ;; 12958440cca4Smrg *-dec | vax-*) 12968440cca4Smrg os=-ultrix4.2 12978440cca4Smrg ;; 12988440cca4Smrg m68*-apollo) 12998440cca4Smrg os=-domain 13008440cca4Smrg ;; 13018440cca4Smrg i386-sun) 13028440cca4Smrg os=-sunos4.0.2 13038440cca4Smrg ;; 13048440cca4Smrg m68000-sun) 13058440cca4Smrg os=-sunos3 13068440cca4Smrg # This also exists in the configure program, but was not the 13078440cca4Smrg # default. 13088440cca4Smrg # os=-sunos4 13098440cca4Smrg ;; 13108440cca4Smrg m68*-cisco) 13118440cca4Smrg os=-aout 13128440cca4Smrg ;; 13138440cca4Smrg mips*-cisco) 13148440cca4Smrg os=-elf 13158440cca4Smrg ;; 13168440cca4Smrg mips*-*) 13178440cca4Smrg os=-elf 13188440cca4Smrg ;; 13198440cca4Smrg or32-*) 13208440cca4Smrg os=-coff 13218440cca4Smrg ;; 13228440cca4Smrg *-tti) # must be before sparc entry or we get the wrong os. 13238440cca4Smrg os=-sysv3 13248440cca4Smrg ;; 13258440cca4Smrg sparc-* | *-sun) 13268440cca4Smrg os=-sunos4.1.1 13278440cca4Smrg ;; 13288440cca4Smrg *-be) 13298440cca4Smrg os=-beos 13308440cca4Smrg ;; 13318440cca4Smrg *-ibm) 13328440cca4Smrg os=-aix 13338440cca4Smrg ;; 13348440cca4Smrg *-wec) 13358440cca4Smrg os=-proelf 13368440cca4Smrg ;; 13378440cca4Smrg *-winbond) 13388440cca4Smrg os=-proelf 13398440cca4Smrg ;; 13408440cca4Smrg *-oki) 13418440cca4Smrg os=-proelf 13428440cca4Smrg ;; 13438440cca4Smrg *-hp) 13448440cca4Smrg os=-hpux 13458440cca4Smrg ;; 13468440cca4Smrg *-hitachi) 13478440cca4Smrg os=-hiux 13488440cca4Smrg ;; 13498440cca4Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 13508440cca4Smrg os=-sysv 13518440cca4Smrg ;; 13528440cca4Smrg *-cbm) 13538440cca4Smrg os=-amigaos 13548440cca4Smrg ;; 13558440cca4Smrg *-dg) 13568440cca4Smrg os=-dgux 13578440cca4Smrg ;; 13588440cca4Smrg *-dolphin) 13598440cca4Smrg os=-sysv3 13608440cca4Smrg ;; 13618440cca4Smrg m68k-ccur) 13628440cca4Smrg os=-rtu 13638440cca4Smrg ;; 13648440cca4Smrg m88k-omron*) 13658440cca4Smrg os=-luna 13668440cca4Smrg ;; 13678440cca4Smrg *-next ) 13688440cca4Smrg os=-nextstep 13698440cca4Smrg ;; 13708440cca4Smrg *-sequent) 13718440cca4Smrg os=-ptx 13728440cca4Smrg ;; 13738440cca4Smrg *-crds) 13748440cca4Smrg os=-unos 13758440cca4Smrg ;; 13768440cca4Smrg *-ns) 13778440cca4Smrg os=-genix 13788440cca4Smrg ;; 13798440cca4Smrg i370-*) 13808440cca4Smrg os=-mvs 13818440cca4Smrg ;; 13828440cca4Smrg *-next) 13838440cca4Smrg os=-nextstep3 13848440cca4Smrg ;; 13858440cca4Smrg *-gould) 13868440cca4Smrg os=-sysv 13878440cca4Smrg ;; 13888440cca4Smrg *-highlevel) 13898440cca4Smrg os=-bsd 13908440cca4Smrg ;; 13918440cca4Smrg *-encore) 13928440cca4Smrg os=-bsd 13938440cca4Smrg ;; 13948440cca4Smrg *-sgi) 13958440cca4Smrg os=-irix 13968440cca4Smrg ;; 13978440cca4Smrg *-siemens) 13988440cca4Smrg os=-sysv4 13998440cca4Smrg ;; 14008440cca4Smrg *-masscomp) 14018440cca4Smrg os=-rtu 14028440cca4Smrg ;; 14038440cca4Smrg f30[01]-fujitsu | f700-fujitsu) 14048440cca4Smrg os=-uxpv 14058440cca4Smrg ;; 14068440cca4Smrg *-rom68k) 14078440cca4Smrg os=-coff 14088440cca4Smrg ;; 14098440cca4Smrg *-*bug) 14108440cca4Smrg os=-coff 14118440cca4Smrg ;; 14128440cca4Smrg *-apple) 14138440cca4Smrg os=-macos 14148440cca4Smrg ;; 14158440cca4Smrg *-atari*) 14168440cca4Smrg os=-mint 14178440cca4Smrg ;; 14188440cca4Smrg *) 14198440cca4Smrg os=-none 14208440cca4Smrg ;; 14218440cca4Smrgesac 14228440cca4Smrgfi 14238440cca4Smrg 14248440cca4Smrg# Here we handle the case where we know the os, and the CPU type, but not the 14258440cca4Smrg# manufacturer. We pick the logical manufacturer. 14268440cca4Smrgvendor=unknown 14278440cca4Smrgcase $basic_machine in 14288440cca4Smrg *-unknown) 14298440cca4Smrg case $os in 14308440cca4Smrg -riscix*) 14318440cca4Smrg vendor=acorn 14328440cca4Smrg ;; 14338440cca4Smrg -sunos*) 14348440cca4Smrg vendor=sun 14358440cca4Smrg ;; 14368440cca4Smrg -aix*) 14378440cca4Smrg vendor=ibm 14388440cca4Smrg ;; 14398440cca4Smrg -beos*) 14408440cca4Smrg vendor=be 14418440cca4Smrg ;; 14428440cca4Smrg -hpux*) 14438440cca4Smrg vendor=hp 14448440cca4Smrg ;; 14458440cca4Smrg -mpeix*) 14468440cca4Smrg vendor=hp 14478440cca4Smrg ;; 14488440cca4Smrg -hiux*) 14498440cca4Smrg vendor=hitachi 14508440cca4Smrg ;; 14518440cca4Smrg -unos*) 14528440cca4Smrg vendor=crds 14538440cca4Smrg ;; 14548440cca4Smrg -dgux*) 14558440cca4Smrg vendor=dg 14568440cca4Smrg ;; 14578440cca4Smrg -luna*) 14588440cca4Smrg vendor=omron 14598440cca4Smrg ;; 14608440cca4Smrg -genix*) 14618440cca4Smrg vendor=ns 14628440cca4Smrg ;; 14638440cca4Smrg -mvs* | -opened*) 14648440cca4Smrg vendor=ibm 14658440cca4Smrg ;; 14668440cca4Smrg -ptx*) 14678440cca4Smrg vendor=sequent 14688440cca4Smrg ;; 14698440cca4Smrg -vxsim* | -vxworks* | -windiss*) 14708440cca4Smrg vendor=wrs 14718440cca4Smrg ;; 14728440cca4Smrg -aux*) 14738440cca4Smrg vendor=apple 14748440cca4Smrg ;; 14758440cca4Smrg -hms*) 14768440cca4Smrg vendor=hitachi 14778440cca4Smrg ;; 14788440cca4Smrg -mpw* | -macos*) 14798440cca4Smrg vendor=apple 14808440cca4Smrg ;; 14818440cca4Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 14828440cca4Smrg vendor=atari 14838440cca4Smrg ;; 14848440cca4Smrg -vos*) 14858440cca4Smrg vendor=stratus 14868440cca4Smrg ;; 14878440cca4Smrg esac 14888440cca4Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 14898440cca4Smrg ;; 14908440cca4Smrgesac 14918440cca4Smrg 14928440cca4Smrgecho $basic_machine$os 14938440cca4Smrgexit 0 14948440cca4Smrg 14958440cca4Smrg# Local variables: 14968440cca4Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 14978440cca4Smrg# time-stamp-start: "timestamp='" 14988440cca4Smrg# time-stamp-format: "%:y-%02m-%02d" 14998440cca4Smrg# time-stamp-end: "'" 15008440cca4Smrg# End: 1501