config.sub revision 16d7e2f1
12c7c4e3dSmrg#! /bin/sh
22c7c4e3dSmrg# Configuration validation subroutine script.
32c7c4e3dSmrg#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
416d7e2f1Smrg#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
58650bb69Smrg#   Free Software Foundation, Inc.
62c7c4e3dSmrg
716d7e2f1Smrgtimestamp='2010-09-11'
82c7c4e3dSmrg
92c7c4e3dSmrg# This file is (in principle) common to ALL GNU software.
102c7c4e3dSmrg# The presence of a machine in this file suggests that SOME GNU software
112c7c4e3dSmrg# can handle that machine.  It does not imply ALL GNU software can.
122c7c4e3dSmrg#
132c7c4e3dSmrg# This file is free software; you can redistribute it and/or modify
142c7c4e3dSmrg# it under the terms of the GNU General Public License as published by
152c7c4e3dSmrg# the Free Software Foundation; either version 2 of the License, or
162c7c4e3dSmrg# (at your option) any later version.
172c7c4e3dSmrg#
182c7c4e3dSmrg# This program is distributed in the hope that it will be useful,
192c7c4e3dSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
202c7c4e3dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
212c7c4e3dSmrg# GNU General Public License for more details.
222c7c4e3dSmrg#
232c7c4e3dSmrg# You should have received a copy of the GNU General Public License
242c7c4e3dSmrg# along with this program; if not, write to the Free Software
258650bb69Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
268650bb69Smrg# 02110-1301, USA.
278650bb69Smrg#
282c7c4e3dSmrg# As a special exception to the GNU General Public License, if you
292c7c4e3dSmrg# distribute this file as part of a program that contains a
302c7c4e3dSmrg# configuration script generated by Autoconf, you may include it under
312c7c4e3dSmrg# the same distribution terms that you use for the rest of that program.
322c7c4e3dSmrg
338650bb69Smrg
342c7c4e3dSmrg# Please send patches to <config-patches@gnu.org>.  Submit a context
3516d7e2f1Smrg# diff and a properly formatted GNU ChangeLog entry.
362c7c4e3dSmrg#
372c7c4e3dSmrg# Configuration subroutine to validate and canonicalize a configuration type.
382c7c4e3dSmrg# Supply the specified configuration type as an argument.
392c7c4e3dSmrg# If it is invalid, we print an error message on stderr and exit with code 1.
402c7c4e3dSmrg# Otherwise, we print the canonical config type on stdout and succeed.
412c7c4e3dSmrg
4216d7e2f1Smrg# You can get the latest version of this script from:
4316d7e2f1Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
4416d7e2f1Smrg
452c7c4e3dSmrg# This file is supposed to be the same for all GNU packages
462c7c4e3dSmrg# and recognize all the CPU types, system types and aliases
472c7c4e3dSmrg# that are meaningful with *any* GNU software.
482c7c4e3dSmrg# Each package is responsible for reporting which valid configurations
492c7c4e3dSmrg# it does not support.  The user should be able to distinguish
502c7c4e3dSmrg# a failure to support a valid configuration from a meaningless
512c7c4e3dSmrg# configuration.
522c7c4e3dSmrg
532c7c4e3dSmrg# The goal of this file is to map all the various variations of a given
542c7c4e3dSmrg# machine specification into a single specification in the form:
552c7c4e3dSmrg#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
562c7c4e3dSmrg# or in some cases, the newer four-part form:
572c7c4e3dSmrg#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
582c7c4e3dSmrg# It is wrong to echo any other type of specification.
592c7c4e3dSmrg
602c7c4e3dSmrgme=`echo "$0" | sed -e 's,.*/,,'`
612c7c4e3dSmrg
622c7c4e3dSmrgusage="\
632c7c4e3dSmrgUsage: $0 [OPTION] CPU-MFR-OPSYS
642c7c4e3dSmrg       $0 [OPTION] ALIAS
652c7c4e3dSmrg
662c7c4e3dSmrgCanonicalize a configuration name.
672c7c4e3dSmrg
682c7c4e3dSmrgOperation modes:
692c7c4e3dSmrg  -h, --help         print this help, then exit
702c7c4e3dSmrg  -t, --time-stamp   print date of last modification, then exit
712c7c4e3dSmrg  -v, --version      print version number, then exit
722c7c4e3dSmrg
732c7c4e3dSmrgReport bugs and patches to <config-patches@gnu.org>."
742c7c4e3dSmrg
752c7c4e3dSmrgversion="\
762c7c4e3dSmrgGNU config.sub ($timestamp)
772c7c4e3dSmrg
7816d7e2f1SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
7916d7e2f1Smrg2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
8016d7e2f1SmrgSoftware Foundation, Inc.
812c7c4e3dSmrg
822c7c4e3dSmrgThis is free software; see the source for copying conditions.  There is NO
832c7c4e3dSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
842c7c4e3dSmrg
852c7c4e3dSmrghelp="
862c7c4e3dSmrgTry \`$me --help' for more information."
872c7c4e3dSmrg
882c7c4e3dSmrg# Parse command line
892c7c4e3dSmrgwhile test $# -gt 0 ; do
902c7c4e3dSmrg  case $1 in
912c7c4e3dSmrg    --time-stamp | --time* | -t )
928650bb69Smrg       echo "$timestamp" ; exit ;;
932c7c4e3dSmrg    --version | -v )
948650bb69Smrg       echo "$version" ; exit ;;
952c7c4e3dSmrg    --help | --h* | -h )
968650bb69Smrg       echo "$usage"; exit ;;
972c7c4e3dSmrg    -- )     # Stop option processing
982c7c4e3dSmrg       shift; break ;;
992c7c4e3dSmrg    - )	# Use stdin as input.
1002c7c4e3dSmrg       break ;;
1012c7c4e3dSmrg    -* )
1022c7c4e3dSmrg       echo "$me: invalid option $1$help"
1032c7c4e3dSmrg       exit 1 ;;
1042c7c4e3dSmrg
1052c7c4e3dSmrg    *local*)
1062c7c4e3dSmrg       # First pass through any local machine types.
1072c7c4e3dSmrg       echo $1
1088650bb69Smrg       exit ;;
1092c7c4e3dSmrg
1102c7c4e3dSmrg    * )
1112c7c4e3dSmrg       break ;;
1122c7c4e3dSmrg  esac
1132c7c4e3dSmrgdone
1142c7c4e3dSmrg
1152c7c4e3dSmrgcase $# in
1162c7c4e3dSmrg 0) echo "$me: missing argument$help" >&2
1172c7c4e3dSmrg    exit 1;;
1182c7c4e3dSmrg 1) ;;
1192c7c4e3dSmrg *) echo "$me: too many arguments$help" >&2
1202c7c4e3dSmrg    exit 1;;
1212c7c4e3dSmrgesac
1222c7c4e3dSmrg
1232c7c4e3dSmrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1242c7c4e3dSmrg# Here we must recognize all the valid KERNEL-OS combinations.
1252c7c4e3dSmrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1262c7c4e3dSmrgcase $maybe_os in
12716d7e2f1Smrg  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
12816d7e2f1Smrg  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
12916d7e2f1Smrg  knetbsd*-gnu* | netbsd*-gnu* | \
1308650bb69Smrg  kopensolaris*-gnu* | \
1318650bb69Smrg  storm-chaos* | os2-emx* | rtmk-nova*)
1322c7c4e3dSmrg    os=-$maybe_os
1332c7c4e3dSmrg    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1342c7c4e3dSmrg    ;;
1352c7c4e3dSmrg  *)
1362c7c4e3dSmrg    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1372c7c4e3dSmrg    if [ $basic_machine != $1 ]
1382c7c4e3dSmrg    then os=`echo $1 | sed 's/.*-/-/'`
1392c7c4e3dSmrg    else os=; fi
1402c7c4e3dSmrg    ;;
1412c7c4e3dSmrgesac
1422c7c4e3dSmrg
1432c7c4e3dSmrg### Let's recognize common machines as not being operating systems so
1442c7c4e3dSmrg### that things like config.sub decstation-3100 work.  We also
1452c7c4e3dSmrg### recognize some manufacturers as not being operating systems, so we
1462c7c4e3dSmrg### can provide default operating systems below.
1472c7c4e3dSmrgcase $os in
1482c7c4e3dSmrg	-sun*os*)
1492c7c4e3dSmrg		# Prevent following clause from handling this invalid input.
1502c7c4e3dSmrg		;;
1512c7c4e3dSmrg	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1522c7c4e3dSmrg	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1532c7c4e3dSmrg	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1542c7c4e3dSmrg	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1552c7c4e3dSmrg	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1562c7c4e3dSmrg	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
15716d7e2f1Smrg	-apple | -axis | -knuth | -cray | -microblaze)
1582c7c4e3dSmrg		os=
1592c7c4e3dSmrg		basic_machine=$1
1602c7c4e3dSmrg		;;
16116d7e2f1Smrg        -bluegene*)
16216d7e2f1Smrg	        os=-cnk
16316d7e2f1Smrg		;;
1642c7c4e3dSmrg	-sim | -cisco | -oki | -wec | -winbond)
1652c7c4e3dSmrg		os=
1662c7c4e3dSmrg		basic_machine=$1
1672c7c4e3dSmrg		;;
1682c7c4e3dSmrg	-scout)
1692c7c4e3dSmrg		;;
1702c7c4e3dSmrg	-wrs)
1712c7c4e3dSmrg		os=-vxworks
1722c7c4e3dSmrg		basic_machine=$1
1732c7c4e3dSmrg		;;
1742c7c4e3dSmrg	-chorusos*)
1752c7c4e3dSmrg		os=-chorusos
1762c7c4e3dSmrg		basic_machine=$1
1772c7c4e3dSmrg		;;
1782c7c4e3dSmrg 	-chorusrdb)
1792c7c4e3dSmrg 		os=-chorusrdb
1802c7c4e3dSmrg		basic_machine=$1
1812c7c4e3dSmrg 		;;
1822c7c4e3dSmrg	-hiux*)
1832c7c4e3dSmrg		os=-hiuxwe2
1842c7c4e3dSmrg		;;
1858650bb69Smrg	-sco6)
1868650bb69Smrg		os=-sco5v6
1878650bb69Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1888650bb69Smrg		;;
1892c7c4e3dSmrg	-sco5)
1902c7c4e3dSmrg		os=-sco3.2v5
1912c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1922c7c4e3dSmrg		;;
1932c7c4e3dSmrg	-sco4)
1942c7c4e3dSmrg		os=-sco3.2v4
1952c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1962c7c4e3dSmrg		;;
1972c7c4e3dSmrg	-sco3.2.[4-9]*)
1982c7c4e3dSmrg		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1992c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2002c7c4e3dSmrg		;;
2012c7c4e3dSmrg	-sco3.2v[4-9]*)
2022c7c4e3dSmrg		# Don't forget version if it is 3.2v4 or newer.
2032c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2042c7c4e3dSmrg		;;
2058650bb69Smrg	-sco5v6*)
2068650bb69Smrg		# Don't forget version if it is 3.2v4 or newer.
2078650bb69Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2088650bb69Smrg		;;
2092c7c4e3dSmrg	-sco*)
2102c7c4e3dSmrg		os=-sco3.2v2
2112c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2122c7c4e3dSmrg		;;
2132c7c4e3dSmrg	-udk*)
2142c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2152c7c4e3dSmrg		;;
2162c7c4e3dSmrg	-isc)
2172c7c4e3dSmrg		os=-isc2.2
2182c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2192c7c4e3dSmrg		;;
2202c7c4e3dSmrg	-clix*)
2212c7c4e3dSmrg		basic_machine=clipper-intergraph
2222c7c4e3dSmrg		;;
2232c7c4e3dSmrg	-isc*)
2242c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2252c7c4e3dSmrg		;;
2262c7c4e3dSmrg	-lynx*)
2272c7c4e3dSmrg		os=-lynxos
2282c7c4e3dSmrg		;;
2292c7c4e3dSmrg	-ptx*)
2302c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
2312c7c4e3dSmrg		;;
2322c7c4e3dSmrg	-windowsnt*)
2332c7c4e3dSmrg		os=`echo $os | sed -e 's/windowsnt/winnt/'`
2342c7c4e3dSmrg		;;
2352c7c4e3dSmrg	-psos*)
2362c7c4e3dSmrg		os=-psos
2372c7c4e3dSmrg		;;
2382c7c4e3dSmrg	-mint | -mint[0-9]*)
2392c7c4e3dSmrg		basic_machine=m68k-atari
2402c7c4e3dSmrg		os=-mint
2412c7c4e3dSmrg		;;
2422c7c4e3dSmrgesac
2432c7c4e3dSmrg
2442c7c4e3dSmrg# Decode aliases for certain CPU-COMPANY combinations.
2452c7c4e3dSmrgcase $basic_machine in
2462c7c4e3dSmrg	# Recognize the basic CPU types without company name.
2472c7c4e3dSmrg	# Some are omitted here because they have special meanings below.
2482c7c4e3dSmrg	1750a | 580 \
2492c7c4e3dSmrg	| a29k \
2502c7c4e3dSmrg	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2512c7c4e3dSmrg	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
2528650bb69Smrg	| am33_2.0 \
2538650bb69Smrg	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
2548650bb69Smrg	| bfin \
2552c7c4e3dSmrg	| c4x | clipper \
2562c7c4e3dSmrg	| d10v | d30v | dlx | dsp16xx \
2578650bb69Smrg	| fido | fr30 | frv \
2582c7c4e3dSmrg	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2592c7c4e3dSmrg	| i370 | i860 | i960 | ia64 \
2608650bb69Smrg	| ip2k | iq2000 \
2618650bb69Smrg	| lm32 \
2628650bb69Smrg	| m32c | m32r | m32rle | m68000 | m68k | m88k \
2638650bb69Smrg	| maxq | mb | microblaze | mcore | mep | metag \
2642c7c4e3dSmrg	| mips | mipsbe | mipseb | mipsel | mipsle \
2652c7c4e3dSmrg	| mips16 \
2662c7c4e3dSmrg	| mips64 | mips64el \
2678650bb69Smrg	| mips64octeon | mips64octeonel \
2682c7c4e3dSmrg	| mips64orion | mips64orionel \
2698650bb69Smrg	| mips64r5900 | mips64r5900el \
2708650bb69Smrg	| mips64vr | mips64vrel \
2712c7c4e3dSmrg	| mips64vr4100 | mips64vr4100el \
2722c7c4e3dSmrg	| mips64vr4300 | mips64vr4300el \
2732c7c4e3dSmrg	| mips64vr5000 | mips64vr5000el \
2748650bb69Smrg	| mips64vr5900 | mips64vr5900el \
2752c7c4e3dSmrg	| mipsisa32 | mipsisa32el \
2762c7c4e3dSmrg	| mipsisa32r2 | mipsisa32r2el \
2772c7c4e3dSmrg	| mipsisa64 | mipsisa64el \
2788650bb69Smrg	| mipsisa64r2 | mipsisa64r2el \
2792c7c4e3dSmrg	| mipsisa64sb1 | mipsisa64sb1el \
2802c7c4e3dSmrg	| mipsisa64sr71k | mipsisa64sr71kel \
2812c7c4e3dSmrg	| mipstx39 | mipstx39el \
2822c7c4e3dSmrg	| mn10200 | mn10300 \
2838650bb69Smrg	| moxie \
2848650bb69Smrg	| mt \
2852c7c4e3dSmrg	| msp430 \
28616d7e2f1Smrg	| nds32 | nds32le | nds32be \
2878650bb69Smrg	| nios | nios2 \
2882c7c4e3dSmrg	| ns16k | ns32k \
2898650bb69Smrg	| or32 \
2902c7c4e3dSmrg	| pdp10 | pdp11 | pj | pjl \
2912c7c4e3dSmrg	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
2922c7c4e3dSmrg	| pyramid \
29316d7e2f1Smrg	| rx \
2948650bb69Smrg	| score \
2958650bb69Smrg	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
2962c7c4e3dSmrg	| sh64 | sh64le \
2978650bb69Smrg	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
2988650bb69Smrg	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
2998650bb69Smrg	| spu | strongarm \
30016d7e2f1Smrg	| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
30116d7e2f1Smrg	| ubicom32 \
3022c7c4e3dSmrg	| v850 | v850e \
3032c7c4e3dSmrg	| we32k \
3048650bb69Smrg	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
3058650bb69Smrg	| z8k | z80)
3062c7c4e3dSmrg		basic_machine=$basic_machine-unknown
3072c7c4e3dSmrg		;;
30816d7e2f1Smrg	c54x)
30916d7e2f1Smrg		basic_machine=tic54x-unknown
31016d7e2f1Smrg		;;
31116d7e2f1Smrg	c55x)
31216d7e2f1Smrg		basic_machine=tic55x-unknown
31316d7e2f1Smrg		;;
31416d7e2f1Smrg	c6x)
31516d7e2f1Smrg		basic_machine=tic6x-unknown
31616d7e2f1Smrg		;;
31716d7e2f1Smrg	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
3182c7c4e3dSmrg		# Motorola 68HC11/12.
3192c7c4e3dSmrg		basic_machine=$basic_machine-unknown
3202c7c4e3dSmrg		os=-none
3212c7c4e3dSmrg		;;
3222c7c4e3dSmrg	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
3232c7c4e3dSmrg		;;
3248650bb69Smrg	ms1)
3258650bb69Smrg		basic_machine=mt-unknown
3268650bb69Smrg		;;
3272c7c4e3dSmrg
3282c7c4e3dSmrg	# We use `pc' rather than `unknown'
3292c7c4e3dSmrg	# because (1) that's what they normally are, and
3302c7c4e3dSmrg	# (2) the word "unknown" tends to confuse beginning users.
3312c7c4e3dSmrg	i*86 | x86_64)
3322c7c4e3dSmrg	  basic_machine=$basic_machine-pc
3332c7c4e3dSmrg	  ;;
3342c7c4e3dSmrg	# Object if more than one company name word.
3352c7c4e3dSmrg	*-*-*)
3362c7c4e3dSmrg		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
3372c7c4e3dSmrg		exit 1
3382c7c4e3dSmrg		;;
3392c7c4e3dSmrg	# Recognize the basic CPU types with company name.
3402c7c4e3dSmrg	580-* \
3412c7c4e3dSmrg	| a29k-* \
3422c7c4e3dSmrg	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
3432c7c4e3dSmrg	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
3442c7c4e3dSmrg	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3452c7c4e3dSmrg	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
3468650bb69Smrg	| avr-* | avr32-* \
3478650bb69Smrg	| bfin-* | bs2000-* \
34816d7e2f1Smrg	| c[123]* | c30-* | [cjt]90-* | c4x-* \
3498650bb69Smrg	| clipper-* | craynv-* | cydra-* \
3502c7c4e3dSmrg	| d10v-* | d30v-* | dlx-* \
3512c7c4e3dSmrg	| elxsi-* \
3528650bb69Smrg	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
3532c7c4e3dSmrg	| h8300-* | h8500-* \
3542c7c4e3dSmrg	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
3552c7c4e3dSmrg	| i*86-* | i860-* | i960-* | ia64-* \
3568650bb69Smrg	| ip2k-* | iq2000-* \
3578650bb69Smrg	| lm32-* \
3588650bb69Smrg	| m32c-* | m32r-* | m32rle-* \
3592c7c4e3dSmrg	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
36016d7e2f1Smrg	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
3612c7c4e3dSmrg	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3622c7c4e3dSmrg	| mips16-* \
3632c7c4e3dSmrg	| mips64-* | mips64el-* \
3648650bb69Smrg	| mips64octeon-* | mips64octeonel-* \
3652c7c4e3dSmrg	| mips64orion-* | mips64orionel-* \
3668650bb69Smrg	| mips64r5900-* | mips64r5900el-* \
3678650bb69Smrg	| mips64vr-* | mips64vrel-* \
3682c7c4e3dSmrg	| mips64vr4100-* | mips64vr4100el-* \
3692c7c4e3dSmrg	| mips64vr4300-* | mips64vr4300el-* \
3702c7c4e3dSmrg	| mips64vr5000-* | mips64vr5000el-* \
3718650bb69Smrg	| mips64vr5900-* | mips64vr5900el-* \
3722c7c4e3dSmrg	| mipsisa32-* | mipsisa32el-* \
3732c7c4e3dSmrg	| mipsisa32r2-* | mipsisa32r2el-* \
3742c7c4e3dSmrg	| mipsisa64-* | mipsisa64el-* \
3758650bb69Smrg	| mipsisa64r2-* | mipsisa64r2el-* \
3762c7c4e3dSmrg	| mipsisa64sb1-* | mipsisa64sb1el-* \
3772c7c4e3dSmrg	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
3782c7c4e3dSmrg	| mipstx39-* | mipstx39el-* \
3798650bb69Smrg	| mmix-* \
3808650bb69Smrg	| mt-* \
3812c7c4e3dSmrg	| msp430-* \
38216d7e2f1Smrg	| nds32-* | nds32le-* | nds32be-* \
3838650bb69Smrg	| nios-* | nios2-* \
3848650bb69Smrg	| none-* | np1-* | ns16k-* | ns32k-* \
3852c7c4e3dSmrg	| orion-* \
3862c7c4e3dSmrg	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3872c7c4e3dSmrg	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3882c7c4e3dSmrg	| pyramid-* \
38916d7e2f1Smrg	| romp-* | rs6000-* | rx-* \
3908650bb69Smrg	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
3912c7c4e3dSmrg	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
3928650bb69Smrg	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
3938650bb69Smrg	| sparclite-* \
3948650bb69Smrg	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
3952c7c4e3dSmrg	| tahoe-* | thumb-* \
39616d7e2f1Smrg	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
39716d7e2f1Smrg	| tile-* | tilegx-* \
3982c7c4e3dSmrg	| tron-* \
39916d7e2f1Smrg	| ubicom32-* \
4002c7c4e3dSmrg	| v850-* | v850e-* | vax-* \
4012c7c4e3dSmrg	| we32k-* \
4028650bb69Smrg	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
4038650bb69Smrg	| xstormy16-* | xtensa*-* \
4042c7c4e3dSmrg	| ymp-* \
4058650bb69Smrg	| z8k-* | z80-*)
4068650bb69Smrg		;;
4078650bb69Smrg	# Recognize the basic CPU types without company name, with glob match.
4088650bb69Smrg	xtensa*)
4098650bb69Smrg		basic_machine=$basic_machine-unknown
4102c7c4e3dSmrg		;;
4112c7c4e3dSmrg	# Recognize the various machine names and aliases which stand
4122c7c4e3dSmrg	# for a CPU type and a company and sometimes even an OS.
4132c7c4e3dSmrg	386bsd)
4142c7c4e3dSmrg		basic_machine=i386-unknown
4152c7c4e3dSmrg		os=-bsd
4162c7c4e3dSmrg		;;
4172c7c4e3dSmrg	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
4182c7c4e3dSmrg		basic_machine=m68000-att
4192c7c4e3dSmrg		;;
4202c7c4e3dSmrg	3b*)
4212c7c4e3dSmrg		basic_machine=we32k-att
4222c7c4e3dSmrg		;;
4232c7c4e3dSmrg	a29khif)
4242c7c4e3dSmrg		basic_machine=a29k-amd
4252c7c4e3dSmrg		os=-udi
4262c7c4e3dSmrg		;;
4278650bb69Smrg    	abacus)
4288650bb69Smrg		basic_machine=abacus-unknown
4298650bb69Smrg		;;
4302c7c4e3dSmrg	adobe68k)
4312c7c4e3dSmrg		basic_machine=m68010-adobe
4322c7c4e3dSmrg		os=-scout
4332c7c4e3dSmrg		;;
4342c7c4e3dSmrg	alliant | fx80)
4352c7c4e3dSmrg		basic_machine=fx80-alliant
4362c7c4e3dSmrg		;;
4372c7c4e3dSmrg	altos | altos3068)
4382c7c4e3dSmrg		basic_machine=m68k-altos
4392c7c4e3dSmrg		;;
4402c7c4e3dSmrg	am29k)
4412c7c4e3dSmrg		basic_machine=a29k-none
4422c7c4e3dSmrg		os=-bsd
4432c7c4e3dSmrg		;;
4442c7c4e3dSmrg	amd64)
4452c7c4e3dSmrg		basic_machine=x86_64-pc
4462c7c4e3dSmrg		;;
4478650bb69Smrg	amd64-*)
4488650bb69Smrg		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
4498650bb69Smrg		;;
4502c7c4e3dSmrg	amdahl)
4512c7c4e3dSmrg		basic_machine=580-amdahl
4522c7c4e3dSmrg		os=-sysv
4532c7c4e3dSmrg		;;
4542c7c4e3dSmrg	amiga | amiga-*)
4552c7c4e3dSmrg		basic_machine=m68k-unknown
4562c7c4e3dSmrg		;;
4572c7c4e3dSmrg	amigaos | amigados)
4582c7c4e3dSmrg		basic_machine=m68k-unknown
4592c7c4e3dSmrg		os=-amigaos
4602c7c4e3dSmrg		;;
4612c7c4e3dSmrg	amigaunix | amix)
4622c7c4e3dSmrg		basic_machine=m68k-unknown
4632c7c4e3dSmrg		os=-sysv4
4642c7c4e3dSmrg		;;
4652c7c4e3dSmrg	apollo68)
4662c7c4e3dSmrg		basic_machine=m68k-apollo
4672c7c4e3dSmrg		os=-sysv
4682c7c4e3dSmrg		;;
4692c7c4e3dSmrg	apollo68bsd)
4702c7c4e3dSmrg		basic_machine=m68k-apollo
4712c7c4e3dSmrg		os=-bsd
4722c7c4e3dSmrg		;;
4738650bb69Smrg	aros)
4748650bb69Smrg		basic_machine=i386-pc
4758650bb69Smrg		os=-aros
4768650bb69Smrg		;;
4772c7c4e3dSmrg	aux)
4782c7c4e3dSmrg		basic_machine=m68k-apple
4792c7c4e3dSmrg		os=-aux
4802c7c4e3dSmrg		;;
4812c7c4e3dSmrg	balance)
4822c7c4e3dSmrg		basic_machine=ns32k-sequent
4832c7c4e3dSmrg		os=-dynix
4842c7c4e3dSmrg		;;
4858650bb69Smrg	blackfin)
4868650bb69Smrg		basic_machine=bfin-unknown
4878650bb69Smrg		os=-linux
4888650bb69Smrg		;;
4898650bb69Smrg	blackfin-*)
4908650bb69Smrg		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
4918650bb69Smrg		os=-linux
4928650bb69Smrg		;;
49316d7e2f1Smrg	bluegene*)
49416d7e2f1Smrg		basic_machine=powerpc-ibm
49516d7e2f1Smrg		os=-cnk
49616d7e2f1Smrg		;;
49716d7e2f1Smrg	c54x-*)
49816d7e2f1Smrg		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
49916d7e2f1Smrg		;;
50016d7e2f1Smrg	c55x-*)
50116d7e2f1Smrg		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
50216d7e2f1Smrg		;;
50316d7e2f1Smrg	c6x-*)
50416d7e2f1Smrg		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
50516d7e2f1Smrg		;;
5062c7c4e3dSmrg	c90)
5072c7c4e3dSmrg		basic_machine=c90-cray
5082c7c4e3dSmrg		os=-unicos
5092c7c4e3dSmrg		;;
5108650bb69Smrg        cegcc)
5118650bb69Smrg		basic_machine=arm-unknown
5128650bb69Smrg		os=-cegcc
5138650bb69Smrg		;;
5142c7c4e3dSmrg	convex-c1)
5152c7c4e3dSmrg		basic_machine=c1-convex
5162c7c4e3dSmrg		os=-bsd
5172c7c4e3dSmrg		;;
5182c7c4e3dSmrg	convex-c2)
5192c7c4e3dSmrg		basic_machine=c2-convex
5202c7c4e3dSmrg		os=-bsd
5212c7c4e3dSmrg		;;
5222c7c4e3dSmrg	convex-c32)
5232c7c4e3dSmrg		basic_machine=c32-convex
5242c7c4e3dSmrg		os=-bsd
5252c7c4e3dSmrg		;;
5262c7c4e3dSmrg	convex-c34)
5272c7c4e3dSmrg		basic_machine=c34-convex
5282c7c4e3dSmrg		os=-bsd
5292c7c4e3dSmrg		;;
5302c7c4e3dSmrg	convex-c38)
5312c7c4e3dSmrg		basic_machine=c38-convex
5322c7c4e3dSmrg		os=-bsd
5332c7c4e3dSmrg		;;
5342c7c4e3dSmrg	cray | j90)
5352c7c4e3dSmrg		basic_machine=j90-cray
5362c7c4e3dSmrg		os=-unicos
5372c7c4e3dSmrg		;;
5388650bb69Smrg	craynv)
5398650bb69Smrg		basic_machine=craynv-cray
5408650bb69Smrg		os=-unicosmp
5418650bb69Smrg		;;
5428650bb69Smrg	cr16)
5438650bb69Smrg		basic_machine=cr16-unknown
5448650bb69Smrg		os=-elf
5458650bb69Smrg		;;
5462c7c4e3dSmrg	crds | unos)
5472c7c4e3dSmrg		basic_machine=m68k-crds
5482c7c4e3dSmrg		;;
5498650bb69Smrg	crisv32 | crisv32-* | etraxfs*)
5508650bb69Smrg		basic_machine=crisv32-axis
5518650bb69Smrg		;;
5522c7c4e3dSmrg	cris | cris-* | etrax*)
5532c7c4e3dSmrg		basic_machine=cris-axis
5542c7c4e3dSmrg		;;
5558650bb69Smrg	crx)
5568650bb69Smrg		basic_machine=crx-unknown
5578650bb69Smrg		os=-elf
5588650bb69Smrg		;;
5592c7c4e3dSmrg	da30 | da30-*)
5602c7c4e3dSmrg		basic_machine=m68k-da30
5612c7c4e3dSmrg		;;
5622c7c4e3dSmrg	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
5632c7c4e3dSmrg		basic_machine=mips-dec
5642c7c4e3dSmrg		;;
5652c7c4e3dSmrg	decsystem10* | dec10*)
5662c7c4e3dSmrg		basic_machine=pdp10-dec
5672c7c4e3dSmrg		os=-tops10
5682c7c4e3dSmrg		;;
5692c7c4e3dSmrg	decsystem20* | dec20*)
5702c7c4e3dSmrg		basic_machine=pdp10-dec
5712c7c4e3dSmrg		os=-tops20
5722c7c4e3dSmrg		;;
5732c7c4e3dSmrg	delta | 3300 | motorola-3300 | motorola-delta \
5742c7c4e3dSmrg	      | 3300-motorola | delta-motorola)
5752c7c4e3dSmrg		basic_machine=m68k-motorola
5762c7c4e3dSmrg		;;
5772c7c4e3dSmrg	delta88)
5782c7c4e3dSmrg		basic_machine=m88k-motorola
5792c7c4e3dSmrg		os=-sysv3
5802c7c4e3dSmrg		;;
5818650bb69Smrg	dicos)
5828650bb69Smrg		basic_machine=i686-pc
5838650bb69Smrg		os=-dicos
5848650bb69Smrg		;;
5858650bb69Smrg	djgpp)
5868650bb69Smrg		basic_machine=i586-pc
5878650bb69Smrg		os=-msdosdjgpp
5888650bb69Smrg		;;
5892c7c4e3dSmrg	dpx20 | dpx20-*)
5902c7c4e3dSmrg		basic_machine=rs6000-bull
5912c7c4e3dSmrg		os=-bosx
5922c7c4e3dSmrg		;;
5932c7c4e3dSmrg	dpx2* | dpx2*-bull)
5942c7c4e3dSmrg		basic_machine=m68k-bull
5952c7c4e3dSmrg		os=-sysv3
5962c7c4e3dSmrg		;;
5972c7c4e3dSmrg	ebmon29k)
5982c7c4e3dSmrg		basic_machine=a29k-amd
5992c7c4e3dSmrg		os=-ebmon
6002c7c4e3dSmrg		;;
6012c7c4e3dSmrg	elxsi)
6022c7c4e3dSmrg		basic_machine=elxsi-elxsi
6032c7c4e3dSmrg		os=-bsd
6042c7c4e3dSmrg		;;
6052c7c4e3dSmrg	encore | umax | mmax)
6062c7c4e3dSmrg		basic_machine=ns32k-encore
6072c7c4e3dSmrg		;;
6082c7c4e3dSmrg	es1800 | OSE68k | ose68k | ose | OSE)
6092c7c4e3dSmrg		basic_machine=m68k-ericsson
6102c7c4e3dSmrg		os=-ose
6112c7c4e3dSmrg		;;
6122c7c4e3dSmrg	fx2800)
6132c7c4e3dSmrg		basic_machine=i860-alliant
6142c7c4e3dSmrg		;;
6152c7c4e3dSmrg	genix)
6162c7c4e3dSmrg		basic_machine=ns32k-ns
6172c7c4e3dSmrg		;;
6182c7c4e3dSmrg	gmicro)
6192c7c4e3dSmrg		basic_machine=tron-gmicro
6202c7c4e3dSmrg		os=-sysv
6212c7c4e3dSmrg		;;
6222c7c4e3dSmrg	go32)
6232c7c4e3dSmrg		basic_machine=i386-pc
6242c7c4e3dSmrg		os=-go32
6252c7c4e3dSmrg		;;
6262c7c4e3dSmrg	h3050r* | hiux*)
6272c7c4e3dSmrg		basic_machine=hppa1.1-hitachi
6282c7c4e3dSmrg		os=-hiuxwe2
6292c7c4e3dSmrg		;;
6302c7c4e3dSmrg	h8300hms)
6312c7c4e3dSmrg		basic_machine=h8300-hitachi
6322c7c4e3dSmrg		os=-hms
6332c7c4e3dSmrg		;;
6342c7c4e3dSmrg	h8300xray)
6352c7c4e3dSmrg		basic_machine=h8300-hitachi
6362c7c4e3dSmrg		os=-xray
6372c7c4e3dSmrg		;;
6382c7c4e3dSmrg	h8500hms)
6392c7c4e3dSmrg		basic_machine=h8500-hitachi
6402c7c4e3dSmrg		os=-hms
6412c7c4e3dSmrg		;;
6422c7c4e3dSmrg	harris)
6432c7c4e3dSmrg		basic_machine=m88k-harris
6442c7c4e3dSmrg		os=-sysv3
6452c7c4e3dSmrg		;;
6462c7c4e3dSmrg	hp300-*)
6472c7c4e3dSmrg		basic_machine=m68k-hp
6482c7c4e3dSmrg		;;
6492c7c4e3dSmrg	hp300bsd)
6502c7c4e3dSmrg		basic_machine=m68k-hp
6512c7c4e3dSmrg		os=-bsd
6522c7c4e3dSmrg		;;
6532c7c4e3dSmrg	hp300hpux)
6542c7c4e3dSmrg		basic_machine=m68k-hp
6552c7c4e3dSmrg		os=-hpux
6562c7c4e3dSmrg		;;
6572c7c4e3dSmrg	hp3k9[0-9][0-9] | hp9[0-9][0-9])
6582c7c4e3dSmrg		basic_machine=hppa1.0-hp
6592c7c4e3dSmrg		;;
6602c7c4e3dSmrg	hp9k2[0-9][0-9] | hp9k31[0-9])
6612c7c4e3dSmrg		basic_machine=m68000-hp
6622c7c4e3dSmrg		;;
6632c7c4e3dSmrg	hp9k3[2-9][0-9])
6642c7c4e3dSmrg		basic_machine=m68k-hp
6652c7c4e3dSmrg		;;
6662c7c4e3dSmrg	hp9k6[0-9][0-9] | hp6[0-9][0-9])
6672c7c4e3dSmrg		basic_machine=hppa1.0-hp
6682c7c4e3dSmrg		;;
6692c7c4e3dSmrg	hp9k7[0-79][0-9] | hp7[0-79][0-9])
6702c7c4e3dSmrg		basic_machine=hppa1.1-hp
6712c7c4e3dSmrg		;;
6722c7c4e3dSmrg	hp9k78[0-9] | hp78[0-9])
6732c7c4e3dSmrg		# FIXME: really hppa2.0-hp
6742c7c4e3dSmrg		basic_machine=hppa1.1-hp
6752c7c4e3dSmrg		;;
6762c7c4e3dSmrg	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
6772c7c4e3dSmrg		# FIXME: really hppa2.0-hp
6782c7c4e3dSmrg		basic_machine=hppa1.1-hp
6792c7c4e3dSmrg		;;
6802c7c4e3dSmrg	hp9k8[0-9][13679] | hp8[0-9][13679])
6812c7c4e3dSmrg		basic_machine=hppa1.1-hp
6822c7c4e3dSmrg		;;
6832c7c4e3dSmrg	hp9k8[0-9][0-9] | hp8[0-9][0-9])
6842c7c4e3dSmrg		basic_machine=hppa1.0-hp
6852c7c4e3dSmrg		;;
6862c7c4e3dSmrg	hppa-next)
6872c7c4e3dSmrg		os=-nextstep3
6882c7c4e3dSmrg		;;
6892c7c4e3dSmrg	hppaosf)
6902c7c4e3dSmrg		basic_machine=hppa1.1-hp
6912c7c4e3dSmrg		os=-osf
6922c7c4e3dSmrg		;;
6932c7c4e3dSmrg	hppro)
6942c7c4e3dSmrg		basic_machine=hppa1.1-hp
6952c7c4e3dSmrg		os=-proelf
6962c7c4e3dSmrg		;;
6972c7c4e3dSmrg	i370-ibm* | ibm*)
6982c7c4e3dSmrg		basic_machine=i370-ibm
6992c7c4e3dSmrg		;;
7002c7c4e3dSmrg# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
7012c7c4e3dSmrg	i*86v32)
7022c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7032c7c4e3dSmrg		os=-sysv32
7042c7c4e3dSmrg		;;
7052c7c4e3dSmrg	i*86v4*)
7062c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7072c7c4e3dSmrg		os=-sysv4
7082c7c4e3dSmrg		;;
7092c7c4e3dSmrg	i*86v)
7102c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7112c7c4e3dSmrg		os=-sysv
7122c7c4e3dSmrg		;;
7132c7c4e3dSmrg	i*86sol2)
7142c7c4e3dSmrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7152c7c4e3dSmrg		os=-solaris2
7162c7c4e3dSmrg		;;
7172c7c4e3dSmrg	i386mach)
7182c7c4e3dSmrg		basic_machine=i386-mach
7192c7c4e3dSmrg		os=-mach
7202c7c4e3dSmrg		;;
7212c7c4e3dSmrg	i386-vsta | vsta)
7222c7c4e3dSmrg		basic_machine=i386-unknown
7232c7c4e3dSmrg		os=-vsta
7242c7c4e3dSmrg		;;
7252c7c4e3dSmrg	iris | iris4d)
7262c7c4e3dSmrg		basic_machine=mips-sgi
7272c7c4e3dSmrg		case $os in
7282c7c4e3dSmrg		    -irix*)
7292c7c4e3dSmrg			;;
7302c7c4e3dSmrg		    *)
7312c7c4e3dSmrg			os=-irix4
7322c7c4e3dSmrg			;;
7332c7c4e3dSmrg		esac
7342c7c4e3dSmrg		;;
7352c7c4e3dSmrg	isi68 | isi)
7362c7c4e3dSmrg		basic_machine=m68k-isi
7372c7c4e3dSmrg		os=-sysv
7382c7c4e3dSmrg		;;
7398650bb69Smrg	m68knommu)
7408650bb69Smrg		basic_machine=m68k-unknown
7418650bb69Smrg		os=-linux
7428650bb69Smrg		;;
7438650bb69Smrg	m68knommu-*)
7448650bb69Smrg		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
7458650bb69Smrg		os=-linux
7468650bb69Smrg		;;
7472c7c4e3dSmrg	m88k-omron*)
7482c7c4e3dSmrg		basic_machine=m88k-omron
7492c7c4e3dSmrg		;;
7502c7c4e3dSmrg	magnum | m3230)
7512c7c4e3dSmrg		basic_machine=mips-mips
7522c7c4e3dSmrg		os=-sysv
7532c7c4e3dSmrg		;;
7542c7c4e3dSmrg	merlin)
7552c7c4e3dSmrg		basic_machine=ns32k-utek
7562c7c4e3dSmrg		os=-sysv
7572c7c4e3dSmrg		;;
75816d7e2f1Smrg        microblaze)
75916d7e2f1Smrg		basic_machine=microblaze-xilinx
76016d7e2f1Smrg		;;
7612c7c4e3dSmrg	mingw32)
7622c7c4e3dSmrg		basic_machine=i386-pc
7632c7c4e3dSmrg		os=-mingw32
7642c7c4e3dSmrg		;;
7658650bb69Smrg	mingw32ce)
7668650bb69Smrg		basic_machine=arm-unknown
7678650bb69Smrg		os=-mingw32ce
7688650bb69Smrg		;;
7692c7c4e3dSmrg	miniframe)
7702c7c4e3dSmrg		basic_machine=m68000-convergent
7712c7c4e3dSmrg		;;
7722c7c4e3dSmrg	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
7732c7c4e3dSmrg		basic_machine=m68k-atari
7742c7c4e3dSmrg		os=-mint
7752c7c4e3dSmrg		;;
7762c7c4e3dSmrg	mips3*-*)
7772c7c4e3dSmrg		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
7782c7c4e3dSmrg		;;
7792c7c4e3dSmrg	mips3*)
7802c7c4e3dSmrg		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
7812c7c4e3dSmrg		;;
7822c7c4e3dSmrg	monitor)
7832c7c4e3dSmrg		basic_machine=m68k-rom68k
7842c7c4e3dSmrg		os=-coff
7852c7c4e3dSmrg		;;
7862c7c4e3dSmrg	morphos)
7872c7c4e3dSmrg		basic_machine=powerpc-unknown
7882c7c4e3dSmrg		os=-morphos
7892c7c4e3dSmrg		;;
7902c7c4e3dSmrg	msdos)
7912c7c4e3dSmrg		basic_machine=i386-pc
7922c7c4e3dSmrg		os=-msdos
7932c7c4e3dSmrg		;;
7948650bb69Smrg	ms1-*)
7958650bb69Smrg		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
7968650bb69Smrg		;;
7972c7c4e3dSmrg	mvs)
7982c7c4e3dSmrg		basic_machine=i370-ibm
7992c7c4e3dSmrg		os=-mvs
8002c7c4e3dSmrg		;;
8012c7c4e3dSmrg	ncr3000)
8022c7c4e3dSmrg		basic_machine=i486-ncr
8032c7c4e3dSmrg		os=-sysv4
8042c7c4e3dSmrg		;;
8052c7c4e3dSmrg	netbsd386)
8062c7c4e3dSmrg		basic_machine=i386-unknown
8072c7c4e3dSmrg		os=-netbsd
8082c7c4e3dSmrg		;;
8092c7c4e3dSmrg	netwinder)
8102c7c4e3dSmrg		basic_machine=armv4l-rebel
8112c7c4e3dSmrg		os=-linux
8122c7c4e3dSmrg		;;
8132c7c4e3dSmrg	news | news700 | news800 | news900)
8142c7c4e3dSmrg		basic_machine=m68k-sony
8152c7c4e3dSmrg		os=-newsos
8162c7c4e3dSmrg		;;
8172c7c4e3dSmrg	news1000)
8182c7c4e3dSmrg		basic_machine=m68030-sony
8192c7c4e3dSmrg		os=-newsos
8202c7c4e3dSmrg		;;
8212c7c4e3dSmrg	news-3600 | risc-news)
8222c7c4e3dSmrg		basic_machine=mips-sony
8232c7c4e3dSmrg		os=-newsos
8242c7c4e3dSmrg		;;
8252c7c4e3dSmrg	necv70)
8262c7c4e3dSmrg		basic_machine=v70-nec
8272c7c4e3dSmrg		os=-sysv
8282c7c4e3dSmrg		;;
8292c7c4e3dSmrg	next | m*-next )
8302c7c4e3dSmrg		basic_machine=m68k-next
8312c7c4e3dSmrg		case $os in
8322c7c4e3dSmrg		    -nextstep* )
8332c7c4e3dSmrg			;;
8342c7c4e3dSmrg		    -ns2*)
8352c7c4e3dSmrg		      os=-nextstep2
8362c7c4e3dSmrg			;;
8372c7c4e3dSmrg		    *)
8382c7c4e3dSmrg		      os=-nextstep3
8392c7c4e3dSmrg			;;
8402c7c4e3dSmrg		esac
8412c7c4e3dSmrg		;;
8422c7c4e3dSmrg	nh3000)
8432c7c4e3dSmrg		basic_machine=m68k-harris
8442c7c4e3dSmrg		os=-cxux
8452c7c4e3dSmrg		;;
8462c7c4e3dSmrg	nh[45]000)
8472c7c4e3dSmrg		basic_machine=m88k-harris
8482c7c4e3dSmrg		os=-cxux
8492c7c4e3dSmrg		;;
8502c7c4e3dSmrg	nindy960)
8512c7c4e3dSmrg		basic_machine=i960-intel
8522c7c4e3dSmrg		os=-nindy
8532c7c4e3dSmrg		;;
8542c7c4e3dSmrg	mon960)
8552c7c4e3dSmrg		basic_machine=i960-intel
8562c7c4e3dSmrg		os=-mon960
8572c7c4e3dSmrg		;;
8582c7c4e3dSmrg	nonstopux)
8592c7c4e3dSmrg		basic_machine=mips-compaq
8602c7c4e3dSmrg		os=-nonstopux
8612c7c4e3dSmrg		;;
8622c7c4e3dSmrg	np1)
8632c7c4e3dSmrg		basic_machine=np1-gould
8642c7c4e3dSmrg		;;
86516d7e2f1Smrg        neo-tandem)
86616d7e2f1Smrg		basic_machine=neo-tandem
86716d7e2f1Smrg		;;
86816d7e2f1Smrg        nse-tandem)
86916d7e2f1Smrg		basic_machine=nse-tandem
87016d7e2f1Smrg		;;
8712c7c4e3dSmrg	nsr-tandem)
8722c7c4e3dSmrg		basic_machine=nsr-tandem
8732c7c4e3dSmrg		;;
8742c7c4e3dSmrg	op50n-* | op60c-*)
8752c7c4e3dSmrg		basic_machine=hppa1.1-oki
8762c7c4e3dSmrg		os=-proelf
8772c7c4e3dSmrg		;;
8788650bb69Smrg	openrisc | openrisc-*)
8792c7c4e3dSmrg		basic_machine=or32-unknown
8808650bb69Smrg		;;
8818650bb69Smrg	os400)
8828650bb69Smrg		basic_machine=powerpc-ibm
8838650bb69Smrg		os=-os400
8842c7c4e3dSmrg		;;
8852c7c4e3dSmrg	OSE68000 | ose68000)
8862c7c4e3dSmrg		basic_machine=m68000-ericsson
8872c7c4e3dSmrg		os=-ose
8882c7c4e3dSmrg		;;
8892c7c4e3dSmrg	os68k)
8902c7c4e3dSmrg		basic_machine=m68k-none
8912c7c4e3dSmrg		os=-os68k
8922c7c4e3dSmrg		;;
8932c7c4e3dSmrg	pa-hitachi)
8942c7c4e3dSmrg		basic_machine=hppa1.1-hitachi
8952c7c4e3dSmrg		os=-hiuxwe2
8962c7c4e3dSmrg		;;
8972c7c4e3dSmrg	paragon)
8982c7c4e3dSmrg		basic_machine=i860-intel
8992c7c4e3dSmrg		os=-osf
9002c7c4e3dSmrg		;;
9018650bb69Smrg	parisc)
9028650bb69Smrg		basic_machine=hppa-unknown
9038650bb69Smrg		os=-linux
9048650bb69Smrg		;;
9058650bb69Smrg	parisc-*)
9068650bb69Smrg		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
9078650bb69Smrg		os=-linux
9088650bb69Smrg		;;
9092c7c4e3dSmrg	pbd)
9102c7c4e3dSmrg		basic_machine=sparc-tti
9112c7c4e3dSmrg		;;
9122c7c4e3dSmrg	pbb)
9132c7c4e3dSmrg		basic_machine=m68k-tti
9142c7c4e3dSmrg		;;
9152c7c4e3dSmrg	pc532 | pc532-*)
9162c7c4e3dSmrg		basic_machine=ns32k-pc532
9172c7c4e3dSmrg		;;
9188650bb69Smrg	pc98)
9198650bb69Smrg		basic_machine=i386-pc
9208650bb69Smrg		;;
9218650bb69Smrg	pc98-*)
9228650bb69Smrg		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
9238650bb69Smrg		;;
9242c7c4e3dSmrg	pentium | p5 | k5 | k6 | nexgen | viac3)
9252c7c4e3dSmrg		basic_machine=i586-pc
9262c7c4e3dSmrg		;;
9272c7c4e3dSmrg	pentiumpro | p6 | 6x86 | athlon | athlon_*)
9282c7c4e3dSmrg		basic_machine=i686-pc
9292c7c4e3dSmrg		;;
9302c7c4e3dSmrg	pentiumii | pentium2 | pentiumiii | pentium3)
9312c7c4e3dSmrg		basic_machine=i686-pc
9322c7c4e3dSmrg		;;
9332c7c4e3dSmrg	pentium4)
9342c7c4e3dSmrg		basic_machine=i786-pc
9352c7c4e3dSmrg		;;
9362c7c4e3dSmrg	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
9372c7c4e3dSmrg		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
9382c7c4e3dSmrg		;;
9392c7c4e3dSmrg	pentiumpro-* | p6-* | 6x86-* | athlon-*)
9402c7c4e3dSmrg		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9412c7c4e3dSmrg		;;
9422c7c4e3dSmrg	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
9432c7c4e3dSmrg		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9442c7c4e3dSmrg		;;
9452c7c4e3dSmrg	pentium4-*)
9462c7c4e3dSmrg		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
9472c7c4e3dSmrg		;;
9482c7c4e3dSmrg	pn)
9492c7c4e3dSmrg		basic_machine=pn-gould
9502c7c4e3dSmrg		;;
9512c7c4e3dSmrg	power)	basic_machine=power-ibm
9522c7c4e3dSmrg		;;
9532c7c4e3dSmrg	ppc)	basic_machine=powerpc-unknown
9542c7c4e3dSmrg		;;
9552c7c4e3dSmrg	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
9562c7c4e3dSmrg		;;
9572c7c4e3dSmrg	ppcle | powerpclittle | ppc-le | powerpc-little)
9582c7c4e3dSmrg		basic_machine=powerpcle-unknown
9592c7c4e3dSmrg		;;
9602c7c4e3dSmrg	ppcle-* | powerpclittle-*)
9612c7c4e3dSmrg		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
9622c7c4e3dSmrg		;;
9632c7c4e3dSmrg	ppc64)	basic_machine=powerpc64-unknown
9642c7c4e3dSmrg		;;
9652c7c4e3dSmrg	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
9662c7c4e3dSmrg		;;
9672c7c4e3dSmrg	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
9682c7c4e3dSmrg		basic_machine=powerpc64le-unknown
9692c7c4e3dSmrg		;;
9702c7c4e3dSmrg	ppc64le-* | powerpc64little-*)
9712c7c4e3dSmrg		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
9722c7c4e3dSmrg		;;
9732c7c4e3dSmrg	ps2)
9742c7c4e3dSmrg		basic_machine=i386-ibm
9752c7c4e3dSmrg		;;
9762c7c4e3dSmrg	pw32)
9772c7c4e3dSmrg		basic_machine=i586-unknown
9782c7c4e3dSmrg		os=-pw32
9792c7c4e3dSmrg		;;
9808650bb69Smrg	rdos)
9818650bb69Smrg		basic_machine=i386-pc
9828650bb69Smrg		os=-rdos
9838650bb69Smrg		;;
9842c7c4e3dSmrg	rom68k)
9852c7c4e3dSmrg		basic_machine=m68k-rom68k
9862c7c4e3dSmrg		os=-coff
9872c7c4e3dSmrg		;;
9882c7c4e3dSmrg	rm[46]00)
9892c7c4e3dSmrg		basic_machine=mips-siemens
9902c7c4e3dSmrg		;;
9912c7c4e3dSmrg	rtpc | rtpc-*)
9922c7c4e3dSmrg		basic_machine=romp-ibm
9932c7c4e3dSmrg		;;
9948650bb69Smrg	s390 | s390-*)
9958650bb69Smrg		basic_machine=s390-ibm
9968650bb69Smrg		;;
9978650bb69Smrg	s390x | s390x-*)
9988650bb69Smrg		basic_machine=s390x-ibm
9998650bb69Smrg		;;
10002c7c4e3dSmrg	sa29200)
10012c7c4e3dSmrg		basic_machine=a29k-amd
10022c7c4e3dSmrg		os=-udi
10032c7c4e3dSmrg		;;
10042c7c4e3dSmrg	sb1)
10052c7c4e3dSmrg		basic_machine=mipsisa64sb1-unknown
10062c7c4e3dSmrg		;;
10072c7c4e3dSmrg	sb1el)
10082c7c4e3dSmrg		basic_machine=mipsisa64sb1el-unknown
10092c7c4e3dSmrg		;;
10108650bb69Smrg	sde)
10118650bb69Smrg		basic_machine=mipsisa32-sde
10128650bb69Smrg		os=-elf
10138650bb69Smrg		;;
10142c7c4e3dSmrg	sei)
10152c7c4e3dSmrg		basic_machine=mips-sei
10162c7c4e3dSmrg		os=-seiux
10172c7c4e3dSmrg		;;
10182c7c4e3dSmrg	sequent)
10192c7c4e3dSmrg		basic_machine=i386-sequent
10202c7c4e3dSmrg		;;
10212c7c4e3dSmrg	sh)
10222c7c4e3dSmrg		basic_machine=sh-hitachi
10232c7c4e3dSmrg		os=-hms
10242c7c4e3dSmrg		;;
10258650bb69Smrg	sh5el)
10268650bb69Smrg		basic_machine=sh5le-unknown
10278650bb69Smrg		;;
10282c7c4e3dSmrg	sh64)
10292c7c4e3dSmrg		basic_machine=sh64-unknown
10302c7c4e3dSmrg		;;
10312c7c4e3dSmrg	sparclite-wrs | simso-wrs)
10322c7c4e3dSmrg		basic_machine=sparclite-wrs
10332c7c4e3dSmrg		os=-vxworks
10342c7c4e3dSmrg		;;
10352c7c4e3dSmrg	sps7)
10362c7c4e3dSmrg		basic_machine=m68k-bull
10372c7c4e3dSmrg		os=-sysv2
10382c7c4e3dSmrg		;;
10392c7c4e3dSmrg	spur)
10402c7c4e3dSmrg		basic_machine=spur-unknown
10412c7c4e3dSmrg		;;
10422c7c4e3dSmrg	st2000)
10432c7c4e3dSmrg		basic_machine=m68k-tandem
10442c7c4e3dSmrg		;;
10452c7c4e3dSmrg	stratus)
10462c7c4e3dSmrg		basic_machine=i860-stratus
10472c7c4e3dSmrg		os=-sysv4
10482c7c4e3dSmrg		;;
10492c7c4e3dSmrg	sun2)
10502c7c4e3dSmrg		basic_machine=m68000-sun
10512c7c4e3dSmrg		;;
10522c7c4e3dSmrg	sun2os3)
10532c7c4e3dSmrg		basic_machine=m68000-sun
10542c7c4e3dSmrg		os=-sunos3
10552c7c4e3dSmrg		;;
10562c7c4e3dSmrg	sun2os4)
10572c7c4e3dSmrg		basic_machine=m68000-sun
10582c7c4e3dSmrg		os=-sunos4
10592c7c4e3dSmrg		;;
10602c7c4e3dSmrg	sun3os3)
10612c7c4e3dSmrg		basic_machine=m68k-sun
10622c7c4e3dSmrg		os=-sunos3
10632c7c4e3dSmrg		;;
10642c7c4e3dSmrg	sun3os4)
10652c7c4e3dSmrg		basic_machine=m68k-sun
10662c7c4e3dSmrg		os=-sunos4
10672c7c4e3dSmrg		;;
10682c7c4e3dSmrg	sun4os3)
10692c7c4e3dSmrg		basic_machine=sparc-sun
10702c7c4e3dSmrg		os=-sunos3
10712c7c4e3dSmrg		;;
10722c7c4e3dSmrg	sun4os4)
10732c7c4e3dSmrg		basic_machine=sparc-sun
10742c7c4e3dSmrg		os=-sunos4
10752c7c4e3dSmrg		;;
10762c7c4e3dSmrg	sun4sol2)
10772c7c4e3dSmrg		basic_machine=sparc-sun
10782c7c4e3dSmrg		os=-solaris2
10792c7c4e3dSmrg		;;
10802c7c4e3dSmrg	sun3 | sun3-*)
10812c7c4e3dSmrg		basic_machine=m68k-sun
10822c7c4e3dSmrg		;;
10832c7c4e3dSmrg	sun4)
10842c7c4e3dSmrg		basic_machine=sparc-sun
10852c7c4e3dSmrg		;;
10862c7c4e3dSmrg	sun386 | sun386i | roadrunner)
10872c7c4e3dSmrg		basic_machine=i386-sun
10882c7c4e3dSmrg		;;
10892c7c4e3dSmrg	sv1)
10902c7c4e3dSmrg		basic_machine=sv1-cray
10912c7c4e3dSmrg		os=-unicos
10922c7c4e3dSmrg		;;
10932c7c4e3dSmrg	symmetry)
10942c7c4e3dSmrg		basic_machine=i386-sequent
10952c7c4e3dSmrg		os=-dynix
10962c7c4e3dSmrg		;;
10972c7c4e3dSmrg	t3e)
10982c7c4e3dSmrg		basic_machine=alphaev5-cray
10992c7c4e3dSmrg		os=-unicos
11002c7c4e3dSmrg		;;
11012c7c4e3dSmrg	t90)
11022c7c4e3dSmrg		basic_machine=t90-cray
11032c7c4e3dSmrg		os=-unicos
11042c7c4e3dSmrg		;;
110516d7e2f1Smrg        # This must be matched before tile*.
110616d7e2f1Smrg        tilegx*)
110716d7e2f1Smrg		basic_machine=tilegx-unknown
110816d7e2f1Smrg		os=-linux-gnu
11092c7c4e3dSmrg		;;
11108650bb69Smrg	tile*)
11118650bb69Smrg		basic_machine=tile-unknown
11128650bb69Smrg		os=-linux-gnu
11138650bb69Smrg		;;
11142c7c4e3dSmrg	tx39)
11152c7c4e3dSmrg		basic_machine=mipstx39-unknown
11162c7c4e3dSmrg		;;
11172c7c4e3dSmrg	tx39el)
11182c7c4e3dSmrg		basic_machine=mipstx39el-unknown
11192c7c4e3dSmrg		;;
11202c7c4e3dSmrg	toad1)
11212c7c4e3dSmrg		basic_machine=pdp10-xkl
11222c7c4e3dSmrg		os=-tops20
11232c7c4e3dSmrg		;;
11242c7c4e3dSmrg	tower | tower-32)
11252c7c4e3dSmrg		basic_machine=m68k-ncr
11262c7c4e3dSmrg		;;
11278650bb69Smrg	tpf)
11288650bb69Smrg		basic_machine=s390x-ibm
11298650bb69Smrg		os=-tpf
11308650bb69Smrg		;;
11312c7c4e3dSmrg	udi29k)
11322c7c4e3dSmrg		basic_machine=a29k-amd
11332c7c4e3dSmrg		os=-udi
11342c7c4e3dSmrg		;;
11352c7c4e3dSmrg	ultra3)
11362c7c4e3dSmrg		basic_machine=a29k-nyu
11372c7c4e3dSmrg		os=-sym1
11382c7c4e3dSmrg		;;
11392c7c4e3dSmrg	v810 | necv810)
11402c7c4e3dSmrg		basic_machine=v810-nec
11412c7c4e3dSmrg		os=-none
11422c7c4e3dSmrg		;;
11432c7c4e3dSmrg	vaxv)
11442c7c4e3dSmrg		basic_machine=vax-dec
11452c7c4e3dSmrg		os=-sysv
11462c7c4e3dSmrg		;;
11472c7c4e3dSmrg	vms)
11482c7c4e3dSmrg		basic_machine=vax-dec
11492c7c4e3dSmrg		os=-vms
11502c7c4e3dSmrg		;;
11512c7c4e3dSmrg	vpp*|vx|vx-*)
11522c7c4e3dSmrg		basic_machine=f301-fujitsu
11532c7c4e3dSmrg		;;
11542c7c4e3dSmrg	vxworks960)
11552c7c4e3dSmrg		basic_machine=i960-wrs
11562c7c4e3dSmrg		os=-vxworks
11572c7c4e3dSmrg		;;
11582c7c4e3dSmrg	vxworks68)
11592c7c4e3dSmrg		basic_machine=m68k-wrs
11602c7c4e3dSmrg		os=-vxworks
11612c7c4e3dSmrg		;;
11622c7c4e3dSmrg	vxworks29k)
11632c7c4e3dSmrg		basic_machine=a29k-wrs
11642c7c4e3dSmrg		os=-vxworks
11652c7c4e3dSmrg		;;
11662c7c4e3dSmrg	w65*)
11672c7c4e3dSmrg		basic_machine=w65-wdc
11682c7c4e3dSmrg		os=-none
11692c7c4e3dSmrg		;;
11702c7c4e3dSmrg	w89k-*)
11712c7c4e3dSmrg		basic_machine=hppa1.1-winbond
11722c7c4e3dSmrg		os=-proelf
11732c7c4e3dSmrg		;;
11748650bb69Smrg	xbox)
11758650bb69Smrg		basic_machine=i686-pc
11768650bb69Smrg		os=-mingw32
11778650bb69Smrg		;;
11782c7c4e3dSmrg	xps | xps100)
11792c7c4e3dSmrg		basic_machine=xps100-honeywell
11802c7c4e3dSmrg		;;
11812c7c4e3dSmrg	ymp)
11822c7c4e3dSmrg		basic_machine=ymp-cray
11832c7c4e3dSmrg		os=-unicos
11842c7c4e3dSmrg		;;
11852c7c4e3dSmrg	z8k-*-coff)
11862c7c4e3dSmrg		basic_machine=z8k-unknown
11872c7c4e3dSmrg		os=-sim
11882c7c4e3dSmrg		;;
11898650bb69Smrg	z80-*-coff)
11908650bb69Smrg		basic_machine=z80-unknown
11918650bb69Smrg		os=-sim
11928650bb69Smrg		;;
11932c7c4e3dSmrg	none)
11942c7c4e3dSmrg		basic_machine=none-none
11952c7c4e3dSmrg		os=-none
11962c7c4e3dSmrg		;;
11972c7c4e3dSmrg
11982c7c4e3dSmrg# Here we handle the default manufacturer of certain CPU types.  It is in
11992c7c4e3dSmrg# some cases the only manufacturer, in others, it is the most popular.
12002c7c4e3dSmrg	w89k)
12012c7c4e3dSmrg		basic_machine=hppa1.1-winbond
12022c7c4e3dSmrg		;;
12032c7c4e3dSmrg	op50n)
12042c7c4e3dSmrg		basic_machine=hppa1.1-oki
12052c7c4e3dSmrg		;;
12062c7c4e3dSmrg	op60c)
12072c7c4e3dSmrg		basic_machine=hppa1.1-oki
12082c7c4e3dSmrg		;;
12092c7c4e3dSmrg	romp)
12102c7c4e3dSmrg		basic_machine=romp-ibm
12112c7c4e3dSmrg		;;
12128650bb69Smrg	mmix)
12138650bb69Smrg		basic_machine=mmix-knuth
12148650bb69Smrg		;;
12152c7c4e3dSmrg	rs6000)
12162c7c4e3dSmrg		basic_machine=rs6000-ibm
12172c7c4e3dSmrg		;;
12182c7c4e3dSmrg	vax)
12192c7c4e3dSmrg		basic_machine=vax-dec
12202c7c4e3dSmrg		;;
12212c7c4e3dSmrg	pdp10)
12222c7c4e3dSmrg		# there are many clones, so DEC is not a safe bet
12232c7c4e3dSmrg		basic_machine=pdp10-unknown
12242c7c4e3dSmrg		;;
12252c7c4e3dSmrg	pdp11)
12262c7c4e3dSmrg		basic_machine=pdp11-dec
12272c7c4e3dSmrg		;;
12282c7c4e3dSmrg	we32k)
12292c7c4e3dSmrg		basic_machine=we32k-att
12302c7c4e3dSmrg		;;
12318650bb69Smrg	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
12322c7c4e3dSmrg		basic_machine=sh-unknown
12332c7c4e3dSmrg		;;
12348650bb69Smrg	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
12352c7c4e3dSmrg		basic_machine=sparc-sun
12362c7c4e3dSmrg		;;
12372c7c4e3dSmrg	cydra)
12382c7c4e3dSmrg		basic_machine=cydra-cydrome
12392c7c4e3dSmrg		;;
12402c7c4e3dSmrg	orion)
12412c7c4e3dSmrg		basic_machine=orion-highlevel
12422c7c4e3dSmrg		;;
12432c7c4e3dSmrg	orion105)
12442c7c4e3dSmrg		basic_machine=clipper-highlevel
12452c7c4e3dSmrg		;;
12462c7c4e3dSmrg	mac | mpw | mac-mpw)
12472c7c4e3dSmrg		basic_machine=m68k-apple
12482c7c4e3dSmrg		;;
12492c7c4e3dSmrg	pmac | pmac-mpw)
12502c7c4e3dSmrg		basic_machine=powerpc-apple
12512c7c4e3dSmrg		;;
12522c7c4e3dSmrg	*-unknown)
12532c7c4e3dSmrg		# Make sure to match an already-canonicalized machine name.
12542c7c4e3dSmrg		;;
12552c7c4e3dSmrg	*)
12562c7c4e3dSmrg		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
12572c7c4e3dSmrg		exit 1
12582c7c4e3dSmrg		;;
12592c7c4e3dSmrgesac
12602c7c4e3dSmrg
12612c7c4e3dSmrg# Here we canonicalize certain aliases for manufacturers.
12622c7c4e3dSmrgcase $basic_machine in
12632c7c4e3dSmrg	*-digital*)
12642c7c4e3dSmrg		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
12652c7c4e3dSmrg		;;
12662c7c4e3dSmrg	*-commodore*)
12672c7c4e3dSmrg		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
12682c7c4e3dSmrg		;;
12692c7c4e3dSmrg	*)
12702c7c4e3dSmrg		;;
12712c7c4e3dSmrgesac
12722c7c4e3dSmrg
12732c7c4e3dSmrg# Decode manufacturer-specific aliases for certain operating systems.
12742c7c4e3dSmrg
12752c7c4e3dSmrgif [ x"$os" != x"" ]
12762c7c4e3dSmrgthen
12772c7c4e3dSmrgcase $os in
12782c7c4e3dSmrg        # First match some system type aliases
12792c7c4e3dSmrg        # that might get confused with valid system types.
12802c7c4e3dSmrg	# -solaris* is a basic system type, with this one exception.
128116d7e2f1Smrg        -auroraux)
128216d7e2f1Smrg	        os=-auroraux
128316d7e2f1Smrg		;;
12842c7c4e3dSmrg	-solaris1 | -solaris1.*)
12852c7c4e3dSmrg		os=`echo $os | sed -e 's|solaris1|sunos4|'`
12862c7c4e3dSmrg		;;
12872c7c4e3dSmrg	-solaris)
12882c7c4e3dSmrg		os=-solaris2
12892c7c4e3dSmrg		;;
12902c7c4e3dSmrg	-svr4*)
12912c7c4e3dSmrg		os=-sysv4
12922c7c4e3dSmrg		;;
12932c7c4e3dSmrg	-unixware*)
12942c7c4e3dSmrg		os=-sysv4.2uw
12952c7c4e3dSmrg		;;
12962c7c4e3dSmrg	-gnu/linux*)
12972c7c4e3dSmrg		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
12982c7c4e3dSmrg		;;
12992c7c4e3dSmrg	# First accept the basic system types.
13002c7c4e3dSmrg	# The portable systems comes first.
13012c7c4e3dSmrg	# Each alternative MUST END IN A *, to match a version number.
13022c7c4e3dSmrg	# -sysv* is not here because it comes later, after sysvr4.
13032c7c4e3dSmrg	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
130416d7e2f1Smrg	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
130516d7e2f1Smrg	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
130616d7e2f1Smrg	      | -sym* | -kopensolaris* \
13072c7c4e3dSmrg	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13088650bb69Smrg	      | -aos* | -aros* \
13092c7c4e3dSmrg	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13102c7c4e3dSmrg	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13118650bb69Smrg	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
13128650bb69Smrg	      | -openbsd* | -solidbsd* \
13138650bb69Smrg	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13148650bb69Smrg	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13152c7c4e3dSmrg	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13162c7c4e3dSmrg	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13178650bb69Smrg	      | -chorusos* | -chorusrdb* | -cegcc* \
13182c7c4e3dSmrg	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
131916d7e2f1Smrg	      | -mingw32* | -linux-gnu* | -linux-android* \
132016d7e2f1Smrg	      | -linux-newlib* | -linux-uclibc* \
13218650bb69Smrg	      | -uxpv* | -beos* | -mpeix* | -udk* \
13222c7c4e3dSmrg	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13232c7c4e3dSmrg	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13242c7c4e3dSmrg	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13252c7c4e3dSmrg	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13262c7c4e3dSmrg	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13278650bb69Smrg	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
132816d7e2f1Smrg	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
13292c7c4e3dSmrg	# Remember, each alternative MUST END IN *, to match a version number.
13302c7c4e3dSmrg		;;
13312c7c4e3dSmrg	-qnx*)
13322c7c4e3dSmrg		case $basic_machine in
13332c7c4e3dSmrg		    x86-* | i*86-*)
13342c7c4e3dSmrg			;;
13352c7c4e3dSmrg		    *)
13362c7c4e3dSmrg			os=-nto$os
13372c7c4e3dSmrg			;;
13382c7c4e3dSmrg		esac
13392c7c4e3dSmrg		;;
13402c7c4e3dSmrg	-nto-qnx*)
13412c7c4e3dSmrg		;;
13422c7c4e3dSmrg	-nto*)
13432c7c4e3dSmrg		os=`echo $os | sed -e 's|nto|nto-qnx|'`
13442c7c4e3dSmrg		;;
13452c7c4e3dSmrg	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
13468650bb69Smrg	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
13472c7c4e3dSmrg	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
13482c7c4e3dSmrg		;;
13492c7c4e3dSmrg	-mac*)
13502c7c4e3dSmrg		os=`echo $os | sed -e 's|mac|macos|'`
13512c7c4e3dSmrg		;;
13528650bb69Smrg	-linux-dietlibc)
13538650bb69Smrg		os=-linux-dietlibc
13548650bb69Smrg		;;
13552c7c4e3dSmrg	-linux*)
13562c7c4e3dSmrg		os=`echo $os | sed -e 's|linux|linux-gnu|'`
13572c7c4e3dSmrg		;;
13582c7c4e3dSmrg	-sunos5*)
13592c7c4e3dSmrg		os=`echo $os | sed -e 's|sunos5|solaris2|'`
13602c7c4e3dSmrg		;;
13612c7c4e3dSmrg	-sunos6*)
13622c7c4e3dSmrg		os=`echo $os | sed -e 's|sunos6|solaris3|'`
13632c7c4e3dSmrg		;;
13642c7c4e3dSmrg	-opened*)
13652c7c4e3dSmrg		os=-openedition
13662c7c4e3dSmrg		;;
13678650bb69Smrg        -os400*)
13688650bb69Smrg		os=-os400
13698650bb69Smrg		;;
13702c7c4e3dSmrg	-wince*)
13712c7c4e3dSmrg		os=-wince
13722c7c4e3dSmrg		;;
13732c7c4e3dSmrg	-osfrose*)
13742c7c4e3dSmrg		os=-osfrose
13752c7c4e3dSmrg		;;
13762c7c4e3dSmrg	-osf*)
13772c7c4e3dSmrg		os=-osf
13782c7c4e3dSmrg		;;
13792c7c4e3dSmrg	-utek*)
13802c7c4e3dSmrg		os=-bsd
13812c7c4e3dSmrg		;;
13822c7c4e3dSmrg	-dynix*)
13832c7c4e3dSmrg		os=-bsd
13842c7c4e3dSmrg		;;
13852c7c4e3dSmrg	-acis*)
13862c7c4e3dSmrg		os=-aos
13872c7c4e3dSmrg		;;
13882c7c4e3dSmrg	-atheos*)
13892c7c4e3dSmrg		os=-atheos
13902c7c4e3dSmrg		;;
13918650bb69Smrg	-syllable*)
13928650bb69Smrg		os=-syllable
13938650bb69Smrg		;;
13942c7c4e3dSmrg	-386bsd)
13952c7c4e3dSmrg		os=-bsd
13962c7c4e3dSmrg		;;
13972c7c4e3dSmrg	-ctix* | -uts*)
13982c7c4e3dSmrg		os=-sysv
13992c7c4e3dSmrg		;;
14002c7c4e3dSmrg	-nova*)
14012c7c4e3dSmrg		os=-rtmk-nova
14022c7c4e3dSmrg		;;
14032c7c4e3dSmrg	-ns2 )
14042c7c4e3dSmrg		os=-nextstep2
14052c7c4e3dSmrg		;;
14062c7c4e3dSmrg	-nsk*)
14072c7c4e3dSmrg		os=-nsk
14082c7c4e3dSmrg		;;
14092c7c4e3dSmrg	# Preserve the version number of sinix5.
14102c7c4e3dSmrg	-sinix5.*)
14112c7c4e3dSmrg		os=`echo $os | sed -e 's|sinix|sysv|'`
14122c7c4e3dSmrg		;;
14132c7c4e3dSmrg	-sinix*)
14142c7c4e3dSmrg		os=-sysv4
14152c7c4e3dSmrg		;;
14168650bb69Smrg        -tpf*)
14178650bb69Smrg		os=-tpf
14188650bb69Smrg		;;
14192c7c4e3dSmrg	-triton*)
14202c7c4e3dSmrg		os=-sysv3
14212c7c4e3dSmrg		;;
14222c7c4e3dSmrg	-oss*)
14232c7c4e3dSmrg		os=-sysv3
14242c7c4e3dSmrg		;;
14252c7c4e3dSmrg	-svr4)
14262c7c4e3dSmrg		os=-sysv4
14272c7c4e3dSmrg		;;
14282c7c4e3dSmrg	-svr3)
14292c7c4e3dSmrg		os=-sysv3
14302c7c4e3dSmrg		;;
14312c7c4e3dSmrg	-sysvr4)
14322c7c4e3dSmrg		os=-sysv4
14332c7c4e3dSmrg		;;
14342c7c4e3dSmrg	# This must come after -sysvr4.
14352c7c4e3dSmrg	-sysv*)
14362c7c4e3dSmrg		;;
14372c7c4e3dSmrg	-ose*)
14382c7c4e3dSmrg		os=-ose
14392c7c4e3dSmrg		;;
14402c7c4e3dSmrg	-es1800*)
14412c7c4e3dSmrg		os=-ose
14422c7c4e3dSmrg		;;
14432c7c4e3dSmrg	-xenix)
14442c7c4e3dSmrg		os=-xenix
14452c7c4e3dSmrg		;;
14462c7c4e3dSmrg	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
14472c7c4e3dSmrg		os=-mint
14482c7c4e3dSmrg		;;
14492c7c4e3dSmrg	-aros*)
14502c7c4e3dSmrg		os=-aros
14512c7c4e3dSmrg		;;
14522c7c4e3dSmrg	-kaos*)
14532c7c4e3dSmrg		os=-kaos
14542c7c4e3dSmrg		;;
14558650bb69Smrg	-zvmoe)
14568650bb69Smrg		os=-zvmoe
14578650bb69Smrg		;;
14588650bb69Smrg	-dicos*)
14598650bb69Smrg		os=-dicos
14608650bb69Smrg		;;
146116d7e2f1Smrg        -nacl*)
146216d7e2f1Smrg	        ;;
14632c7c4e3dSmrg	-none)
14642c7c4e3dSmrg		;;
14652c7c4e3dSmrg	*)
14662c7c4e3dSmrg		# Get rid of the `-' at the beginning of $os.
14672c7c4e3dSmrg		os=`echo $os | sed 's/[^-]*-//'`
14682c7c4e3dSmrg		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
14692c7c4e3dSmrg		exit 1
14702c7c4e3dSmrg		;;
14712c7c4e3dSmrgesac
14722c7c4e3dSmrgelse
14732c7c4e3dSmrg
14742c7c4e3dSmrg# Here we handle the default operating systems that come with various machines.
14752c7c4e3dSmrg# The value should be what the vendor currently ships out the door with their
14762c7c4e3dSmrg# machine or put another way, the most popular os provided with the machine.
14772c7c4e3dSmrg
14782c7c4e3dSmrg# Note that if you're going to try to match "-MANUFACTURER" here (say,
14792c7c4e3dSmrg# "-sun"), then you have to tell the case statement up towards the top
14802c7c4e3dSmrg# that MANUFACTURER isn't an operating system.  Otherwise, code above
14812c7c4e3dSmrg# will signal an error saying that MANUFACTURER isn't an operating
14822c7c4e3dSmrg# system, and we'll never get to this point.
14832c7c4e3dSmrg
14842c7c4e3dSmrgcase $basic_machine in
14858650bb69Smrg        score-*)
14868650bb69Smrg		os=-elf
14878650bb69Smrg		;;
14888650bb69Smrg        spu-*)
14898650bb69Smrg		os=-elf
14908650bb69Smrg		;;
14912c7c4e3dSmrg	*-acorn)
14922c7c4e3dSmrg		os=-riscix1.2
14932c7c4e3dSmrg		;;
14942c7c4e3dSmrg	arm*-rebel)
14952c7c4e3dSmrg		os=-linux
14962c7c4e3dSmrg		;;
14972c7c4e3dSmrg	arm*-semi)
14982c7c4e3dSmrg		os=-aout
14992c7c4e3dSmrg		;;
15008650bb69Smrg        c4x-* | tic4x-*)
15018650bb69Smrg        	os=-coff
15022c7c4e3dSmrg		;;
150316d7e2f1Smrg	tic54x-*)
150416d7e2f1Smrg		os=-coff
150516d7e2f1Smrg		;;
150616d7e2f1Smrg	tic55x-*)
150716d7e2f1Smrg		os=-coff
150816d7e2f1Smrg		;;
150916d7e2f1Smrg	tic6x-*)
151016d7e2f1Smrg		os=-coff
151116d7e2f1Smrg		;;
15122c7c4e3dSmrg	# This must come before the *-dec entry.
15132c7c4e3dSmrg	pdp10-*)
15142c7c4e3dSmrg		os=-tops20
15152c7c4e3dSmrg		;;
15162c7c4e3dSmrg	pdp11-*)
15172c7c4e3dSmrg		os=-none
15182c7c4e3dSmrg		;;
15192c7c4e3dSmrg	*-dec | vax-*)
15202c7c4e3dSmrg		os=-ultrix4.2
15212c7c4e3dSmrg		;;
15222c7c4e3dSmrg	m68*-apollo)
15232c7c4e3dSmrg		os=-domain
15242c7c4e3dSmrg		;;
15252c7c4e3dSmrg	i386-sun)
15262c7c4e3dSmrg		os=-sunos4.0.2
15272c7c4e3dSmrg		;;
15282c7c4e3dSmrg	m68000-sun)
15292c7c4e3dSmrg		os=-sunos3
15302c7c4e3dSmrg		# This also exists in the configure program, but was not the
15312c7c4e3dSmrg		# default.
15322c7c4e3dSmrg		# os=-sunos4
15332c7c4e3dSmrg		;;
15342c7c4e3dSmrg	m68*-cisco)
15352c7c4e3dSmrg		os=-aout
15362c7c4e3dSmrg		;;
15378650bb69Smrg        mep-*)
15388650bb69Smrg		os=-elf
15398650bb69Smrg		;;
15402c7c4e3dSmrg	mips*-cisco)
15412c7c4e3dSmrg		os=-elf
15422c7c4e3dSmrg		;;
15432c7c4e3dSmrg	mips*-*)
15442c7c4e3dSmrg		os=-elf
15452c7c4e3dSmrg		;;
15462c7c4e3dSmrg	or32-*)
15472c7c4e3dSmrg		os=-coff
15482c7c4e3dSmrg		;;
15492c7c4e3dSmrg	*-tti)	# must be before sparc entry or we get the wrong os.
15502c7c4e3dSmrg		os=-sysv3
15512c7c4e3dSmrg		;;
15522c7c4e3dSmrg	sparc-* | *-sun)
15532c7c4e3dSmrg		os=-sunos4.1.1
15542c7c4e3dSmrg		;;
15552c7c4e3dSmrg	*-be)
15562c7c4e3dSmrg		os=-beos
15572c7c4e3dSmrg		;;
15588650bb69Smrg	*-haiku)
15598650bb69Smrg		os=-haiku
15608650bb69Smrg		;;
15612c7c4e3dSmrg	*-ibm)
15622c7c4e3dSmrg		os=-aix
15632c7c4e3dSmrg		;;
15648650bb69Smrg    	*-knuth)
15658650bb69Smrg		os=-mmixware
15668650bb69Smrg		;;
15672c7c4e3dSmrg	*-wec)
15682c7c4e3dSmrg		os=-proelf
15692c7c4e3dSmrg		;;
15702c7c4e3dSmrg	*-winbond)
15712c7c4e3dSmrg		os=-proelf
15722c7c4e3dSmrg		;;
15732c7c4e3dSmrg	*-oki)
15742c7c4e3dSmrg		os=-proelf
15752c7c4e3dSmrg		;;
15762c7c4e3dSmrg	*-hp)
15772c7c4e3dSmrg		os=-hpux
15782c7c4e3dSmrg		;;
15792c7c4e3dSmrg	*-hitachi)
15802c7c4e3dSmrg		os=-hiux
15812c7c4e3dSmrg		;;
15822c7c4e3dSmrg	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
15832c7c4e3dSmrg		os=-sysv
15842c7c4e3dSmrg		;;
15852c7c4e3dSmrg	*-cbm)
15862c7c4e3dSmrg		os=-amigaos
15872c7c4e3dSmrg		;;
15882c7c4e3dSmrg	*-dg)
15892c7c4e3dSmrg		os=-dgux
15902c7c4e3dSmrg		;;
15912c7c4e3dSmrg	*-dolphin)
15922c7c4e3dSmrg		os=-sysv3
15932c7c4e3dSmrg		;;
15942c7c4e3dSmrg	m68k-ccur)
15952c7c4e3dSmrg		os=-rtu
15962c7c4e3dSmrg		;;
15972c7c4e3dSmrg	m88k-omron*)
15982c7c4e3dSmrg		os=-luna
15992c7c4e3dSmrg		;;
16002c7c4e3dSmrg	*-next )
16012c7c4e3dSmrg		os=-nextstep
16022c7c4e3dSmrg		;;
16032c7c4e3dSmrg	*-sequent)
16042c7c4e3dSmrg		os=-ptx
16052c7c4e3dSmrg		;;
16062c7c4e3dSmrg	*-crds)
16072c7c4e3dSmrg		os=-unos
16082c7c4e3dSmrg		;;
16092c7c4e3dSmrg	*-ns)
16102c7c4e3dSmrg		os=-genix
16112c7c4e3dSmrg		;;
16122c7c4e3dSmrg	i370-*)
16132c7c4e3dSmrg		os=-mvs
16142c7c4e3dSmrg		;;
16152c7c4e3dSmrg	*-next)
16162c7c4e3dSmrg		os=-nextstep3
16172c7c4e3dSmrg		;;
16182c7c4e3dSmrg	*-gould)
16192c7c4e3dSmrg		os=-sysv
16202c7c4e3dSmrg		;;
16212c7c4e3dSmrg	*-highlevel)
16222c7c4e3dSmrg		os=-bsd
16232c7c4e3dSmrg		;;
16242c7c4e3dSmrg	*-encore)
16252c7c4e3dSmrg		os=-bsd
16262c7c4e3dSmrg		;;
16272c7c4e3dSmrg	*-sgi)
16282c7c4e3dSmrg		os=-irix
16292c7c4e3dSmrg		;;
16302c7c4e3dSmrg	*-siemens)
16312c7c4e3dSmrg		os=-sysv4
16322c7c4e3dSmrg		;;
16332c7c4e3dSmrg	*-masscomp)
16342c7c4e3dSmrg		os=-rtu
16352c7c4e3dSmrg		;;
16362c7c4e3dSmrg	f30[01]-fujitsu | f700-fujitsu)
16372c7c4e3dSmrg		os=-uxpv
16382c7c4e3dSmrg		;;
16392c7c4e3dSmrg	*-rom68k)
16402c7c4e3dSmrg		os=-coff
16412c7c4e3dSmrg		;;
16422c7c4e3dSmrg	*-*bug)
16432c7c4e3dSmrg		os=-coff
16442c7c4e3dSmrg		;;
16452c7c4e3dSmrg	*-apple)
16462c7c4e3dSmrg		os=-macos
16472c7c4e3dSmrg		;;
16482c7c4e3dSmrg	*-atari*)
16492c7c4e3dSmrg		os=-mint
16502c7c4e3dSmrg		;;
16512c7c4e3dSmrg	*)
16522c7c4e3dSmrg		os=-none
16532c7c4e3dSmrg		;;
16542c7c4e3dSmrgesac
16552c7c4e3dSmrgfi
16562c7c4e3dSmrg
16572c7c4e3dSmrg# Here we handle the case where we know the os, and the CPU type, but not the
16582c7c4e3dSmrg# manufacturer.  We pick the logical manufacturer.
16592c7c4e3dSmrgvendor=unknown
16602c7c4e3dSmrgcase $basic_machine in
16612c7c4e3dSmrg	*-unknown)
16622c7c4e3dSmrg		case $os in
16632c7c4e3dSmrg			-riscix*)
16642c7c4e3dSmrg				vendor=acorn
16652c7c4e3dSmrg				;;
16662c7c4e3dSmrg			-sunos*)
16672c7c4e3dSmrg				vendor=sun
16682c7c4e3dSmrg				;;
166916d7e2f1Smrg			-cnk*|-aix*)
16702c7c4e3dSmrg				vendor=ibm
16712c7c4e3dSmrg				;;
16722c7c4e3dSmrg			-beos*)
16732c7c4e3dSmrg				vendor=be
16742c7c4e3dSmrg				;;
16752c7c4e3dSmrg			-hpux*)
16762c7c4e3dSmrg				vendor=hp
16772c7c4e3dSmrg				;;
16782c7c4e3dSmrg			-mpeix*)
16792c7c4e3dSmrg				vendor=hp
16802c7c4e3dSmrg				;;
16812c7c4e3dSmrg			-hiux*)
16822c7c4e3dSmrg				vendor=hitachi
16832c7c4e3dSmrg				;;
16842c7c4e3dSmrg			-unos*)
16852c7c4e3dSmrg				vendor=crds
16862c7c4e3dSmrg				;;
16872c7c4e3dSmrg			-dgux*)
16882c7c4e3dSmrg				vendor=dg
16892c7c4e3dSmrg				;;
16902c7c4e3dSmrg			-luna*)
16912c7c4e3dSmrg				vendor=omron
16922c7c4e3dSmrg				;;
16932c7c4e3dSmrg			-genix*)
16942c7c4e3dSmrg				vendor=ns
16952c7c4e3dSmrg				;;
16962c7c4e3dSmrg			-mvs* | -opened*)
16972c7c4e3dSmrg				vendor=ibm
16982c7c4e3dSmrg				;;
16998650bb69Smrg			-os400*)
17008650bb69Smrg				vendor=ibm
17018650bb69Smrg				;;
17022c7c4e3dSmrg			-ptx*)
17032c7c4e3dSmrg				vendor=sequent
17042c7c4e3dSmrg				;;
17058650bb69Smrg			-tpf*)
17068650bb69Smrg				vendor=ibm
17078650bb69Smrg				;;
17082c7c4e3dSmrg			-vxsim* | -vxworks* | -windiss*)
17092c7c4e3dSmrg				vendor=wrs
17102c7c4e3dSmrg				;;
17112c7c4e3dSmrg			-aux*)
17122c7c4e3dSmrg				vendor=apple
17132c7c4e3dSmrg				;;
17142c7c4e3dSmrg			-hms*)
17152c7c4e3dSmrg				vendor=hitachi
17162c7c4e3dSmrg				;;
17172c7c4e3dSmrg			-mpw* | -macos*)
17182c7c4e3dSmrg				vendor=apple
17192c7c4e3dSmrg				;;
17202c7c4e3dSmrg			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
17212c7c4e3dSmrg				vendor=atari
17222c7c4e3dSmrg				;;
17232c7c4e3dSmrg			-vos*)
17242c7c4e3dSmrg				vendor=stratus
17252c7c4e3dSmrg				;;
17262c7c4e3dSmrg		esac
17272c7c4e3dSmrg		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
17282c7c4e3dSmrg		;;
17292c7c4e3dSmrgesac
17302c7c4e3dSmrg
17312c7c4e3dSmrgecho $basic_machine$os
17328650bb69Smrgexit
17332c7c4e3dSmrg
17342c7c4e3dSmrg# Local variables:
17352c7c4e3dSmrg# eval: (add-hook 'write-file-hooks 'time-stamp)
17362c7c4e3dSmrg# time-stamp-start: "timestamp='"
17372c7c4e3dSmrg# time-stamp-format: "%:y-%02m-%02d"
17382c7c4e3dSmrg# time-stamp-end: "'"
17392c7c4e3dSmrg# End:
1740