config.sub revision 9c9ff80c
11f0ac6a5Smrg#! /bin/sh
21f0ac6a5Smrg# Configuration validation subroutine script.
31f0ac6a5Smrg#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
49c9ff80cSmrg#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5e5410a46Smrg#   Free Software Foundation, Inc.
61f0ac6a5Smrg
79c9ff80cSmrgtimestamp='2009-11-20'
81f0ac6a5Smrg
91f0ac6a5Smrg# This file is (in principle) common to ALL GNU software.
101f0ac6a5Smrg# The presence of a machine in this file suggests that SOME GNU software
111f0ac6a5Smrg# can handle that machine.  It does not imply ALL GNU software can.
121f0ac6a5Smrg#
131f0ac6a5Smrg# This file is free software; you can redistribute it and/or modify
141f0ac6a5Smrg# it under the terms of the GNU General Public License as published by
151f0ac6a5Smrg# the Free Software Foundation; either version 2 of the License, or
161f0ac6a5Smrg# (at your option) any later version.
171f0ac6a5Smrg#
181f0ac6a5Smrg# This program is distributed in the hope that it will be useful,
191f0ac6a5Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
201f0ac6a5Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
211f0ac6a5Smrg# GNU General Public License for more details.
221f0ac6a5Smrg#
231f0ac6a5Smrg# You should have received a copy of the GNU General Public License
241f0ac6a5Smrg# along with this program; if not, write to the Free Software
25e5410a46Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26e5410a46Smrg# 02110-1301, USA.
27e5410a46Smrg#
281f0ac6a5Smrg# As a special exception to the GNU General Public License, if you
291f0ac6a5Smrg# distribute this file as part of a program that contains a
301f0ac6a5Smrg# configuration script generated by Autoconf, you may include it under
311f0ac6a5Smrg# the same distribution terms that you use for the rest of that program.
321f0ac6a5Smrg
33e5410a46Smrg
341f0ac6a5Smrg# Please send patches to <config-patches@gnu.org>.  Submit a context
359c9ff80cSmrg# diff and a properly formatted GNU ChangeLog entry.
361f0ac6a5Smrg#
371f0ac6a5Smrg# Configuration subroutine to validate and canonicalize a configuration type.
381f0ac6a5Smrg# Supply the specified configuration type as an argument.
391f0ac6a5Smrg# If it is invalid, we print an error message on stderr and exit with code 1.
401f0ac6a5Smrg# Otherwise, we print the canonical config type on stdout and succeed.
411f0ac6a5Smrg
429c9ff80cSmrg# You can get the latest version of this script from:
439c9ff80cSmrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
449c9ff80cSmrg
451f0ac6a5Smrg# This file is supposed to be the same for all GNU packages
461f0ac6a5Smrg# and recognize all the CPU types, system types and aliases
471f0ac6a5Smrg# that are meaningful with *any* GNU software.
481f0ac6a5Smrg# Each package is responsible for reporting which valid configurations
491f0ac6a5Smrg# it does not support.  The user should be able to distinguish
501f0ac6a5Smrg# a failure to support a valid configuration from a meaningless
511f0ac6a5Smrg# configuration.
521f0ac6a5Smrg
531f0ac6a5Smrg# The goal of this file is to map all the various variations of a given
541f0ac6a5Smrg# machine specification into a single specification in the form:
551f0ac6a5Smrg#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
561f0ac6a5Smrg# or in some cases, the newer four-part form:
571f0ac6a5Smrg#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
581f0ac6a5Smrg# It is wrong to echo any other type of specification.
591f0ac6a5Smrg
601f0ac6a5Smrgme=`echo "$0" | sed -e 's,.*/,,'`
611f0ac6a5Smrg
621f0ac6a5Smrgusage="\
631f0ac6a5SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS
641f0ac6a5Smrg       $0 [OPTION] ALIAS
651f0ac6a5Smrg
661f0ac6a5SmrgCanonicalize a configuration name.
671f0ac6a5Smrg
681f0ac6a5SmrgOperation modes:
691f0ac6a5Smrg  -h, --help         print this help, then exit
701f0ac6a5Smrg  -t, --time-stamp   print date of last modification, then exit
711f0ac6a5Smrg  -v, --version      print version number, then exit
721f0ac6a5Smrg
731f0ac6a5SmrgReport bugs and patches to <config-patches@gnu.org>."
741f0ac6a5Smrg
751f0ac6a5Smrgversion="\
761f0ac6a5SmrgGNU config.sub ($timestamp)
771f0ac6a5Smrg
78e5410a46SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
79e5410a46Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
801f0ac6a5Smrg
811f0ac6a5SmrgThis is free software; see the source for copying conditions.  There is NO
821f0ac6a5Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
831f0ac6a5Smrg
841f0ac6a5Smrghelp="
851f0ac6a5SmrgTry \`$me --help' for more information."
861f0ac6a5Smrg
871f0ac6a5Smrg# Parse command line
881f0ac6a5Smrgwhile test $# -gt 0 ; do
891f0ac6a5Smrg  case $1 in
901f0ac6a5Smrg    --time-stamp | --time* | -t )
91e5410a46Smrg       echo "$timestamp" ; exit ;;
921f0ac6a5Smrg    --version | -v )
93e5410a46Smrg       echo "$version" ; exit ;;
941f0ac6a5Smrg    --help | --h* | -h )
95e5410a46Smrg       echo "$usage"; exit ;;
961f0ac6a5Smrg    -- )     # Stop option processing
971f0ac6a5Smrg       shift; break ;;
981f0ac6a5Smrg    - )	# Use stdin as input.
991f0ac6a5Smrg       break ;;
1001f0ac6a5Smrg    -* )
1011f0ac6a5Smrg       echo "$me: invalid option $1$help"
1021f0ac6a5Smrg       exit 1 ;;
1031f0ac6a5Smrg
1041f0ac6a5Smrg    *local*)
1051f0ac6a5Smrg       # First pass through any local machine types.
1061f0ac6a5Smrg       echo $1
107e5410a46Smrg       exit ;;
1081f0ac6a5Smrg
1091f0ac6a5Smrg    * )
1101f0ac6a5Smrg       break ;;
1111f0ac6a5Smrg  esac
1121f0ac6a5Smrgdone
1131f0ac6a5Smrg
1141f0ac6a5Smrgcase $# in
1151f0ac6a5Smrg 0) echo "$me: missing argument$help" >&2
1161f0ac6a5Smrg    exit 1;;
1171f0ac6a5Smrg 1) ;;
1181f0ac6a5Smrg *) echo "$me: too many arguments$help" >&2
1191f0ac6a5Smrg    exit 1;;
1201f0ac6a5Smrgesac
1211f0ac6a5Smrg
1221f0ac6a5Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1231f0ac6a5Smrg# Here we must recognize all the valid KERNEL-OS combinations.
1241f0ac6a5Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1251f0ac6a5Smrgcase $maybe_os in
126e5410a46Smrg  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127e5410a46Smrg  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1289c9ff80cSmrg  kopensolaris*-gnu* | \
129e5410a46Smrg  storm-chaos* | os2-emx* | rtmk-nova*)
1301f0ac6a5Smrg    os=-$maybe_os
1311f0ac6a5Smrg    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1321f0ac6a5Smrg    ;;
1331f0ac6a5Smrg  *)
1341f0ac6a5Smrg    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1351f0ac6a5Smrg    if [ $basic_machine != $1 ]
1361f0ac6a5Smrg    then os=`echo $1 | sed 's/.*-/-/'`
1371f0ac6a5Smrg    else os=; fi
1381f0ac6a5Smrg    ;;
1391f0ac6a5Smrgesac
1401f0ac6a5Smrg
1411f0ac6a5Smrg### Let's recognize common machines as not being operating systems so
1421f0ac6a5Smrg### that things like config.sub decstation-3100 work.  We also
1431f0ac6a5Smrg### recognize some manufacturers as not being operating systems, so we
1441f0ac6a5Smrg### can provide default operating systems below.
1451f0ac6a5Smrgcase $os in
1461f0ac6a5Smrg	-sun*os*)
1471f0ac6a5Smrg		# Prevent following clause from handling this invalid input.
1481f0ac6a5Smrg		;;
1491f0ac6a5Smrg	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1501f0ac6a5Smrg	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1511f0ac6a5Smrg	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1521f0ac6a5Smrg	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1531f0ac6a5Smrg	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1541f0ac6a5Smrg	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1559c9ff80cSmrg	-apple | -axis | -knuth | -cray | -microblaze)
1561f0ac6a5Smrg		os=
1571f0ac6a5Smrg		basic_machine=$1
1581f0ac6a5Smrg		;;
1599c9ff80cSmrg        -bluegene*)
1609c9ff80cSmrg	        os=-cnk
1619c9ff80cSmrg		;;
1621f0ac6a5Smrg	-sim | -cisco | -oki | -wec | -winbond)
1631f0ac6a5Smrg		os=
1641f0ac6a5Smrg		basic_machine=$1
1651f0ac6a5Smrg		;;
1661f0ac6a5Smrg	-scout)
1671f0ac6a5Smrg		;;
1681f0ac6a5Smrg	-wrs)
1691f0ac6a5Smrg		os=-vxworks
1701f0ac6a5Smrg		basic_machine=$1
1711f0ac6a5Smrg		;;
1721f0ac6a5Smrg	-chorusos*)
1731f0ac6a5Smrg		os=-chorusos
1741f0ac6a5Smrg		basic_machine=$1
1751f0ac6a5Smrg		;;
1761f0ac6a5Smrg 	-chorusrdb)
1771f0ac6a5Smrg 		os=-chorusrdb
1781f0ac6a5Smrg		basic_machine=$1
1791f0ac6a5Smrg 		;;
1801f0ac6a5Smrg	-hiux*)
1811f0ac6a5Smrg		os=-hiuxwe2
1821f0ac6a5Smrg		;;
183e5410a46Smrg	-sco6)
184e5410a46Smrg		os=-sco5v6
185e5410a46Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186e5410a46Smrg		;;
1871f0ac6a5Smrg	-sco5)
1881f0ac6a5Smrg		os=-sco3.2v5
1891f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1901f0ac6a5Smrg		;;
1911f0ac6a5Smrg	-sco4)
1921f0ac6a5Smrg		os=-sco3.2v4
1931f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1941f0ac6a5Smrg		;;
1951f0ac6a5Smrg	-sco3.2.[4-9]*)
1961f0ac6a5Smrg		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1971f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1981f0ac6a5Smrg		;;
1991f0ac6a5Smrg	-sco3.2v[4-9]*)
2001f0ac6a5Smrg		# Don't forget version if it is 3.2v4 or newer.
2011f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2021f0ac6a5Smrg		;;
203e5410a46Smrg	-sco5v6*)
204e5410a46Smrg		# Don't forget version if it is 3.2v4 or newer.
205e5410a46Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206e5410a46Smrg		;;
2071f0ac6a5Smrg	-sco*)
2081f0ac6a5Smrg		os=-sco3.2v2
2091f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2101f0ac6a5Smrg		;;
2111f0ac6a5Smrg	-udk*)
2121f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2131f0ac6a5Smrg		;;
2141f0ac6a5Smrg	-isc)
2151f0ac6a5Smrg		os=-isc2.2
2161f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2171f0ac6a5Smrg		;;
2181f0ac6a5Smrg	-clix*)
2191f0ac6a5Smrg		basic_machine=clipper-intergraph
2201f0ac6a5Smrg		;;
2211f0ac6a5Smrg	-isc*)
2221f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2231f0ac6a5Smrg		;;
2241f0ac6a5Smrg	-lynx*)
2251f0ac6a5Smrg		os=-lynxos
2261f0ac6a5Smrg		;;
2271f0ac6a5Smrg	-ptx*)
2281f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
2291f0ac6a5Smrg		;;
2301f0ac6a5Smrg	-windowsnt*)
2311f0ac6a5Smrg		os=`echo $os | sed -e 's/windowsnt/winnt/'`
2321f0ac6a5Smrg		;;
2331f0ac6a5Smrg	-psos*)
2341f0ac6a5Smrg		os=-psos
2351f0ac6a5Smrg		;;
2361f0ac6a5Smrg	-mint | -mint[0-9]*)
2371f0ac6a5Smrg		basic_machine=m68k-atari
2381f0ac6a5Smrg		os=-mint
2391f0ac6a5Smrg		;;
2401f0ac6a5Smrgesac
2411f0ac6a5Smrg
2421f0ac6a5Smrg# Decode aliases for certain CPU-COMPANY combinations.
2431f0ac6a5Smrgcase $basic_machine in
2441f0ac6a5Smrg	# Recognize the basic CPU types without company name.
2451f0ac6a5Smrg	# Some are omitted here because they have special meanings below.
2461f0ac6a5Smrg	1750a | 580 \
2471f0ac6a5Smrg	| a29k \
2481f0ac6a5Smrg	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2491f0ac6a5Smrg	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250e5410a46Smrg	| am33_2.0 \
251e5410a46Smrg	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
252e5410a46Smrg	| bfin \
2531f0ac6a5Smrg	| c4x | clipper \
2541f0ac6a5Smrg	| d10v | d30v | dlx | dsp16xx \
255e5410a46Smrg	| fido | fr30 | frv \
2561f0ac6a5Smrg	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2571f0ac6a5Smrg	| i370 | i860 | i960 | ia64 \
258e5410a46Smrg	| ip2k | iq2000 \
2599c9ff80cSmrg	| lm32 \
260e5410a46Smrg	| m32c | m32r | m32rle | m68000 | m68k | m88k \
2619c9ff80cSmrg	| maxq | mb | microblaze | mcore | mep | metag \
2621f0ac6a5Smrg	| mips | mipsbe | mipseb | mipsel | mipsle \
2631f0ac6a5Smrg	| mips16 \
2641f0ac6a5Smrg	| mips64 | mips64el \
2659c9ff80cSmrg	| mips64octeon | mips64octeonel \
2661f0ac6a5Smrg	| mips64orion | mips64orionel \
2679c9ff80cSmrg	| mips64r5900 | mips64r5900el \
2689c9ff80cSmrg	| mips64vr | mips64vrel \
2691f0ac6a5Smrg	| mips64vr4100 | mips64vr4100el \
2701f0ac6a5Smrg	| mips64vr4300 | mips64vr4300el \
2711f0ac6a5Smrg	| mips64vr5000 | mips64vr5000el \
272e5410a46Smrg	| mips64vr5900 | mips64vr5900el \
2731f0ac6a5Smrg	| mipsisa32 | mipsisa32el \
2741f0ac6a5Smrg	| mipsisa32r2 | mipsisa32r2el \
2751f0ac6a5Smrg	| mipsisa64 | mipsisa64el \
276e5410a46Smrg	| mipsisa64r2 | mipsisa64r2el \
2771f0ac6a5Smrg	| mipsisa64sb1 | mipsisa64sb1el \
2781f0ac6a5Smrg	| mipsisa64sr71k | mipsisa64sr71kel \
2791f0ac6a5Smrg	| mipstx39 | mipstx39el \
2801f0ac6a5Smrg	| mn10200 | mn10300 \
2819c9ff80cSmrg	| moxie \
282e5410a46Smrg	| mt \
2831f0ac6a5Smrg	| msp430 \
284e5410a46Smrg	| nios | nios2 \
2851f0ac6a5Smrg	| ns16k | ns32k \
286e5410a46Smrg	| or32 \
2871f0ac6a5Smrg	| pdp10 | pdp11 | pj | pjl \
2881f0ac6a5Smrg	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
2891f0ac6a5Smrg	| pyramid \
2909c9ff80cSmrg	| rx \
291e5410a46Smrg	| score \
2929c9ff80cSmrg	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
2931f0ac6a5Smrg	| sh64 | sh64le \
294e5410a46Smrg	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295e5410a46Smrg	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296e5410a46Smrg	| spu | strongarm \
2971f0ac6a5Smrg	| tahoe | thumb | tic4x | tic80 | tron \
2989c9ff80cSmrg	| ubicom32 \
2991f0ac6a5Smrg	| v850 | v850e \
3001f0ac6a5Smrg	| we32k \
301e5410a46Smrg	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
3029c9ff80cSmrg	| z8k | z80)
3031f0ac6a5Smrg		basic_machine=$basic_machine-unknown
3041f0ac6a5Smrg		;;
3059c9ff80cSmrg	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
3061f0ac6a5Smrg		# Motorola 68HC11/12.
3071f0ac6a5Smrg		basic_machine=$basic_machine-unknown
3081f0ac6a5Smrg		os=-none
3091f0ac6a5Smrg		;;
3101f0ac6a5Smrg	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
3111f0ac6a5Smrg		;;
312e5410a46Smrg	ms1)
313e5410a46Smrg		basic_machine=mt-unknown
314e5410a46Smrg		;;
3151f0ac6a5Smrg
3161f0ac6a5Smrg	# We use `pc' rather than `unknown'
3171f0ac6a5Smrg	# because (1) that's what they normally are, and
3181f0ac6a5Smrg	# (2) the word "unknown" tends to confuse beginning users.
3191f0ac6a5Smrg	i*86 | x86_64)
3201f0ac6a5Smrg	  basic_machine=$basic_machine-pc
3211f0ac6a5Smrg	  ;;
3221f0ac6a5Smrg	# Object if more than one company name word.
3231f0ac6a5Smrg	*-*-*)
3241f0ac6a5Smrg		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
3251f0ac6a5Smrg		exit 1
3261f0ac6a5Smrg		;;
3271f0ac6a5Smrg	# Recognize the basic CPU types with company name.
3281f0ac6a5Smrg	580-* \
3291f0ac6a5Smrg	| a29k-* \
3301f0ac6a5Smrg	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
3311f0ac6a5Smrg	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
332e5410a46Smrg	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3331f0ac6a5Smrg	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
334e5410a46Smrg	| avr-* | avr32-* \
335e5410a46Smrg	| bfin-* | bs2000-* \
3361f0ac6a5Smrg	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
337e5410a46Smrg	| clipper-* | craynv-* | cydra-* \
3381f0ac6a5Smrg	| d10v-* | d30v-* | dlx-* \
3391f0ac6a5Smrg	| elxsi-* \
340e5410a46Smrg	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
3411f0ac6a5Smrg	| h8300-* | h8500-* \
3421f0ac6a5Smrg	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
3431f0ac6a5Smrg	| i*86-* | i860-* | i960-* | ia64-* \
344e5410a46Smrg	| ip2k-* | iq2000-* \
3459c9ff80cSmrg	| lm32-* \
346e5410a46Smrg	| m32c-* | m32r-* | m32rle-* \
3471f0ac6a5Smrg	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
3489c9ff80cSmrg	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
3491f0ac6a5Smrg	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3501f0ac6a5Smrg	| mips16-* \
3511f0ac6a5Smrg	| mips64-* | mips64el-* \
3529c9ff80cSmrg	| mips64octeon-* | mips64octeonel-* \
3531f0ac6a5Smrg	| mips64orion-* | mips64orionel-* \
3549c9ff80cSmrg	| mips64r5900-* | mips64r5900el-* \
3559c9ff80cSmrg	| mips64vr-* | mips64vrel-* \
3561f0ac6a5Smrg	| mips64vr4100-* | mips64vr4100el-* \
3571f0ac6a5Smrg	| mips64vr4300-* | mips64vr4300el-* \
3581f0ac6a5Smrg	| mips64vr5000-* | mips64vr5000el-* \
359e5410a46Smrg	| mips64vr5900-* | mips64vr5900el-* \
3601f0ac6a5Smrg	| mipsisa32-* | mipsisa32el-* \
3611f0ac6a5Smrg	| mipsisa32r2-* | mipsisa32r2el-* \
3621f0ac6a5Smrg	| mipsisa64-* | mipsisa64el-* \
363e5410a46Smrg	| mipsisa64r2-* | mipsisa64r2el-* \
3641f0ac6a5Smrg	| mipsisa64sb1-* | mipsisa64sb1el-* \
3651f0ac6a5Smrg	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
3661f0ac6a5Smrg	| mipstx39-* | mipstx39el-* \
367e5410a46Smrg	| mmix-* \
368e5410a46Smrg	| mt-* \
3691f0ac6a5Smrg	| msp430-* \
370e5410a46Smrg	| nios-* | nios2-* \
371e5410a46Smrg	| none-* | np1-* | ns16k-* | ns32k-* \
3721f0ac6a5Smrg	| orion-* \
3731f0ac6a5Smrg	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3741f0ac6a5Smrg	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3751f0ac6a5Smrg	| pyramid-* \
3769c9ff80cSmrg	| romp-* | rs6000-* | rx-* \
3779c9ff80cSmrg	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
3781f0ac6a5Smrg	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379e5410a46Smrg	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380e5410a46Smrg	| sparclite-* \
381e5410a46Smrg	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
3821f0ac6a5Smrg	| tahoe-* | thumb-* \
3839c9ff80cSmrg	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
3841f0ac6a5Smrg	| tron-* \
3859c9ff80cSmrg	| ubicom32-* \
3861f0ac6a5Smrg	| v850-* | v850e-* | vax-* \
3871f0ac6a5Smrg	| we32k-* \
388e5410a46Smrg	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
389e5410a46Smrg	| xstormy16-* | xtensa*-* \
3901f0ac6a5Smrg	| ymp-* \
3919c9ff80cSmrg	| z8k-* | z80-*)
3921f0ac6a5Smrg		;;
393e5410a46Smrg	# Recognize the basic CPU types without company name, with glob match.
394e5410a46Smrg	xtensa*)
395e5410a46Smrg		basic_machine=$basic_machine-unknown
396e5410a46Smrg		;;
3971f0ac6a5Smrg	# Recognize the various machine names and aliases which stand
3981f0ac6a5Smrg	# for a CPU type and a company and sometimes even an OS.
3991f0ac6a5Smrg	386bsd)
4001f0ac6a5Smrg		basic_machine=i386-unknown
4011f0ac6a5Smrg		os=-bsd
4021f0ac6a5Smrg		;;
4031f0ac6a5Smrg	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
4041f0ac6a5Smrg		basic_machine=m68000-att
4051f0ac6a5Smrg		;;
4061f0ac6a5Smrg	3b*)
4071f0ac6a5Smrg		basic_machine=we32k-att
4081f0ac6a5Smrg		;;
4091f0ac6a5Smrg	a29khif)
4101f0ac6a5Smrg		basic_machine=a29k-amd
4111f0ac6a5Smrg		os=-udi
4121f0ac6a5Smrg		;;
413e5410a46Smrg    	abacus)
414e5410a46Smrg		basic_machine=abacus-unknown
415e5410a46Smrg		;;
4161f0ac6a5Smrg	adobe68k)
4171f0ac6a5Smrg		basic_machine=m68010-adobe
4181f0ac6a5Smrg		os=-scout
4191f0ac6a5Smrg		;;
4201f0ac6a5Smrg	alliant | fx80)
4211f0ac6a5Smrg		basic_machine=fx80-alliant
4221f0ac6a5Smrg		;;
4231f0ac6a5Smrg	altos | altos3068)
4241f0ac6a5Smrg		basic_machine=m68k-altos
4251f0ac6a5Smrg		;;
4261f0ac6a5Smrg	am29k)
4271f0ac6a5Smrg		basic_machine=a29k-none
4281f0ac6a5Smrg		os=-bsd
4291f0ac6a5Smrg		;;
4301f0ac6a5Smrg	amd64)
4311f0ac6a5Smrg		basic_machine=x86_64-pc
4321f0ac6a5Smrg		;;
433e5410a46Smrg	amd64-*)
434e5410a46Smrg		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
435e5410a46Smrg		;;
4361f0ac6a5Smrg	amdahl)
4371f0ac6a5Smrg		basic_machine=580-amdahl
4381f0ac6a5Smrg		os=-sysv
4391f0ac6a5Smrg		;;
4401f0ac6a5Smrg	amiga | amiga-*)
4411f0ac6a5Smrg		basic_machine=m68k-unknown
4421f0ac6a5Smrg		;;
4431f0ac6a5Smrg	amigaos | amigados)
4441f0ac6a5Smrg		basic_machine=m68k-unknown
4451f0ac6a5Smrg		os=-amigaos
4461f0ac6a5Smrg		;;
4471f0ac6a5Smrg	amigaunix | amix)
4481f0ac6a5Smrg		basic_machine=m68k-unknown
4491f0ac6a5Smrg		os=-sysv4
4501f0ac6a5Smrg		;;
4511f0ac6a5Smrg	apollo68)
4521f0ac6a5Smrg		basic_machine=m68k-apollo
4531f0ac6a5Smrg		os=-sysv
4541f0ac6a5Smrg		;;
4551f0ac6a5Smrg	apollo68bsd)
4561f0ac6a5Smrg		basic_machine=m68k-apollo
4571f0ac6a5Smrg		os=-bsd
4581f0ac6a5Smrg		;;
4599c9ff80cSmrg	aros)
4609c9ff80cSmrg		basic_machine=i386-pc
4619c9ff80cSmrg		os=-aros
4629c9ff80cSmrg		;;
4631f0ac6a5Smrg	aux)
4641f0ac6a5Smrg		basic_machine=m68k-apple
4651f0ac6a5Smrg		os=-aux
4661f0ac6a5Smrg		;;
4671f0ac6a5Smrg	balance)
4681f0ac6a5Smrg		basic_machine=ns32k-sequent
4691f0ac6a5Smrg		os=-dynix
4701f0ac6a5Smrg		;;
471e5410a46Smrg	blackfin)
472e5410a46Smrg		basic_machine=bfin-unknown
473e5410a46Smrg		os=-linux
474e5410a46Smrg		;;
475e5410a46Smrg	blackfin-*)
476e5410a46Smrg		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
477e5410a46Smrg		os=-linux
478e5410a46Smrg		;;
4799c9ff80cSmrg	bluegene*)
4809c9ff80cSmrg		basic_machine=powerpc-ibm
4819c9ff80cSmrg		os=-cnk
4829c9ff80cSmrg		;;
4831f0ac6a5Smrg	c90)
4841f0ac6a5Smrg		basic_machine=c90-cray
4851f0ac6a5Smrg		os=-unicos
4861f0ac6a5Smrg		;;
4879c9ff80cSmrg        cegcc)
4889c9ff80cSmrg		basic_machine=arm-unknown
4899c9ff80cSmrg		os=-cegcc
4909c9ff80cSmrg		;;
4911f0ac6a5Smrg	convex-c1)
4921f0ac6a5Smrg		basic_machine=c1-convex
4931f0ac6a5Smrg		os=-bsd
4941f0ac6a5Smrg		;;
4951f0ac6a5Smrg	convex-c2)
4961f0ac6a5Smrg		basic_machine=c2-convex
4971f0ac6a5Smrg		os=-bsd
4981f0ac6a5Smrg		;;
4991f0ac6a5Smrg	convex-c32)
5001f0ac6a5Smrg		basic_machine=c32-convex
5011f0ac6a5Smrg		os=-bsd
5021f0ac6a5Smrg		;;
5031f0ac6a5Smrg	convex-c34)
5041f0ac6a5Smrg		basic_machine=c34-convex
5051f0ac6a5Smrg		os=-bsd
5061f0ac6a5Smrg		;;
5071f0ac6a5Smrg	convex-c38)
5081f0ac6a5Smrg		basic_machine=c38-convex
5091f0ac6a5Smrg		os=-bsd
5101f0ac6a5Smrg		;;
5111f0ac6a5Smrg	cray | j90)
5121f0ac6a5Smrg		basic_machine=j90-cray
5131f0ac6a5Smrg		os=-unicos
5141f0ac6a5Smrg		;;
515e5410a46Smrg	craynv)
516e5410a46Smrg		basic_machine=craynv-cray
517e5410a46Smrg		os=-unicosmp
518e5410a46Smrg		;;
519e5410a46Smrg	cr16)
520e5410a46Smrg		basic_machine=cr16-unknown
521e5410a46Smrg		os=-elf
522e5410a46Smrg		;;
5231f0ac6a5Smrg	crds | unos)
5241f0ac6a5Smrg		basic_machine=m68k-crds
5251f0ac6a5Smrg		;;
526e5410a46Smrg	crisv32 | crisv32-* | etraxfs*)
527e5410a46Smrg		basic_machine=crisv32-axis
528e5410a46Smrg		;;
5291f0ac6a5Smrg	cris | cris-* | etrax*)
5301f0ac6a5Smrg		basic_machine=cris-axis
5311f0ac6a5Smrg		;;
532e5410a46Smrg	crx)
533e5410a46Smrg		basic_machine=crx-unknown
534e5410a46Smrg		os=-elf
535e5410a46Smrg		;;
5361f0ac6a5Smrg	da30 | da30-*)
5371f0ac6a5Smrg		basic_machine=m68k-da30
5381f0ac6a5Smrg		;;
5391f0ac6a5Smrg	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
5401f0ac6a5Smrg		basic_machine=mips-dec
5411f0ac6a5Smrg		;;
5421f0ac6a5Smrg	decsystem10* | dec10*)
5431f0ac6a5Smrg		basic_machine=pdp10-dec
5441f0ac6a5Smrg		os=-tops10
5451f0ac6a5Smrg		;;
5461f0ac6a5Smrg	decsystem20* | dec20*)
5471f0ac6a5Smrg		basic_machine=pdp10-dec
5481f0ac6a5Smrg		os=-tops20
5491f0ac6a5Smrg		;;
5501f0ac6a5Smrg	delta | 3300 | motorola-3300 | motorola-delta \
5511f0ac6a5Smrg	      | 3300-motorola | delta-motorola)
5521f0ac6a5Smrg		basic_machine=m68k-motorola
5531f0ac6a5Smrg		;;
5541f0ac6a5Smrg	delta88)
5551f0ac6a5Smrg		basic_machine=m88k-motorola
5561f0ac6a5Smrg		os=-sysv3
5571f0ac6a5Smrg		;;
5589c9ff80cSmrg	dicos)
5599c9ff80cSmrg		basic_machine=i686-pc
5609c9ff80cSmrg		os=-dicos
5619c9ff80cSmrg		;;
562e5410a46Smrg	djgpp)
563e5410a46Smrg		basic_machine=i586-pc
564e5410a46Smrg		os=-msdosdjgpp
565e5410a46Smrg		;;
5661f0ac6a5Smrg	dpx20 | dpx20-*)
5671f0ac6a5Smrg		basic_machine=rs6000-bull
5681f0ac6a5Smrg		os=-bosx
5691f0ac6a5Smrg		;;
5701f0ac6a5Smrg	dpx2* | dpx2*-bull)
5711f0ac6a5Smrg		basic_machine=m68k-bull
5721f0ac6a5Smrg		os=-sysv3
5731f0ac6a5Smrg		;;
5741f0ac6a5Smrg	ebmon29k)
5751f0ac6a5Smrg		basic_machine=a29k-amd
5761f0ac6a5Smrg		os=-ebmon
5771f0ac6a5Smrg		;;
5781f0ac6a5Smrg	elxsi)
5791f0ac6a5Smrg		basic_machine=elxsi-elxsi
5801f0ac6a5Smrg		os=-bsd
5811f0ac6a5Smrg		;;
5821f0ac6a5Smrg	encore | umax | mmax)
5831f0ac6a5Smrg		basic_machine=ns32k-encore
5841f0ac6a5Smrg		;;
5851f0ac6a5Smrg	es1800 | OSE68k | ose68k | ose | OSE)
5861f0ac6a5Smrg		basic_machine=m68k-ericsson
5871f0ac6a5Smrg		os=-ose
5881f0ac6a5Smrg		;;
5891f0ac6a5Smrg	fx2800)
5901f0ac6a5Smrg		basic_machine=i860-alliant
5911f0ac6a5Smrg		;;
5921f0ac6a5Smrg	genix)
5931f0ac6a5Smrg		basic_machine=ns32k-ns
5941f0ac6a5Smrg		;;
5951f0ac6a5Smrg	gmicro)
5961f0ac6a5Smrg		basic_machine=tron-gmicro
5971f0ac6a5Smrg		os=-sysv
5981f0ac6a5Smrg		;;
5991f0ac6a5Smrg	go32)
6001f0ac6a5Smrg		basic_machine=i386-pc
6011f0ac6a5Smrg		os=-go32
6021f0ac6a5Smrg		;;
6031f0ac6a5Smrg	h3050r* | hiux*)
6041f0ac6a5Smrg		basic_machine=hppa1.1-hitachi
6051f0ac6a5Smrg		os=-hiuxwe2
6061f0ac6a5Smrg		;;
6071f0ac6a5Smrg	h8300hms)
6081f0ac6a5Smrg		basic_machine=h8300-hitachi
6091f0ac6a5Smrg		os=-hms
6101f0ac6a5Smrg		;;
6111f0ac6a5Smrg	h8300xray)
6121f0ac6a5Smrg		basic_machine=h8300-hitachi
6131f0ac6a5Smrg		os=-xray
6141f0ac6a5Smrg		;;
6151f0ac6a5Smrg	h8500hms)
6161f0ac6a5Smrg		basic_machine=h8500-hitachi
6171f0ac6a5Smrg		os=-hms
6181f0ac6a5Smrg		;;
6191f0ac6a5Smrg	harris)
6201f0ac6a5Smrg		basic_machine=m88k-harris
6211f0ac6a5Smrg		os=-sysv3
6221f0ac6a5Smrg		;;
6231f0ac6a5Smrg	hp300-*)
6241f0ac6a5Smrg		basic_machine=m68k-hp
6251f0ac6a5Smrg		;;
6261f0ac6a5Smrg	hp300bsd)
6271f0ac6a5Smrg		basic_machine=m68k-hp
6281f0ac6a5Smrg		os=-bsd
6291f0ac6a5Smrg		;;
6301f0ac6a5Smrg	hp300hpux)
6311f0ac6a5Smrg		basic_machine=m68k-hp
6321f0ac6a5Smrg		os=-hpux
6331f0ac6a5Smrg		;;
6341f0ac6a5Smrg	hp3k9[0-9][0-9] | hp9[0-9][0-9])
6351f0ac6a5Smrg		basic_machine=hppa1.0-hp
6361f0ac6a5Smrg		;;
6371f0ac6a5Smrg	hp9k2[0-9][0-9] | hp9k31[0-9])
6381f0ac6a5Smrg		basic_machine=m68000-hp
6391f0ac6a5Smrg		;;
6401f0ac6a5Smrg	hp9k3[2-9][0-9])
6411f0ac6a5Smrg		basic_machine=m68k-hp
6421f0ac6a5Smrg		;;
6431f0ac6a5Smrg	hp9k6[0-9][0-9] | hp6[0-9][0-9])
6441f0ac6a5Smrg		basic_machine=hppa1.0-hp
6451f0ac6a5Smrg		;;
6461f0ac6a5Smrg	hp9k7[0-79][0-9] | hp7[0-79][0-9])
6471f0ac6a5Smrg		basic_machine=hppa1.1-hp
6481f0ac6a5Smrg		;;
6491f0ac6a5Smrg	hp9k78[0-9] | hp78[0-9])
6501f0ac6a5Smrg		# FIXME: really hppa2.0-hp
6511f0ac6a5Smrg		basic_machine=hppa1.1-hp
6521f0ac6a5Smrg		;;
6531f0ac6a5Smrg	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
6541f0ac6a5Smrg		# FIXME: really hppa2.0-hp
6551f0ac6a5Smrg		basic_machine=hppa1.1-hp
6561f0ac6a5Smrg		;;
6571f0ac6a5Smrg	hp9k8[0-9][13679] | hp8[0-9][13679])
6581f0ac6a5Smrg		basic_machine=hppa1.1-hp
6591f0ac6a5Smrg		;;
6601f0ac6a5Smrg	hp9k8[0-9][0-9] | hp8[0-9][0-9])
6611f0ac6a5Smrg		basic_machine=hppa1.0-hp
6621f0ac6a5Smrg		;;
6631f0ac6a5Smrg	hppa-next)
6641f0ac6a5Smrg		os=-nextstep3
6651f0ac6a5Smrg		;;
6661f0ac6a5Smrg	hppaosf)
6671f0ac6a5Smrg		basic_machine=hppa1.1-hp
6681f0ac6a5Smrg		os=-osf
6691f0ac6a5Smrg		;;
6701f0ac6a5Smrg	hppro)
6711f0ac6a5Smrg		basic_machine=hppa1.1-hp
6721f0ac6a5Smrg		os=-proelf
6731f0ac6a5Smrg		;;
6741f0ac6a5Smrg	i370-ibm* | ibm*)
6751f0ac6a5Smrg		basic_machine=i370-ibm
6761f0ac6a5Smrg		;;
6771f0ac6a5Smrg# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
6781f0ac6a5Smrg	i*86v32)
6791f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6801f0ac6a5Smrg		os=-sysv32
6811f0ac6a5Smrg		;;
6821f0ac6a5Smrg	i*86v4*)
6831f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6841f0ac6a5Smrg		os=-sysv4
6851f0ac6a5Smrg		;;
6861f0ac6a5Smrg	i*86v)
6871f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6881f0ac6a5Smrg		os=-sysv
6891f0ac6a5Smrg		;;
6901f0ac6a5Smrg	i*86sol2)
6911f0ac6a5Smrg		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6921f0ac6a5Smrg		os=-solaris2
6931f0ac6a5Smrg		;;
6941f0ac6a5Smrg	i386mach)
6951f0ac6a5Smrg		basic_machine=i386-mach
6961f0ac6a5Smrg		os=-mach
6971f0ac6a5Smrg		;;
6981f0ac6a5Smrg	i386-vsta | vsta)
6991f0ac6a5Smrg		basic_machine=i386-unknown
7001f0ac6a5Smrg		os=-vsta
7011f0ac6a5Smrg		;;
7021f0ac6a5Smrg	iris | iris4d)
7031f0ac6a5Smrg		basic_machine=mips-sgi
7041f0ac6a5Smrg		case $os in
7051f0ac6a5Smrg		    -irix*)
7061f0ac6a5Smrg			;;
7071f0ac6a5Smrg		    *)
7081f0ac6a5Smrg			os=-irix4
7091f0ac6a5Smrg			;;
7101f0ac6a5Smrg		esac
7111f0ac6a5Smrg		;;
7121f0ac6a5Smrg	isi68 | isi)
7131f0ac6a5Smrg		basic_machine=m68k-isi
7141f0ac6a5Smrg		os=-sysv
7151f0ac6a5Smrg		;;
716e5410a46Smrg	m68knommu)
717e5410a46Smrg		basic_machine=m68k-unknown
718e5410a46Smrg		os=-linux
719e5410a46Smrg		;;
720e5410a46Smrg	m68knommu-*)
721e5410a46Smrg		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
722e5410a46Smrg		os=-linux
723e5410a46Smrg		;;
7241f0ac6a5Smrg	m88k-omron*)
7251f0ac6a5Smrg		basic_machine=m88k-omron
7261f0ac6a5Smrg		;;
7271f0ac6a5Smrg	magnum | m3230)
7281f0ac6a5Smrg		basic_machine=mips-mips
7291f0ac6a5Smrg		os=-sysv
7301f0ac6a5Smrg		;;
7311f0ac6a5Smrg	merlin)
7321f0ac6a5Smrg		basic_machine=ns32k-utek
7331f0ac6a5Smrg		os=-sysv
7341f0ac6a5Smrg		;;
7359c9ff80cSmrg        microblaze)
7369c9ff80cSmrg		basic_machine=microblaze-xilinx
7379c9ff80cSmrg		;;
7381f0ac6a5Smrg	mingw32)
7391f0ac6a5Smrg		basic_machine=i386-pc
7401f0ac6a5Smrg		os=-mingw32
7411f0ac6a5Smrg		;;
742e5410a46Smrg	mingw32ce)
743e5410a46Smrg		basic_machine=arm-unknown
744e5410a46Smrg		os=-mingw32ce
745e5410a46Smrg		;;
7461f0ac6a5Smrg	miniframe)
7471f0ac6a5Smrg		basic_machine=m68000-convergent
7481f0ac6a5Smrg		;;
7491f0ac6a5Smrg	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
7501f0ac6a5Smrg		basic_machine=m68k-atari
7511f0ac6a5Smrg		os=-mint
7521f0ac6a5Smrg		;;
7531f0ac6a5Smrg	mips3*-*)
7541f0ac6a5Smrg		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
7551f0ac6a5Smrg		;;
7561f0ac6a5Smrg	mips3*)
7571f0ac6a5Smrg		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
7581f0ac6a5Smrg		;;
7591f0ac6a5Smrg	monitor)
7601f0ac6a5Smrg		basic_machine=m68k-rom68k
7611f0ac6a5Smrg		os=-coff
7621f0ac6a5Smrg		;;
7631f0ac6a5Smrg	morphos)
7641f0ac6a5Smrg		basic_machine=powerpc-unknown
7651f0ac6a5Smrg		os=-morphos
7661f0ac6a5Smrg		;;
7671f0ac6a5Smrg	msdos)
7681f0ac6a5Smrg		basic_machine=i386-pc
7691f0ac6a5Smrg		os=-msdos
7701f0ac6a5Smrg		;;
771e5410a46Smrg	ms1-*)
772e5410a46Smrg		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
773e5410a46Smrg		;;
7741f0ac6a5Smrg	mvs)
7751f0ac6a5Smrg		basic_machine=i370-ibm
7761f0ac6a5Smrg		os=-mvs
7771f0ac6a5Smrg		;;
7781f0ac6a5Smrg	ncr3000)
7791f0ac6a5Smrg		basic_machine=i486-ncr
7801f0ac6a5Smrg		os=-sysv4
7811f0ac6a5Smrg		;;
7821f0ac6a5Smrg	netbsd386)
7831f0ac6a5Smrg		basic_machine=i386-unknown
7841f0ac6a5Smrg		os=-netbsd
7851f0ac6a5Smrg		;;
7861f0ac6a5Smrg	netwinder)
7871f0ac6a5Smrg		basic_machine=armv4l-rebel
7881f0ac6a5Smrg		os=-linux
7891f0ac6a5Smrg		;;
7901f0ac6a5Smrg	news | news700 | news800 | news900)
7911f0ac6a5Smrg		basic_machine=m68k-sony
7921f0ac6a5Smrg		os=-newsos
7931f0ac6a5Smrg		;;
7941f0ac6a5Smrg	news1000)
7951f0ac6a5Smrg		basic_machine=m68030-sony
7961f0ac6a5Smrg		os=-newsos
7971f0ac6a5Smrg		;;
7981f0ac6a5Smrg	news-3600 | risc-news)
7991f0ac6a5Smrg		basic_machine=mips-sony
8001f0ac6a5Smrg		os=-newsos
8011f0ac6a5Smrg		;;
8021f0ac6a5Smrg	necv70)
8031f0ac6a5Smrg		basic_machine=v70-nec
8041f0ac6a5Smrg		os=-sysv
8051f0ac6a5Smrg		;;
8061f0ac6a5Smrg	next | m*-next )
8071f0ac6a5Smrg		basic_machine=m68k-next
8081f0ac6a5Smrg		case $os in
8091f0ac6a5Smrg		    -nextstep* )
8101f0ac6a5Smrg			;;
8111f0ac6a5Smrg		    -ns2*)
8121f0ac6a5Smrg		      os=-nextstep2
8131f0ac6a5Smrg			;;
8141f0ac6a5Smrg		    *)
8151f0ac6a5Smrg		      os=-nextstep3
8161f0ac6a5Smrg			;;
8171f0ac6a5Smrg		esac
8181f0ac6a5Smrg		;;
8191f0ac6a5Smrg	nh3000)
8201f0ac6a5Smrg		basic_machine=m68k-harris
8211f0ac6a5Smrg		os=-cxux
8221f0ac6a5Smrg		;;
8231f0ac6a5Smrg	nh[45]000)
8241f0ac6a5Smrg		basic_machine=m88k-harris
8251f0ac6a5Smrg		os=-cxux
8261f0ac6a5Smrg		;;
8271f0ac6a5Smrg	nindy960)
8281f0ac6a5Smrg		basic_machine=i960-intel
8291f0ac6a5Smrg		os=-nindy
8301f0ac6a5Smrg		;;
8311f0ac6a5Smrg	mon960)
8321f0ac6a5Smrg		basic_machine=i960-intel
8331f0ac6a5Smrg		os=-mon960
8341f0ac6a5Smrg		;;
8351f0ac6a5Smrg	nonstopux)
8361f0ac6a5Smrg		basic_machine=mips-compaq
8371f0ac6a5Smrg		os=-nonstopux
8381f0ac6a5Smrg		;;
8391f0ac6a5Smrg	np1)
8401f0ac6a5Smrg		basic_machine=np1-gould
8411f0ac6a5Smrg		;;
8421f0ac6a5Smrg	nsr-tandem)
8431f0ac6a5Smrg		basic_machine=nsr-tandem
8441f0ac6a5Smrg		;;
8451f0ac6a5Smrg	op50n-* | op60c-*)
8461f0ac6a5Smrg		basic_machine=hppa1.1-oki
8471f0ac6a5Smrg		os=-proelf
8481f0ac6a5Smrg		;;
849e5410a46Smrg	openrisc | openrisc-*)
8501f0ac6a5Smrg		basic_machine=or32-unknown
851e5410a46Smrg		;;
852e5410a46Smrg	os400)
853e5410a46Smrg		basic_machine=powerpc-ibm
854e5410a46Smrg		os=-os400
8551f0ac6a5Smrg		;;
8561f0ac6a5Smrg	OSE68000 | ose68000)
8571f0ac6a5Smrg		basic_machine=m68000-ericsson
8581f0ac6a5Smrg		os=-ose
8591f0ac6a5Smrg		;;
8601f0ac6a5Smrg	os68k)
8611f0ac6a5Smrg		basic_machine=m68k-none
8621f0ac6a5Smrg		os=-os68k
8631f0ac6a5Smrg		;;
8641f0ac6a5Smrg	pa-hitachi)
8651f0ac6a5Smrg		basic_machine=hppa1.1-hitachi
8661f0ac6a5Smrg		os=-hiuxwe2
8671f0ac6a5Smrg		;;
8681f0ac6a5Smrg	paragon)
8691f0ac6a5Smrg		basic_machine=i860-intel
8701f0ac6a5Smrg		os=-osf
8711f0ac6a5Smrg		;;
872e5410a46Smrg	parisc)
873e5410a46Smrg		basic_machine=hppa-unknown
874e5410a46Smrg		os=-linux
875e5410a46Smrg		;;
876e5410a46Smrg	parisc-*)
877e5410a46Smrg		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
878e5410a46Smrg		os=-linux
879e5410a46Smrg		;;
8801f0ac6a5Smrg	pbd)
8811f0ac6a5Smrg		basic_machine=sparc-tti
8821f0ac6a5Smrg		;;
8831f0ac6a5Smrg	pbb)
8841f0ac6a5Smrg		basic_machine=m68k-tti
8851f0ac6a5Smrg		;;
8861f0ac6a5Smrg	pc532 | pc532-*)
8871f0ac6a5Smrg		basic_machine=ns32k-pc532
8881f0ac6a5Smrg		;;
889e5410a46Smrg	pc98)
890e5410a46Smrg		basic_machine=i386-pc
891e5410a46Smrg		;;
892e5410a46Smrg	pc98-*)
893e5410a46Smrg		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
894e5410a46Smrg		;;
8951f0ac6a5Smrg	pentium | p5 | k5 | k6 | nexgen | viac3)
8961f0ac6a5Smrg		basic_machine=i586-pc
8971f0ac6a5Smrg		;;
8981f0ac6a5Smrg	pentiumpro | p6 | 6x86 | athlon | athlon_*)
8991f0ac6a5Smrg		basic_machine=i686-pc
9001f0ac6a5Smrg		;;
9011f0ac6a5Smrg	pentiumii | pentium2 | pentiumiii | pentium3)
9021f0ac6a5Smrg		basic_machine=i686-pc
9031f0ac6a5Smrg		;;
9041f0ac6a5Smrg	pentium4)
9051f0ac6a5Smrg		basic_machine=i786-pc
9061f0ac6a5Smrg		;;
9071f0ac6a5Smrg	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
9081f0ac6a5Smrg		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
9091f0ac6a5Smrg		;;
9101f0ac6a5Smrg	pentiumpro-* | p6-* | 6x86-* | athlon-*)
9111f0ac6a5Smrg		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9121f0ac6a5Smrg		;;
9131f0ac6a5Smrg	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
9141f0ac6a5Smrg		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9151f0ac6a5Smrg		;;
9161f0ac6a5Smrg	pentium4-*)
9171f0ac6a5Smrg		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
9181f0ac6a5Smrg		;;
9191f0ac6a5Smrg	pn)
9201f0ac6a5Smrg		basic_machine=pn-gould
9211f0ac6a5Smrg		;;
9221f0ac6a5Smrg	power)	basic_machine=power-ibm
9231f0ac6a5Smrg		;;
9241f0ac6a5Smrg	ppc)	basic_machine=powerpc-unknown
9251f0ac6a5Smrg		;;
9261f0ac6a5Smrg	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
9271f0ac6a5Smrg		;;
9281f0ac6a5Smrg	ppcle | powerpclittle | ppc-le | powerpc-little)
9291f0ac6a5Smrg		basic_machine=powerpcle-unknown
9301f0ac6a5Smrg		;;
9311f0ac6a5Smrg	ppcle-* | powerpclittle-*)
9321f0ac6a5Smrg		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
9331f0ac6a5Smrg		;;
9341f0ac6a5Smrg	ppc64)	basic_machine=powerpc64-unknown
9351f0ac6a5Smrg		;;
9361f0ac6a5Smrg	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
9371f0ac6a5Smrg		;;
9381f0ac6a5Smrg	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
9391f0ac6a5Smrg		basic_machine=powerpc64le-unknown
9401f0ac6a5Smrg		;;
9411f0ac6a5Smrg	ppc64le-* | powerpc64little-*)
9421f0ac6a5Smrg		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
9431f0ac6a5Smrg		;;
9441f0ac6a5Smrg	ps2)
9451f0ac6a5Smrg		basic_machine=i386-ibm
9461f0ac6a5Smrg		;;
9471f0ac6a5Smrg	pw32)
9481f0ac6a5Smrg		basic_machine=i586-unknown
9491f0ac6a5Smrg		os=-pw32
9501f0ac6a5Smrg		;;
951e5410a46Smrg	rdos)
952e5410a46Smrg		basic_machine=i386-pc
953e5410a46Smrg		os=-rdos
954e5410a46Smrg		;;
9551f0ac6a5Smrg	rom68k)
9561f0ac6a5Smrg		basic_machine=m68k-rom68k
9571f0ac6a5Smrg		os=-coff
9581f0ac6a5Smrg		;;
9591f0ac6a5Smrg	rm[46]00)
9601f0ac6a5Smrg		basic_machine=mips-siemens
9611f0ac6a5Smrg		;;
9621f0ac6a5Smrg	rtpc | rtpc-*)
9631f0ac6a5Smrg		basic_machine=romp-ibm
9641f0ac6a5Smrg		;;
9651f0ac6a5Smrg	s390 | s390-*)
9661f0ac6a5Smrg		basic_machine=s390-ibm
9671f0ac6a5Smrg		;;
9681f0ac6a5Smrg	s390x | s390x-*)
9691f0ac6a5Smrg		basic_machine=s390x-ibm
9701f0ac6a5Smrg		;;
9711f0ac6a5Smrg	sa29200)
9721f0ac6a5Smrg		basic_machine=a29k-amd
9731f0ac6a5Smrg		os=-udi
9741f0ac6a5Smrg		;;
9751f0ac6a5Smrg	sb1)
9761f0ac6a5Smrg		basic_machine=mipsisa64sb1-unknown
9771f0ac6a5Smrg		;;
9781f0ac6a5Smrg	sb1el)
9791f0ac6a5Smrg		basic_machine=mipsisa64sb1el-unknown
9801f0ac6a5Smrg		;;
981e5410a46Smrg	sde)
982e5410a46Smrg		basic_machine=mipsisa32-sde
983e5410a46Smrg		os=-elf
984e5410a46Smrg		;;
9851f0ac6a5Smrg	sei)
9861f0ac6a5Smrg		basic_machine=mips-sei
9871f0ac6a5Smrg		os=-seiux
9881f0ac6a5Smrg		;;
9891f0ac6a5Smrg	sequent)
9901f0ac6a5Smrg		basic_machine=i386-sequent
9911f0ac6a5Smrg		;;
9921f0ac6a5Smrg	sh)
9931f0ac6a5Smrg		basic_machine=sh-hitachi
9941f0ac6a5Smrg		os=-hms
9951f0ac6a5Smrg		;;
996e5410a46Smrg	sh5el)
997e5410a46Smrg		basic_machine=sh5le-unknown
998e5410a46Smrg		;;
9991f0ac6a5Smrg	sh64)
10001f0ac6a5Smrg		basic_machine=sh64-unknown
10011f0ac6a5Smrg		;;
10021f0ac6a5Smrg	sparclite-wrs | simso-wrs)
10031f0ac6a5Smrg		basic_machine=sparclite-wrs
10041f0ac6a5Smrg		os=-vxworks
10051f0ac6a5Smrg		;;
10061f0ac6a5Smrg	sps7)
10071f0ac6a5Smrg		basic_machine=m68k-bull
10081f0ac6a5Smrg		os=-sysv2
10091f0ac6a5Smrg		;;
10101f0ac6a5Smrg	spur)
10111f0ac6a5Smrg		basic_machine=spur-unknown
10121f0ac6a5Smrg		;;
10131f0ac6a5Smrg	st2000)
10141f0ac6a5Smrg		basic_machine=m68k-tandem
10151f0ac6a5Smrg		;;
10161f0ac6a5Smrg	stratus)
10171f0ac6a5Smrg		basic_machine=i860-stratus
10181f0ac6a5Smrg		os=-sysv4
10191f0ac6a5Smrg		;;
10201f0ac6a5Smrg	sun2)
10211f0ac6a5Smrg		basic_machine=m68000-sun
10221f0ac6a5Smrg		;;
10231f0ac6a5Smrg	sun2os3)
10241f0ac6a5Smrg		basic_machine=m68000-sun
10251f0ac6a5Smrg		os=-sunos3
10261f0ac6a5Smrg		;;
10271f0ac6a5Smrg	sun2os4)
10281f0ac6a5Smrg		basic_machine=m68000-sun
10291f0ac6a5Smrg		os=-sunos4
10301f0ac6a5Smrg		;;
10311f0ac6a5Smrg	sun3os3)
10321f0ac6a5Smrg		basic_machine=m68k-sun
10331f0ac6a5Smrg		os=-sunos3
10341f0ac6a5Smrg		;;
10351f0ac6a5Smrg	sun3os4)
10361f0ac6a5Smrg		basic_machine=m68k-sun
10371f0ac6a5Smrg		os=-sunos4
10381f0ac6a5Smrg		;;
10391f0ac6a5Smrg	sun4os3)
10401f0ac6a5Smrg		basic_machine=sparc-sun
10411f0ac6a5Smrg		os=-sunos3
10421f0ac6a5Smrg		;;
10431f0ac6a5Smrg	sun4os4)
10441f0ac6a5Smrg		basic_machine=sparc-sun
10451f0ac6a5Smrg		os=-sunos4
10461f0ac6a5Smrg		;;
10471f0ac6a5Smrg	sun4sol2)
10481f0ac6a5Smrg		basic_machine=sparc-sun
10491f0ac6a5Smrg		os=-solaris2
10501f0ac6a5Smrg		;;
10511f0ac6a5Smrg	sun3 | sun3-*)
10521f0ac6a5Smrg		basic_machine=m68k-sun
10531f0ac6a5Smrg		;;
10541f0ac6a5Smrg	sun4)
10551f0ac6a5Smrg		basic_machine=sparc-sun
10561f0ac6a5Smrg		;;
10571f0ac6a5Smrg	sun386 | sun386i | roadrunner)
10581f0ac6a5Smrg		basic_machine=i386-sun
10591f0ac6a5Smrg		;;
10601f0ac6a5Smrg	sv1)
10611f0ac6a5Smrg		basic_machine=sv1-cray
10621f0ac6a5Smrg		os=-unicos
10631f0ac6a5Smrg		;;
10641f0ac6a5Smrg	symmetry)
10651f0ac6a5Smrg		basic_machine=i386-sequent
10661f0ac6a5Smrg		os=-dynix
10671f0ac6a5Smrg		;;
10681f0ac6a5Smrg	t3e)
10691f0ac6a5Smrg		basic_machine=alphaev5-cray
10701f0ac6a5Smrg		os=-unicos
10711f0ac6a5Smrg		;;
10721f0ac6a5Smrg	t90)
10731f0ac6a5Smrg		basic_machine=t90-cray
10741f0ac6a5Smrg		os=-unicos
10751f0ac6a5Smrg		;;
10761f0ac6a5Smrg	tic54x | c54x*)
10771f0ac6a5Smrg		basic_machine=tic54x-unknown
10781f0ac6a5Smrg		os=-coff
10791f0ac6a5Smrg		;;
10801f0ac6a5Smrg	tic55x | c55x*)
10811f0ac6a5Smrg		basic_machine=tic55x-unknown
10821f0ac6a5Smrg		os=-coff
10831f0ac6a5Smrg		;;
10841f0ac6a5Smrg	tic6x | c6x*)
10851f0ac6a5Smrg		basic_machine=tic6x-unknown
10861f0ac6a5Smrg		os=-coff
10871f0ac6a5Smrg		;;
1088e5410a46Smrg	tile*)
1089e5410a46Smrg		basic_machine=tile-unknown
1090e5410a46Smrg		os=-linux-gnu
1091e5410a46Smrg		;;
10921f0ac6a5Smrg	tx39)
10931f0ac6a5Smrg		basic_machine=mipstx39-unknown
10941f0ac6a5Smrg		;;
10951f0ac6a5Smrg	tx39el)
10961f0ac6a5Smrg		basic_machine=mipstx39el-unknown
10971f0ac6a5Smrg		;;
10981f0ac6a5Smrg	toad1)
10991f0ac6a5Smrg		basic_machine=pdp10-xkl
11001f0ac6a5Smrg		os=-tops20
11011f0ac6a5Smrg		;;
11021f0ac6a5Smrg	tower | tower-32)
11031f0ac6a5Smrg		basic_machine=m68k-ncr
11041f0ac6a5Smrg		;;
1105e5410a46Smrg	tpf)
1106e5410a46Smrg		basic_machine=s390x-ibm
1107e5410a46Smrg		os=-tpf
1108e5410a46Smrg		;;
11091f0ac6a5Smrg	udi29k)
11101f0ac6a5Smrg		basic_machine=a29k-amd
11111f0ac6a5Smrg		os=-udi
11121f0ac6a5Smrg		;;
11131f0ac6a5Smrg	ultra3)
11141f0ac6a5Smrg		basic_machine=a29k-nyu
11151f0ac6a5Smrg		os=-sym1
11161f0ac6a5Smrg		;;
11171f0ac6a5Smrg	v810 | necv810)
11181f0ac6a5Smrg		basic_machine=v810-nec
11191f0ac6a5Smrg		os=-none
11201f0ac6a5Smrg		;;
11211f0ac6a5Smrg	vaxv)
11221f0ac6a5Smrg		basic_machine=vax-dec
11231f0ac6a5Smrg		os=-sysv
11241f0ac6a5Smrg		;;
11251f0ac6a5Smrg	vms)
11261f0ac6a5Smrg		basic_machine=vax-dec
11271f0ac6a5Smrg		os=-vms
11281f0ac6a5Smrg		;;
11291f0ac6a5Smrg	vpp*|vx|vx-*)
11301f0ac6a5Smrg		basic_machine=f301-fujitsu
11311f0ac6a5Smrg		;;
11321f0ac6a5Smrg	vxworks960)
11331f0ac6a5Smrg		basic_machine=i960-wrs
11341f0ac6a5Smrg		os=-vxworks
11351f0ac6a5Smrg		;;
11361f0ac6a5Smrg	vxworks68)
11371f0ac6a5Smrg		basic_machine=m68k-wrs
11381f0ac6a5Smrg		os=-vxworks
11391f0ac6a5Smrg		;;
11401f0ac6a5Smrg	vxworks29k)
11411f0ac6a5Smrg		basic_machine=a29k-wrs
11421f0ac6a5Smrg		os=-vxworks
11431f0ac6a5Smrg		;;
11441f0ac6a5Smrg	w65*)
11451f0ac6a5Smrg		basic_machine=w65-wdc
11461f0ac6a5Smrg		os=-none
11471f0ac6a5Smrg		;;
11481f0ac6a5Smrg	w89k-*)
11491f0ac6a5Smrg		basic_machine=hppa1.1-winbond
11501f0ac6a5Smrg		os=-proelf
11511f0ac6a5Smrg		;;
1152e5410a46Smrg	xbox)
1153e5410a46Smrg		basic_machine=i686-pc
1154e5410a46Smrg		os=-mingw32
1155e5410a46Smrg		;;
11561f0ac6a5Smrg	xps | xps100)
11571f0ac6a5Smrg		basic_machine=xps100-honeywell
11581f0ac6a5Smrg		;;
11591f0ac6a5Smrg	ymp)
11601f0ac6a5Smrg		basic_machine=ymp-cray
11611f0ac6a5Smrg		os=-unicos
11621f0ac6a5Smrg		;;
11631f0ac6a5Smrg	z8k-*-coff)
11641f0ac6a5Smrg		basic_machine=z8k-unknown
11651f0ac6a5Smrg		os=-sim
11661f0ac6a5Smrg		;;
11679c9ff80cSmrg	z80-*-coff)
11689c9ff80cSmrg		basic_machine=z80-unknown
11699c9ff80cSmrg		os=-sim
11709c9ff80cSmrg		;;
11711f0ac6a5Smrg	none)
11721f0ac6a5Smrg		basic_machine=none-none
11731f0ac6a5Smrg		os=-none
11741f0ac6a5Smrg		;;
11751f0ac6a5Smrg
11761f0ac6a5Smrg# Here we handle the default manufacturer of certain CPU types.  It is in
11771f0ac6a5Smrg# some cases the only manufacturer, in others, it is the most popular.
11781f0ac6a5Smrg	w89k)
11791f0ac6a5Smrg		basic_machine=hppa1.1-winbond
11801f0ac6a5Smrg		;;
11811f0ac6a5Smrg	op50n)
11821f0ac6a5Smrg		basic_machine=hppa1.1-oki
11831f0ac6a5Smrg		;;
11841f0ac6a5Smrg	op60c)
11851f0ac6a5Smrg		basic_machine=hppa1.1-oki
11861f0ac6a5Smrg		;;
11871f0ac6a5Smrg	romp)
11881f0ac6a5Smrg		basic_machine=romp-ibm
11891f0ac6a5Smrg		;;
1190e5410a46Smrg	mmix)
1191e5410a46Smrg		basic_machine=mmix-knuth
1192e5410a46Smrg		;;
11931f0ac6a5Smrg	rs6000)
11941f0ac6a5Smrg		basic_machine=rs6000-ibm
11951f0ac6a5Smrg		;;
11961f0ac6a5Smrg	vax)
11971f0ac6a5Smrg		basic_machine=vax-dec
11981f0ac6a5Smrg		;;
11991f0ac6a5Smrg	pdp10)
12001f0ac6a5Smrg		# there are many clones, so DEC is not a safe bet
12011f0ac6a5Smrg		basic_machine=pdp10-unknown
12021f0ac6a5Smrg		;;
12031f0ac6a5Smrg	pdp11)
12041f0ac6a5Smrg		basic_machine=pdp11-dec
12051f0ac6a5Smrg		;;
12061f0ac6a5Smrg	we32k)
12071f0ac6a5Smrg		basic_machine=we32k-att
12081f0ac6a5Smrg		;;
12099c9ff80cSmrg	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
12101f0ac6a5Smrg		basic_machine=sh-unknown
12111f0ac6a5Smrg		;;
1212e5410a46Smrg	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
12131f0ac6a5Smrg		basic_machine=sparc-sun
12141f0ac6a5Smrg		;;
12151f0ac6a5Smrg	cydra)
12161f0ac6a5Smrg		basic_machine=cydra-cydrome
12171f0ac6a5Smrg		;;
12181f0ac6a5Smrg	orion)
12191f0ac6a5Smrg		basic_machine=orion-highlevel
12201f0ac6a5Smrg		;;
12211f0ac6a5Smrg	orion105)
12221f0ac6a5Smrg		basic_machine=clipper-highlevel
12231f0ac6a5Smrg		;;
12241f0ac6a5Smrg	mac | mpw | mac-mpw)
12251f0ac6a5Smrg		basic_machine=m68k-apple
12261f0ac6a5Smrg		;;
12271f0ac6a5Smrg	pmac | pmac-mpw)
12281f0ac6a5Smrg		basic_machine=powerpc-apple
12291f0ac6a5Smrg		;;
12301f0ac6a5Smrg	*-unknown)
12311f0ac6a5Smrg		# Make sure to match an already-canonicalized machine name.
12321f0ac6a5Smrg		;;
12331f0ac6a5Smrg	*)
12341f0ac6a5Smrg		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
12351f0ac6a5Smrg		exit 1
12361f0ac6a5Smrg		;;
12371f0ac6a5Smrgesac
12381f0ac6a5Smrg
12391f0ac6a5Smrg# Here we canonicalize certain aliases for manufacturers.
12401f0ac6a5Smrgcase $basic_machine in
12411f0ac6a5Smrg	*-digital*)
12421f0ac6a5Smrg		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
12431f0ac6a5Smrg		;;
12441f0ac6a5Smrg	*-commodore*)
12451f0ac6a5Smrg		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
12461f0ac6a5Smrg		;;
12471f0ac6a5Smrg	*)
12481f0ac6a5Smrg		;;
12491f0ac6a5Smrgesac
12501f0ac6a5Smrg
12511f0ac6a5Smrg# Decode manufacturer-specific aliases for certain operating systems.
12521f0ac6a5Smrg
12531f0ac6a5Smrgif [ x"$os" != x"" ]
12541f0ac6a5Smrgthen
12551f0ac6a5Smrgcase $os in
12561f0ac6a5Smrg        # First match some system type aliases
12571f0ac6a5Smrg        # that might get confused with valid system types.
12581f0ac6a5Smrg	# -solaris* is a basic system type, with this one exception.
12599c9ff80cSmrg        -auroraux)
12609c9ff80cSmrg	        os=-auroraux
12619c9ff80cSmrg		;;
12621f0ac6a5Smrg	-solaris1 | -solaris1.*)
12631f0ac6a5Smrg		os=`echo $os | sed -e 's|solaris1|sunos4|'`
12641f0ac6a5Smrg		;;
12651f0ac6a5Smrg	-solaris)
12661f0ac6a5Smrg		os=-solaris2
12671f0ac6a5Smrg		;;
12681f0ac6a5Smrg	-svr4*)
12691f0ac6a5Smrg		os=-sysv4
12701f0ac6a5Smrg		;;
12711f0ac6a5Smrg	-unixware*)
12721f0ac6a5Smrg		os=-sysv4.2uw
12731f0ac6a5Smrg		;;
12741f0ac6a5Smrg	-gnu/linux*)
12751f0ac6a5Smrg		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
12761f0ac6a5Smrg		;;
12771f0ac6a5Smrg	# First accept the basic system types.
12781f0ac6a5Smrg	# The portable systems comes first.
12791f0ac6a5Smrg	# Each alternative MUST END IN A *, to match a version number.
12801f0ac6a5Smrg	# -sysv* is not here because it comes later, after sysvr4.
12811f0ac6a5Smrg	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
12829c9ff80cSmrg	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
12839c9ff80cSmrg	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
12849c9ff80cSmrg	      | -sym* | -kopensolaris* \
12851f0ac6a5Smrg	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
12869c9ff80cSmrg	      | -aos* | -aros* \
12871f0ac6a5Smrg	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12881f0ac6a5Smrg	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1289e5410a46Smrg	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1290e5410a46Smrg	      | -openbsd* | -solidbsd* \
1291e5410a46Smrg	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1292e5410a46Smrg	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
12931f0ac6a5Smrg	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12941f0ac6a5Smrg	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
12959c9ff80cSmrg	      | -chorusos* | -chorusrdb* | -cegcc* \
12961f0ac6a5Smrg	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1297e5410a46Smrg	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1298e5410a46Smrg	      | -uxpv* | -beos* | -mpeix* | -udk* \
12991f0ac6a5Smrg	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13001f0ac6a5Smrg	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13011f0ac6a5Smrg	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13021f0ac6a5Smrg	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13031f0ac6a5Smrg	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1304e5410a46Smrg	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
13059c9ff80cSmrg	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
13061f0ac6a5Smrg	# Remember, each alternative MUST END IN *, to match a version number.
13071f0ac6a5Smrg		;;
13081f0ac6a5Smrg	-qnx*)
13091f0ac6a5Smrg		case $basic_machine in
13101f0ac6a5Smrg		    x86-* | i*86-*)
13111f0ac6a5Smrg			;;
13121f0ac6a5Smrg		    *)
13131f0ac6a5Smrg			os=-nto$os
13141f0ac6a5Smrg			;;
13151f0ac6a5Smrg		esac
13161f0ac6a5Smrg		;;
13171f0ac6a5Smrg	-nto-qnx*)
13181f0ac6a5Smrg		;;
13191f0ac6a5Smrg	-nto*)
13201f0ac6a5Smrg		os=`echo $os | sed -e 's|nto|nto-qnx|'`
13211f0ac6a5Smrg		;;
13221f0ac6a5Smrg	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1323e5410a46Smrg	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
13241f0ac6a5Smrg	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
13251f0ac6a5Smrg		;;
13261f0ac6a5Smrg	-mac*)
13271f0ac6a5Smrg		os=`echo $os | sed -e 's|mac|macos|'`
13281f0ac6a5Smrg		;;
1329e5410a46Smrg	-linux-dietlibc)
1330e5410a46Smrg		os=-linux-dietlibc
1331e5410a46Smrg		;;
13321f0ac6a5Smrg	-linux*)
13331f0ac6a5Smrg		os=`echo $os | sed -e 's|linux|linux-gnu|'`
13341f0ac6a5Smrg		;;
13351f0ac6a5Smrg	-sunos5*)
13361f0ac6a5Smrg		os=`echo $os | sed -e 's|sunos5|solaris2|'`
13371f0ac6a5Smrg		;;
13381f0ac6a5Smrg	-sunos6*)
13391f0ac6a5Smrg		os=`echo $os | sed -e 's|sunos6|solaris3|'`
13401f0ac6a5Smrg		;;
13411f0ac6a5Smrg	-opened*)
13421f0ac6a5Smrg		os=-openedition
13431f0ac6a5Smrg		;;
1344e5410a46Smrg        -os400*)
1345e5410a46Smrg		os=-os400
1346e5410a46Smrg		;;
13471f0ac6a5Smrg	-wince*)
13481f0ac6a5Smrg		os=-wince
13491f0ac6a5Smrg		;;
13501f0ac6a5Smrg	-osfrose*)
13511f0ac6a5Smrg		os=-osfrose
13521f0ac6a5Smrg		;;
13531f0ac6a5Smrg	-osf*)
13541f0ac6a5Smrg		os=-osf
13551f0ac6a5Smrg		;;
13561f0ac6a5Smrg	-utek*)
13571f0ac6a5Smrg		os=-bsd
13581f0ac6a5Smrg		;;
13591f0ac6a5Smrg	-dynix*)
13601f0ac6a5Smrg		os=-bsd
13611f0ac6a5Smrg		;;
13621f0ac6a5Smrg	-acis*)
13631f0ac6a5Smrg		os=-aos
13641f0ac6a5Smrg		;;
13651f0ac6a5Smrg	-atheos*)
13661f0ac6a5Smrg		os=-atheos
13671f0ac6a5Smrg		;;
1368e5410a46Smrg	-syllable*)
1369e5410a46Smrg		os=-syllable
1370e5410a46Smrg		;;
13711f0ac6a5Smrg	-386bsd)
13721f0ac6a5Smrg		os=-bsd
13731f0ac6a5Smrg		;;
13741f0ac6a5Smrg	-ctix* | -uts*)
13751f0ac6a5Smrg		os=-sysv
13761f0ac6a5Smrg		;;
13771f0ac6a5Smrg	-nova*)
13781f0ac6a5Smrg		os=-rtmk-nova
13791f0ac6a5Smrg		;;
13801f0ac6a5Smrg	-ns2 )
13811f0ac6a5Smrg		os=-nextstep2
13821f0ac6a5Smrg		;;
13831f0ac6a5Smrg	-nsk*)
13841f0ac6a5Smrg		os=-nsk
13851f0ac6a5Smrg		;;
13861f0ac6a5Smrg	# Preserve the version number of sinix5.
13871f0ac6a5Smrg	-sinix5.*)
13881f0ac6a5Smrg		os=`echo $os | sed -e 's|sinix|sysv|'`
13891f0ac6a5Smrg		;;
13901f0ac6a5Smrg	-sinix*)
13911f0ac6a5Smrg		os=-sysv4
13921f0ac6a5Smrg		;;
1393e5410a46Smrg        -tpf*)
1394e5410a46Smrg		os=-tpf
1395e5410a46Smrg		;;
13961f0ac6a5Smrg	-triton*)
13971f0ac6a5Smrg		os=-sysv3
13981f0ac6a5Smrg		;;
13991f0ac6a5Smrg	-oss*)
14001f0ac6a5Smrg		os=-sysv3
14011f0ac6a5Smrg		;;
14021f0ac6a5Smrg	-svr4)
14031f0ac6a5Smrg		os=-sysv4
14041f0ac6a5Smrg		;;
14051f0ac6a5Smrg	-svr3)
14061f0ac6a5Smrg		os=-sysv3
14071f0ac6a5Smrg		;;
14081f0ac6a5Smrg	-sysvr4)
14091f0ac6a5Smrg		os=-sysv4
14101f0ac6a5Smrg		;;
14111f0ac6a5Smrg	# This must come after -sysvr4.
14121f0ac6a5Smrg	-sysv*)
14131f0ac6a5Smrg		;;
14141f0ac6a5Smrg	-ose*)
14151f0ac6a5Smrg		os=-ose
14161f0ac6a5Smrg		;;
14171f0ac6a5Smrg	-es1800*)
14181f0ac6a5Smrg		os=-ose
14191f0ac6a5Smrg		;;
14201f0ac6a5Smrg	-xenix)
14211f0ac6a5Smrg		os=-xenix
14221f0ac6a5Smrg		;;
14231f0ac6a5Smrg	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
14241f0ac6a5Smrg		os=-mint
14251f0ac6a5Smrg		;;
14261f0ac6a5Smrg	-aros*)
14271f0ac6a5Smrg		os=-aros
14281f0ac6a5Smrg		;;
14291f0ac6a5Smrg	-kaos*)
14301f0ac6a5Smrg		os=-kaos
14311f0ac6a5Smrg		;;
1432e5410a46Smrg	-zvmoe)
1433e5410a46Smrg		os=-zvmoe
1434e5410a46Smrg		;;
14359c9ff80cSmrg	-dicos*)
14369c9ff80cSmrg		os=-dicos
14379c9ff80cSmrg		;;
14381f0ac6a5Smrg	-none)
14391f0ac6a5Smrg		;;
14401f0ac6a5Smrg	*)
14411f0ac6a5Smrg		# Get rid of the `-' at the beginning of $os.
14421f0ac6a5Smrg		os=`echo $os | sed 's/[^-]*-//'`
14431f0ac6a5Smrg		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
14441f0ac6a5Smrg		exit 1
14451f0ac6a5Smrg		;;
14461f0ac6a5Smrgesac
14471f0ac6a5Smrgelse
14481f0ac6a5Smrg
14491f0ac6a5Smrg# Here we handle the default operating systems that come with various machines.
14501f0ac6a5Smrg# The value should be what the vendor currently ships out the door with their
14511f0ac6a5Smrg# machine or put another way, the most popular os provided with the machine.
14521f0ac6a5Smrg
14531f0ac6a5Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say,
14541f0ac6a5Smrg# "-sun"), then you have to tell the case statement up towards the top
14551f0ac6a5Smrg# that MANUFACTURER isn't an operating system.  Otherwise, code above
14561f0ac6a5Smrg# will signal an error saying that MANUFACTURER isn't an operating
14571f0ac6a5Smrg# system, and we'll never get to this point.
14581f0ac6a5Smrg
14591f0ac6a5Smrgcase $basic_machine in
1460e5410a46Smrg        score-*)
1461e5410a46Smrg		os=-elf
1462e5410a46Smrg		;;
1463e5410a46Smrg        spu-*)
1464e5410a46Smrg		os=-elf
1465e5410a46Smrg		;;
14661f0ac6a5Smrg	*-acorn)
14671f0ac6a5Smrg		os=-riscix1.2
14681f0ac6a5Smrg		;;
14691f0ac6a5Smrg	arm*-rebel)
14701f0ac6a5Smrg		os=-linux
14711f0ac6a5Smrg		;;
14721f0ac6a5Smrg	arm*-semi)
14731f0ac6a5Smrg		os=-aout
14741f0ac6a5Smrg		;;
1475e5410a46Smrg        c4x-* | tic4x-*)
1476e5410a46Smrg        	os=-coff
1477e5410a46Smrg		;;
14781f0ac6a5Smrg	# This must come before the *-dec entry.
14791f0ac6a5Smrg	pdp10-*)
14801f0ac6a5Smrg		os=-tops20
14811f0ac6a5Smrg		;;
14821f0ac6a5Smrg	pdp11-*)
14831f0ac6a5Smrg		os=-none
14841f0ac6a5Smrg		;;
14851f0ac6a5Smrg	*-dec | vax-*)
14861f0ac6a5Smrg		os=-ultrix4.2
14871f0ac6a5Smrg		;;
14881f0ac6a5Smrg	m68*-apollo)
14891f0ac6a5Smrg		os=-domain
14901f0ac6a5Smrg		;;
14911f0ac6a5Smrg	i386-sun)
14921f0ac6a5Smrg		os=-sunos4.0.2
14931f0ac6a5Smrg		;;
14941f0ac6a5Smrg	m68000-sun)
14951f0ac6a5Smrg		os=-sunos3
14961f0ac6a5Smrg		# This also exists in the configure program, but was not the
14971f0ac6a5Smrg		# default.
14981f0ac6a5Smrg		# os=-sunos4
14991f0ac6a5Smrg		;;
15001f0ac6a5Smrg	m68*-cisco)
15011f0ac6a5Smrg		os=-aout
15021f0ac6a5Smrg		;;
1503e5410a46Smrg        mep-*)
1504e5410a46Smrg		os=-elf
1505e5410a46Smrg		;;
15061f0ac6a5Smrg	mips*-cisco)
15071f0ac6a5Smrg		os=-elf
15081f0ac6a5Smrg		;;
15091f0ac6a5Smrg	mips*-*)
15101f0ac6a5Smrg		os=-elf
15111f0ac6a5Smrg		;;
15121f0ac6a5Smrg	or32-*)
15131f0ac6a5Smrg		os=-coff
15141f0ac6a5Smrg		;;
15151f0ac6a5Smrg	*-tti)	# must be before sparc entry or we get the wrong os.
15161f0ac6a5Smrg		os=-sysv3
15171f0ac6a5Smrg		;;
15181f0ac6a5Smrg	sparc-* | *-sun)
15191f0ac6a5Smrg		os=-sunos4.1.1
15201f0ac6a5Smrg		;;
15211f0ac6a5Smrg	*-be)
15221f0ac6a5Smrg		os=-beos
15231f0ac6a5Smrg		;;
1524e5410a46Smrg	*-haiku)
1525e5410a46Smrg		os=-haiku
1526e5410a46Smrg		;;
15271f0ac6a5Smrg	*-ibm)
15281f0ac6a5Smrg		os=-aix
15291f0ac6a5Smrg		;;
1530e5410a46Smrg    	*-knuth)
1531e5410a46Smrg		os=-mmixware
1532e5410a46Smrg		;;
15331f0ac6a5Smrg	*-wec)
15341f0ac6a5Smrg		os=-proelf
15351f0ac6a5Smrg		;;
15361f0ac6a5Smrg	*-winbond)
15371f0ac6a5Smrg		os=-proelf
15381f0ac6a5Smrg		;;
15391f0ac6a5Smrg	*-oki)
15401f0ac6a5Smrg		os=-proelf
15411f0ac6a5Smrg		;;
15421f0ac6a5Smrg	*-hp)
15431f0ac6a5Smrg		os=-hpux
15441f0ac6a5Smrg		;;
15451f0ac6a5Smrg	*-hitachi)
15461f0ac6a5Smrg		os=-hiux
15471f0ac6a5Smrg		;;
15481f0ac6a5Smrg	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
15491f0ac6a5Smrg		os=-sysv
15501f0ac6a5Smrg		;;
15511f0ac6a5Smrg	*-cbm)
15521f0ac6a5Smrg		os=-amigaos
15531f0ac6a5Smrg		;;
15541f0ac6a5Smrg	*-dg)
15551f0ac6a5Smrg		os=-dgux
15561f0ac6a5Smrg		;;
15571f0ac6a5Smrg	*-dolphin)
15581f0ac6a5Smrg		os=-sysv3
15591f0ac6a5Smrg		;;
15601f0ac6a5Smrg	m68k-ccur)
15611f0ac6a5Smrg		os=-rtu
15621f0ac6a5Smrg		;;
15631f0ac6a5Smrg	m88k-omron*)
15641f0ac6a5Smrg		os=-luna
15651f0ac6a5Smrg		;;
15661f0ac6a5Smrg	*-next )
15671f0ac6a5Smrg		os=-nextstep
15681f0ac6a5Smrg		;;
15691f0ac6a5Smrg	*-sequent)
15701f0ac6a5Smrg		os=-ptx
15711f0ac6a5Smrg		;;
15721f0ac6a5Smrg	*-crds)
15731f0ac6a5Smrg		os=-unos
15741f0ac6a5Smrg		;;
15751f0ac6a5Smrg	*-ns)
15761f0ac6a5Smrg		os=-genix
15771f0ac6a5Smrg		;;
15781f0ac6a5Smrg	i370-*)
15791f0ac6a5Smrg		os=-mvs
15801f0ac6a5Smrg		;;
15811f0ac6a5Smrg	*-next)
15821f0ac6a5Smrg		os=-nextstep3
15831f0ac6a5Smrg		;;
15841f0ac6a5Smrg	*-gould)
15851f0ac6a5Smrg		os=-sysv
15861f0ac6a5Smrg		;;
15871f0ac6a5Smrg	*-highlevel)
15881f0ac6a5Smrg		os=-bsd
15891f0ac6a5Smrg		;;
15901f0ac6a5Smrg	*-encore)
15911f0ac6a5Smrg		os=-bsd
15921f0ac6a5Smrg		;;
15931f0ac6a5Smrg	*-sgi)
15941f0ac6a5Smrg		os=-irix
15951f0ac6a5Smrg		;;
15961f0ac6a5Smrg	*-siemens)
15971f0ac6a5Smrg		os=-sysv4
15981f0ac6a5Smrg		;;
15991f0ac6a5Smrg	*-masscomp)
16001f0ac6a5Smrg		os=-rtu
16011f0ac6a5Smrg		;;
16021f0ac6a5Smrg	f30[01]-fujitsu | f700-fujitsu)
16031f0ac6a5Smrg		os=-uxpv
16041f0ac6a5Smrg		;;
16051f0ac6a5Smrg	*-rom68k)
16061f0ac6a5Smrg		os=-coff
16071f0ac6a5Smrg		;;
16081f0ac6a5Smrg	*-*bug)
16091f0ac6a5Smrg		os=-coff
16101f0ac6a5Smrg		;;
16111f0ac6a5Smrg	*-apple)
16121f0ac6a5Smrg		os=-macos
16131f0ac6a5Smrg		;;
16141f0ac6a5Smrg	*-atari*)
16151f0ac6a5Smrg		os=-mint
16161f0ac6a5Smrg		;;
16171f0ac6a5Smrg	*)
16181f0ac6a5Smrg		os=-none
16191f0ac6a5Smrg		;;
16201f0ac6a5Smrgesac
16211f0ac6a5Smrgfi
16221f0ac6a5Smrg
16231f0ac6a5Smrg# Here we handle the case where we know the os, and the CPU type, but not the
16241f0ac6a5Smrg# manufacturer.  We pick the logical manufacturer.
16251f0ac6a5Smrgvendor=unknown
16261f0ac6a5Smrgcase $basic_machine in
16271f0ac6a5Smrg	*-unknown)
16281f0ac6a5Smrg		case $os in
16291f0ac6a5Smrg			-riscix*)
16301f0ac6a5Smrg				vendor=acorn
16311f0ac6a5Smrg				;;
16321f0ac6a5Smrg			-sunos*)
16331f0ac6a5Smrg				vendor=sun
16341f0ac6a5Smrg				;;
16359c9ff80cSmrg			-cnk*|-aix*)
16361f0ac6a5Smrg				vendor=ibm
16371f0ac6a5Smrg				;;
16381f0ac6a5Smrg			-beos*)
16391f0ac6a5Smrg				vendor=be
16401f0ac6a5Smrg				;;
16411f0ac6a5Smrg			-hpux*)
16421f0ac6a5Smrg				vendor=hp
16431f0ac6a5Smrg				;;
16441f0ac6a5Smrg			-mpeix*)
16451f0ac6a5Smrg				vendor=hp
16461f0ac6a5Smrg				;;
16471f0ac6a5Smrg			-hiux*)
16481f0ac6a5Smrg				vendor=hitachi
16491f0ac6a5Smrg				;;
16501f0ac6a5Smrg			-unos*)
16511f0ac6a5Smrg				vendor=crds
16521f0ac6a5Smrg				;;
16531f0ac6a5Smrg			-dgux*)
16541f0ac6a5Smrg				vendor=dg
16551f0ac6a5Smrg				;;
16561f0ac6a5Smrg			-luna*)
16571f0ac6a5Smrg				vendor=omron
16581f0ac6a5Smrg				;;
16591f0ac6a5Smrg			-genix*)
16601f0ac6a5Smrg				vendor=ns
16611f0ac6a5Smrg				;;
16621f0ac6a5Smrg			-mvs* | -opened*)
16631f0ac6a5Smrg				vendor=ibm
16641f0ac6a5Smrg				;;
1665e5410a46Smrg			-os400*)
1666e5410a46Smrg				vendor=ibm
1667e5410a46Smrg				;;
16681f0ac6a5Smrg			-ptx*)
16691f0ac6a5Smrg				vendor=sequent
16701f0ac6a5Smrg				;;
1671e5410a46Smrg			-tpf*)
1672e5410a46Smrg				vendor=ibm
1673e5410a46Smrg				;;
16741f0ac6a5Smrg			-vxsim* | -vxworks* | -windiss*)
16751f0ac6a5Smrg				vendor=wrs
16761f0ac6a5Smrg				;;
16771f0ac6a5Smrg			-aux*)
16781f0ac6a5Smrg				vendor=apple
16791f0ac6a5Smrg				;;
16801f0ac6a5Smrg			-hms*)
16811f0ac6a5Smrg				vendor=hitachi
16821f0ac6a5Smrg				;;
16831f0ac6a5Smrg			-mpw* | -macos*)
16841f0ac6a5Smrg				vendor=apple
16851f0ac6a5Smrg				;;
16861f0ac6a5Smrg			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
16871f0ac6a5Smrg				vendor=atari
16881f0ac6a5Smrg				;;
16891f0ac6a5Smrg			-vos*)
16901f0ac6a5Smrg				vendor=stratus
16911f0ac6a5Smrg				;;
16921f0ac6a5Smrg		esac
16931f0ac6a5Smrg		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
16941f0ac6a5Smrg		;;
16951f0ac6a5Smrgesac
16961f0ac6a5Smrg
16971f0ac6a5Smrgecho $basic_machine$os
1698e5410a46Smrgexit
16991f0ac6a5Smrg
17001f0ac6a5Smrg# Local variables:
17011f0ac6a5Smrg# eval: (add-hook 'write-file-hooks 'time-stamp)
17021f0ac6a5Smrg# time-stamp-start: "timestamp='"
17031f0ac6a5Smrg# time-stamp-format: "%:y-%02m-%02d"
17041f0ac6a5Smrg# time-stamp-end: "'"
17051f0ac6a5Smrg# End:
1706