Blame SOURCES/config.sub

2d54fe
#! /bin/sh
2d54fe
# Configuration validation subroutine script.
2d54fe
#   Copyright 1992-2013 Free Software Foundation, Inc.
2d54fe
2d54fe
timestamp='2013-04-24'
2d54fe
2d54fe
# This file is free software; you can redistribute it and/or modify it
2d54fe
# under the terms of the GNU General Public License as published by
2d54fe
# the Free Software Foundation; either version 3 of the License, or
2d54fe
# (at your option) any later version.
2d54fe
#
2d54fe
# This program is distributed in the hope that it will be useful, but
2d54fe
# WITHOUT ANY WARRANTY; without even the implied warranty of
2d54fe
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2d54fe
# General Public License for more details.
2d54fe
#
2d54fe
# You should have received a copy of the GNU General Public License
2d54fe
# along with this program; if not, see <http://www.gnu.org/licenses/>.
2d54fe
#
2d54fe
# As a special exception to the GNU General Public License, if you
2d54fe
# distribute this file as part of a program that contains a
2d54fe
# configuration script generated by Autoconf, you may include it under
2d54fe
# the same distribution terms that you use for the rest of that
2d54fe
# program.  This Exception is an additional permission under section 7
2d54fe
# of the GNU General Public License, version 3 ("GPLv3").
2d54fe
2d54fe
2d54fe
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
2d54fe
#
2d54fe
# Configuration subroutine to validate and canonicalize a configuration type.
2d54fe
# Supply the specified configuration type as an argument.
2d54fe
# If it is invalid, we print an error message on stderr and exit with code 1.
2d54fe
# Otherwise, we print the canonical config type on stdout and succeed.
2d54fe
2d54fe
# You can get the latest version of this script from:
2d54fe
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
2d54fe
2d54fe
# This file is supposed to be the same for all GNU packages
2d54fe
# and recognize all the CPU types, system types and aliases
2d54fe
# that are meaningful with *any* GNU software.
2d54fe
# Each package is responsible for reporting which valid configurations
2d54fe
# it does not support.  The user should be able to distinguish
2d54fe
# a failure to support a valid configuration from a meaningless
2d54fe
# configuration.
2d54fe
2d54fe
# The goal of this file is to map all the various variations of a given
2d54fe
# machine specification into a single specification in the form:
2d54fe
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
2d54fe
# or in some cases, the newer four-part form:
2d54fe
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
2d54fe
# It is wrong to echo any other type of specification.
2d54fe
2d54fe
me=`echo "$0" | sed -e 's,.*/,,'`
2d54fe
2d54fe
usage="\
2d54fe
Usage: $0 [OPTION] CPU-MFR-OPSYS
2d54fe
       $0 [OPTION] ALIAS
2d54fe
2d54fe
Canonicalize a configuration name.
2d54fe
2d54fe
Operation modes:
2d54fe
  -h, --help         print this help, then exit
2d54fe
  -t, --time-stamp   print date of last modification, then exit
2d54fe
  -v, --version      print version number, then exit
2d54fe
2d54fe
Report bugs and patches to <config-patches@gnu.org>."
2d54fe
2d54fe
version="\
2d54fe
GNU config.sub ($timestamp)
2d54fe
2d54fe
Copyright 1992-2013 Free Software Foundation, Inc.
2d54fe
2d54fe
This is free software; see the source for copying conditions.  There is NO
2d54fe
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2d54fe
2d54fe
help="
2d54fe
Try \`$me --help' for more information."
2d54fe
2d54fe
# Parse command line
2d54fe
while test $# -gt 0 ; do
2d54fe
  case $1 in
2d54fe
    --time-stamp | --time* | -t )
2d54fe
       echo "$timestamp" ; exit ;;
2d54fe
    --version | -v )
2d54fe
       echo "$version" ; exit ;;
2d54fe
    --help | --h* | -h )
2d54fe
       echo "$usage"; exit ;;
2d54fe
    -- )     # Stop option processing
2d54fe
       shift; break ;;
2d54fe
    - )	# Use stdin as input.
2d54fe
       break ;;
2d54fe
    -* )
2d54fe
       echo "$me: invalid option $1$help"
2d54fe
       exit 1 ;;
2d54fe
2d54fe
    *local*)
2d54fe
       # First pass through any local machine types.
2d54fe
       echo $1
2d54fe
       exit ;;
2d54fe
2d54fe
    * )
2d54fe
       break ;;
2d54fe
  esac
2d54fe
done
2d54fe
2d54fe
case $# in
2d54fe
 0) echo "$me: missing argument$help" >&2
2d54fe
    exit 1;;
2d54fe
 1) ;;
2d54fe
 *) echo "$me: too many arguments$help" >&2
2d54fe
    exit 1;;
2d54fe
esac
2d54fe
2d54fe
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
2d54fe
# Here we must recognize all the valid KERNEL-OS combinations.
2d54fe
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
2d54fe
case $maybe_os in
2d54fe
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
2d54fe
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
2d54fe
  knetbsd*-gnu* | netbsd*-gnu* | \
2d54fe
  kopensolaris*-gnu* | \
2d54fe
  storm-chaos* | os2-emx* | rtmk-nova*)
2d54fe
    os=-$maybe_os
2d54fe
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
2d54fe
    ;;
2d54fe
  android-linux)
2d54fe
    os=-linux-android
2d54fe
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
2d54fe
    ;;
2d54fe
  *)
2d54fe
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
2d54fe
    if [ $basic_machine != $1 ]
2d54fe
    then os=`echo $1 | sed 's/.*-/-/'`
2d54fe
    else os=; fi
2d54fe
    ;;
2d54fe
esac
2d54fe
2d54fe
### Let's recognize common machines as not being operating systems so
2d54fe
### that things like config.sub decstation-3100 work.  We also
2d54fe
### recognize some manufacturers as not being operating systems, so we
2d54fe
### can provide default operating systems below.
2d54fe
case $os in
2d54fe
	-sun*os*)
2d54fe
		# Prevent following clause from handling this invalid input.
2d54fe
		;;
2d54fe
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
2d54fe
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
2d54fe
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
2d54fe
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
2d54fe
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
2d54fe
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
2d54fe
	-apple | -axis | -knuth | -cray | -microblaze*)
2d54fe
		os=
2d54fe
		basic_machine=$1
2d54fe
		;;
2d54fe
	-bluegene*)
2d54fe
		os=-cnk
2d54fe
		;;
2d54fe
	-sim | -cisco | -oki | -wec | -winbond)
2d54fe
		os=
2d54fe
		basic_machine=$1
2d54fe
		;;
2d54fe
	-scout)
2d54fe
		;;
2d54fe
	-wrs)
2d54fe
		os=-vxworks
2d54fe
		basic_machine=$1
2d54fe
		;;
2d54fe
	-chorusos*)
2d54fe
		os=-chorusos
2d54fe
		basic_machine=$1
2d54fe
		;;
2d54fe
	-chorusrdb)
2d54fe
		os=-chorusrdb
2d54fe
		basic_machine=$1
2d54fe
		;;
2d54fe
	-hiux*)
2d54fe
		os=-hiuxwe2
2d54fe
		;;
2d54fe
	-sco6)
2d54fe
		os=-sco5v6
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-sco5)
2d54fe
		os=-sco3.2v5
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-sco4)
2d54fe
		os=-sco3.2v4
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-sco3.2.[4-9]*)
2d54fe
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-sco3.2v[4-9]*)
2d54fe
		# Don't forget version if it is 3.2v4 or newer.
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-sco5v6*)
2d54fe
		# Don't forget version if it is 3.2v4 or newer.
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-sco*)
2d54fe
		os=-sco3.2v2
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-udk*)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-isc)
2d54fe
		os=-isc2.2
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-clix*)
2d54fe
		basic_machine=clipper-intergraph
2d54fe
		;;
2d54fe
	-isc*)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2d54fe
		;;
2d54fe
	-lynx*178)
2d54fe
		os=-lynxos178
2d54fe
		;;
2d54fe
	-lynx*5)
2d54fe
		os=-lynxos5
2d54fe
		;;
2d54fe
	-lynx*)
2d54fe
		os=-lynxos
2d54fe
		;;
2d54fe
	-ptx*)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
2d54fe
		;;
2d54fe
	-windowsnt*)
2d54fe
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
2d54fe
		;;
2d54fe
	-psos*)
2d54fe
		os=-psos
2d54fe
		;;
2d54fe
	-mint | -mint[0-9]*)
2d54fe
		basic_machine=m68k-atari
2d54fe
		os=-mint
2d54fe
		;;
2d54fe
esac
2d54fe
2d54fe
# Decode aliases for certain CPU-COMPANY combinations.
2d54fe
case $basic_machine in
2d54fe
	# Recognize the basic CPU types without company name.
2d54fe
	# Some are omitted here because they have special meanings below.
2d54fe
	1750a | 580 \
2d54fe
	| a29k \
2d54fe
	| aarch64 | aarch64_be \
2d54fe
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2d54fe
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
2d54fe
	| am33_2.0 \
2d54fe
	| arc | arceb \
2d54fe
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
2d54fe
	| avr | avr32 \
2d54fe
	| be32 | be64 \
2d54fe
	| bfin \
2d54fe
	| c4x | clipper \
2d54fe
	| d10v | d30v | dlx | dsp16xx \
2d54fe
	| epiphany \
2d54fe
	| fido | fr30 | frv \
2d54fe
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2d54fe
	| hexagon \
2d54fe
	| i370 | i860 | i960 | ia64 \
2d54fe
	| ip2k | iq2000 \
2d54fe
	| le32 | le64 \
2d54fe
	| lm32 \
2d54fe
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
2d54fe
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
2d54fe
	| mips | mipsbe | mipseb | mipsel | mipsle \
2d54fe
	| mips16 \
2d54fe
	| mips64 | mips64el \
2d54fe
	| mips64octeon | mips64octeonel \
2d54fe
	| mips64orion | mips64orionel \
2d54fe
	| mips64r5900 | mips64r5900el \
2d54fe
	| mips64vr | mips64vrel \
2d54fe
	| mips64vr4100 | mips64vr4100el \
2d54fe
	| mips64vr4300 | mips64vr4300el \
2d54fe
	| mips64vr5000 | mips64vr5000el \
2d54fe
	| mips64vr5900 | mips64vr5900el \
2d54fe
	| mipsisa32 | mipsisa32el \
2d54fe
	| mipsisa32r2 | mipsisa32r2el \
2d54fe
	| mipsisa64 | mipsisa64el \
2d54fe
	| mipsisa64r2 | mipsisa64r2el \
2d54fe
	| mipsisa64sb1 | mipsisa64sb1el \
2d54fe
	| mipsisa64sr71k | mipsisa64sr71kel \
2d54fe
	| mipsr5900 | mipsr5900el \
2d54fe
	| mipstx39 | mipstx39el \
2d54fe
	| mn10200 | mn10300 \
2d54fe
	| moxie \
2d54fe
	| mt \
2d54fe
	| msp430 \
2d54fe
	| nds32 | nds32le | nds32be \
2d54fe
	| nios | nios2 | nios2eb | nios2el \
2d54fe
	| ns16k | ns32k \
2d54fe
	| open8 \
2d54fe
	| or1k | or32 \
2d54fe
	| pdp10 | pdp11 | pj | pjl \
2d54fe
	| powerpc | powerpc64 | powerpc64le | powerpcle \
2d54fe
	| pyramid \
2d54fe
	| rl78 | rx \
2d54fe
	| score \
2d54fe
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
2d54fe
	| sh64 | sh64le \
2d54fe
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
2d54fe
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
2d54fe
	| spu \
2d54fe
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
2d54fe
	| ubicom32 \
2d54fe
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
2d54fe
	| we32k \
2d54fe
	| x86 | xc16x | xstormy16 | xtensa \
2d54fe
	| z8k | z80)
2d54fe
		basic_machine=$basic_machine-unknown
2d54fe
		;;
2d54fe
	c54x)
2d54fe
		basic_machine=tic54x-unknown
2d54fe
		;;
2d54fe
	c55x)
2d54fe
		basic_machine=tic55x-unknown
2d54fe
		;;
2d54fe
	c6x)
2d54fe
		basic_machine=tic6x-unknown
2d54fe
		;;
2d54fe
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
2d54fe
		basic_machine=$basic_machine-unknown
2d54fe
		os=-none
2d54fe
		;;
2d54fe
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
2d54fe
		;;
2d54fe
	ms1)
2d54fe
		basic_machine=mt-unknown
2d54fe
		;;
2d54fe
2d54fe
	strongarm | thumb | xscale)
2d54fe
		basic_machine=arm-unknown
2d54fe
		;;
2d54fe
	xgate)
2d54fe
		basic_machine=$basic_machine-unknown
2d54fe
		os=-none
2d54fe
		;;
2d54fe
	xscaleeb)
2d54fe
		basic_machine=armeb-unknown
2d54fe
		;;
2d54fe
2d54fe
	xscaleel)
2d54fe
		basic_machine=armel-unknown
2d54fe
		;;
2d54fe
2d54fe
	# We use `pc' rather than `unknown'
2d54fe
	# because (1) that's what they normally are, and
2d54fe
	# (2) the word "unknown" tends to confuse beginning users.
2d54fe
	i*86 | x86_64)
2d54fe
	  basic_machine=$basic_machine-pc
2d54fe
	  ;;
2d54fe
	# Object if more than one company name word.
2d54fe
	*-*-*)
2d54fe
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2d54fe
		exit 1
2d54fe
		;;
2d54fe
	# Recognize the basic CPU types with company name.
2d54fe
	580-* \
2d54fe
	| a29k-* \
2d54fe
	| aarch64-* | aarch64_be-* \
2d54fe
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
2d54fe
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
2d54fe
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
2d54fe
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
2d54fe
	| avr-* | avr32-* \
2d54fe
	| be32-* | be64-* \
2d54fe
	| bfin-* | bs2000-* \
2d54fe
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
2d54fe
	| clipper-* | craynv-* | cydra-* \
2d54fe
	| d10v-* | d30v-* | dlx-* \
2d54fe
	| elxsi-* \
2d54fe
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
2d54fe
	| h8300-* | h8500-* \
2d54fe
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
2d54fe
	| hexagon-* \
2d54fe
	| i*86-* | i860-* | i960-* | ia64-* \
2d54fe
	| ip2k-* | iq2000-* \
2d54fe
	| le32-* | le64-* \
2d54fe
	| lm32-* \
2d54fe
	| m32c-* | m32r-* | m32rle-* \
2d54fe
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
2d54fe
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
2d54fe
	| microblaze-* | microblazeel-* \
2d54fe
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
2d54fe
	| mips16-* \
2d54fe
	| mips64-* | mips64el-* \
2d54fe
	| mips64octeon-* | mips64octeonel-* \
2d54fe
	| mips64orion-* | mips64orionel-* \
2d54fe
	| mips64r5900-* | mips64r5900el-* \
2d54fe
	| mips64vr-* | mips64vrel-* \
2d54fe
	| mips64vr4100-* | mips64vr4100el-* \
2d54fe
	| mips64vr4300-* | mips64vr4300el-* \
2d54fe
	| mips64vr5000-* | mips64vr5000el-* \
2d54fe
	| mips64vr5900-* | mips64vr5900el-* \
2d54fe
	| mipsisa32-* | mipsisa32el-* \
2d54fe
	| mipsisa32r2-* | mipsisa32r2el-* \
2d54fe
	| mipsisa64-* | mipsisa64el-* \
2d54fe
	| mipsisa64r2-* | mipsisa64r2el-* \
2d54fe
	| mipsisa64sb1-* | mipsisa64sb1el-* \
2d54fe
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
2d54fe
	| mipsr5900-* | mipsr5900el-* \
2d54fe
	| mipstx39-* | mipstx39el-* \
2d54fe
	| mmix-* \
2d54fe
	| mt-* \
2d54fe
	| msp430-* \
2d54fe
	| nds32-* | nds32le-* | nds32be-* \
2d54fe
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
2d54fe
	| none-* | np1-* | ns16k-* | ns32k-* \
2d54fe
	| open8-* \
2d54fe
	| orion-* \
2d54fe
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
2d54fe
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
2d54fe
	| pyramid-* \
2d54fe
	| rl78-* | romp-* | rs6000-* | rx-* \
2d54fe
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
2d54fe
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
2d54fe
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
2d54fe
	| sparclite-* \
2d54fe
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
2d54fe
	| tahoe-* \
2d54fe
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
2d54fe
	| tile*-* \
2d54fe
	| tron-* \
2d54fe
	| ubicom32-* \
2d54fe
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
2d54fe
	| vax-* \
2d54fe
	| we32k-* \
2d54fe
	| x86-* | x86_64-* | xc16x-* | xps100-* \
2d54fe
	| xstormy16-* | xtensa*-* \
2d54fe
	| ymp-* \
2d54fe
	| z8k-* | z80-*)
2d54fe
		;;
2d54fe
	# Recognize the basic CPU types without company name, with glob match.
2d54fe
	xtensa*)
2d54fe
		basic_machine=$basic_machine-unknown
2d54fe
		;;
2d54fe
	# Recognize the various machine names and aliases which stand
2d54fe
	# for a CPU type and a company and sometimes even an OS.
2d54fe
	386bsd)
2d54fe
		basic_machine=i386-unknown
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
2d54fe
		basic_machine=m68000-att
2d54fe
		;;
2d54fe
	3b*)
2d54fe
		basic_machine=we32k-att
2d54fe
		;;
2d54fe
	a29khif)
2d54fe
		basic_machine=a29k-amd
2d54fe
		os=-udi
2d54fe
		;;
2d54fe
	abacus)
2d54fe
		basic_machine=abacus-unknown
2d54fe
		;;
2d54fe
	adobe68k)
2d54fe
		basic_machine=m68010-adobe
2d54fe
		os=-scout
2d54fe
		;;
2d54fe
	alliant | fx80)
2d54fe
		basic_machine=fx80-alliant
2d54fe
		;;
2d54fe
	altos | altos3068)
2d54fe
		basic_machine=m68k-altos
2d54fe
		;;
2d54fe
	am29k)
2d54fe
		basic_machine=a29k-none
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	amd64)
2d54fe
		basic_machine=x86_64-pc
2d54fe
		;;
2d54fe
	amd64-*)
2d54fe
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	amdahl)
2d54fe
		basic_machine=580-amdahl
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	amiga | amiga-*)
2d54fe
		basic_machine=m68k-unknown
2d54fe
		;;
2d54fe
	amigaos | amigados)
2d54fe
		basic_machine=m68k-unknown
2d54fe
		os=-amigaos
2d54fe
		;;
2d54fe
	amigaunix | amix)
2d54fe
		basic_machine=m68k-unknown
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	apollo68)
2d54fe
		basic_machine=m68k-apollo
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	apollo68bsd)
2d54fe
		basic_machine=m68k-apollo
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	aros)
2d54fe
		basic_machine=i386-pc
2d54fe
		os=-aros
2d54fe
		;;
2d54fe
	aux)
2d54fe
		basic_machine=m68k-apple
2d54fe
		os=-aux
2d54fe
		;;
2d54fe
	balance)
2d54fe
		basic_machine=ns32k-sequent
2d54fe
		os=-dynix
2d54fe
		;;
2d54fe
	blackfin)
2d54fe
		basic_machine=bfin-unknown
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	blackfin-*)
2d54fe
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	bluegene*)
2d54fe
		basic_machine=powerpc-ibm
2d54fe
		os=-cnk
2d54fe
		;;
2d54fe
	c54x-*)
2d54fe
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	c55x-*)
2d54fe
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	c6x-*)
2d54fe
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	c90)
2d54fe
		basic_machine=c90-cray
2d54fe
		os=-unicos
2d54fe
		;;
2d54fe
	cegcc)
2d54fe
		basic_machine=arm-unknown
2d54fe
		os=-cegcc
2d54fe
		;;
2d54fe
	convex-c1)
2d54fe
		basic_machine=c1-convex
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	convex-c2)
2d54fe
		basic_machine=c2-convex
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	convex-c32)
2d54fe
		basic_machine=c32-convex
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	convex-c34)
2d54fe
		basic_machine=c34-convex
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	convex-c38)
2d54fe
		basic_machine=c38-convex
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	cray | j90)
2d54fe
		basic_machine=j90-cray
2d54fe
		os=-unicos
2d54fe
		;;
2d54fe
	craynv)
2d54fe
		basic_machine=craynv-cray
2d54fe
		os=-unicosmp
2d54fe
		;;
2d54fe
	cr16 | cr16-*)
2d54fe
		basic_machine=cr16-unknown
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	crds | unos)
2d54fe
		basic_machine=m68k-crds
2d54fe
		;;
2d54fe
	crisv32 | crisv32-* | etraxfs*)
2d54fe
		basic_machine=crisv32-axis
2d54fe
		;;
2d54fe
	cris | cris-* | etrax*)
2d54fe
		basic_machine=cris-axis
2d54fe
		;;
2d54fe
	crx)
2d54fe
		basic_machine=crx-unknown
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	da30 | da30-*)
2d54fe
		basic_machine=m68k-da30
2d54fe
		;;
2d54fe
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2d54fe
		basic_machine=mips-dec
2d54fe
		;;
2d54fe
	decsystem10* | dec10*)
2d54fe
		basic_machine=pdp10-dec
2d54fe
		os=-tops10
2d54fe
		;;
2d54fe
	decsystem20* | dec20*)
2d54fe
		basic_machine=pdp10-dec
2d54fe
		os=-tops20
2d54fe
		;;
2d54fe
	delta | 3300 | motorola-3300 | motorola-delta \
2d54fe
	      | 3300-motorola | delta-motorola)
2d54fe
		basic_machine=m68k-motorola
2d54fe
		;;
2d54fe
	delta88)
2d54fe
		basic_machine=m88k-motorola
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	dicos)
2d54fe
		basic_machine=i686-pc
2d54fe
		os=-dicos
2d54fe
		;;
2d54fe
	djgpp)
2d54fe
		basic_machine=i586-pc
2d54fe
		os=-msdosdjgpp
2d54fe
		;;
2d54fe
	dpx20 | dpx20-*)
2d54fe
		basic_machine=rs6000-bull
2d54fe
		os=-bosx
2d54fe
		;;
2d54fe
	dpx2* | dpx2*-bull)
2d54fe
		basic_machine=m68k-bull
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	ebmon29k)
2d54fe
		basic_machine=a29k-amd
2d54fe
		os=-ebmon
2d54fe
		;;
2d54fe
	elxsi)
2d54fe
		basic_machine=elxsi-elxsi
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	encore | umax | mmax)
2d54fe
		basic_machine=ns32k-encore
2d54fe
		;;
2d54fe
	es1800 | OSE68k | ose68k | ose | OSE)
2d54fe
		basic_machine=m68k-ericsson
2d54fe
		os=-ose
2d54fe
		;;
2d54fe
	fx2800)
2d54fe
		basic_machine=i860-alliant
2d54fe
		;;
2d54fe
	genix)
2d54fe
		basic_machine=ns32k-ns
2d54fe
		;;
2d54fe
	gmicro)
2d54fe
		basic_machine=tron-gmicro
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	go32)
2d54fe
		basic_machine=i386-pc
2d54fe
		os=-go32
2d54fe
		;;
2d54fe
	h3050r* | hiux*)
2d54fe
		basic_machine=hppa1.1-hitachi
2d54fe
		os=-hiuxwe2
2d54fe
		;;
2d54fe
	h8300hms)
2d54fe
		basic_machine=h8300-hitachi
2d54fe
		os=-hms
2d54fe
		;;
2d54fe
	h8300xray)
2d54fe
		basic_machine=h8300-hitachi
2d54fe
		os=-xray
2d54fe
		;;
2d54fe
	h8500hms)
2d54fe
		basic_machine=h8500-hitachi
2d54fe
		os=-hms
2d54fe
		;;
2d54fe
	harris)
2d54fe
		basic_machine=m88k-harris
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	hp300-*)
2d54fe
		basic_machine=m68k-hp
2d54fe
		;;
2d54fe
	hp300bsd)
2d54fe
		basic_machine=m68k-hp
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	hp300hpux)
2d54fe
		basic_machine=m68k-hp
2d54fe
		os=-hpux
2d54fe
		;;
2d54fe
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
2d54fe
		basic_machine=hppa1.0-hp
2d54fe
		;;
2d54fe
	hp9k2[0-9][0-9] | hp9k31[0-9])
2d54fe
		basic_machine=m68000-hp
2d54fe
		;;
2d54fe
	hp9k3[2-9][0-9])
2d54fe
		basic_machine=m68k-hp
2d54fe
		;;
2d54fe
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
2d54fe
		basic_machine=hppa1.0-hp
2d54fe
		;;
2d54fe
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
2d54fe
		basic_machine=hppa1.1-hp
2d54fe
		;;
2d54fe
	hp9k78[0-9] | hp78[0-9])
2d54fe
		# FIXME: really hppa2.0-hp
2d54fe
		basic_machine=hppa1.1-hp
2d54fe
		;;
2d54fe
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2d54fe
		# FIXME: really hppa2.0-hp
2d54fe
		basic_machine=hppa1.1-hp
2d54fe
		;;
2d54fe
	hp9k8[0-9][13679] | hp8[0-9][13679])
2d54fe
		basic_machine=hppa1.1-hp
2d54fe
		;;
2d54fe
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
2d54fe
		basic_machine=hppa1.0-hp
2d54fe
		;;
2d54fe
	hppa-next)
2d54fe
		os=-nextstep3
2d54fe
		;;
2d54fe
	hppaosf)
2d54fe
		basic_machine=hppa1.1-hp
2d54fe
		os=-osf
2d54fe
		;;
2d54fe
	hppro)
2d54fe
		basic_machine=hppa1.1-hp
2d54fe
		os=-proelf
2d54fe
		;;
2d54fe
	i370-ibm* | ibm*)
2d54fe
		basic_machine=i370-ibm
2d54fe
		;;
2d54fe
	i*86v32)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2d54fe
		os=-sysv32
2d54fe
		;;
2d54fe
	i*86v4*)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	i*86v)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	i*86sol2)
2d54fe
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2d54fe
		os=-solaris2
2d54fe
		;;
2d54fe
	i386mach)
2d54fe
		basic_machine=i386-mach
2d54fe
		os=-mach
2d54fe
		;;
2d54fe
	i386-vsta | vsta)
2d54fe
		basic_machine=i386-unknown
2d54fe
		os=-vsta
2d54fe
		;;
2d54fe
	iris | iris4d)
2d54fe
		basic_machine=mips-sgi
2d54fe
		case $os in
2d54fe
		    -irix*)
2d54fe
			;;
2d54fe
		    *)
2d54fe
			os=-irix4
2d54fe
			;;
2d54fe
		esac
2d54fe
		;;
2d54fe
	isi68 | isi)
2d54fe
		basic_machine=m68k-isi
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	m68knommu)
2d54fe
		basic_machine=m68k-unknown
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	m68knommu-*)
2d54fe
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	m88k-omron*)
2d54fe
		basic_machine=m88k-omron
2d54fe
		;;
2d54fe
	magnum | m3230)
2d54fe
		basic_machine=mips-mips
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	merlin)
2d54fe
		basic_machine=ns32k-utek
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	microblaze*)
2d54fe
		basic_machine=microblaze-xilinx
2d54fe
		;;
2d54fe
	mingw64)
2d54fe
		basic_machine=x86_64-pc
2d54fe
		os=-mingw64
2d54fe
		;;
2d54fe
	mingw32)
2d54fe
		basic_machine=i386-pc
2d54fe
		os=-mingw32
2d54fe
		;;
2d54fe
	mingw32ce)
2d54fe
		basic_machine=arm-unknown
2d54fe
		os=-mingw32ce
2d54fe
		;;
2d54fe
	miniframe)
2d54fe
		basic_machine=m68000-convergent
2d54fe
		;;
2d54fe
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2d54fe
		basic_machine=m68k-atari
2d54fe
		os=-mint
2d54fe
		;;
2d54fe
	mips3*-*)
2d54fe
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2d54fe
		;;
2d54fe
	mips3*)
2d54fe
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2d54fe
		;;
2d54fe
	monitor)
2d54fe
		basic_machine=m68k-rom68k
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	morphos)
2d54fe
		basic_machine=powerpc-unknown
2d54fe
		os=-morphos
2d54fe
		;;
2d54fe
	msdos)
2d54fe
		basic_machine=i386-pc
2d54fe
		os=-msdos
2d54fe
		;;
2d54fe
	ms1-*)
2d54fe
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2d54fe
		;;
2d54fe
	msys)
2d54fe
		basic_machine=i386-pc
2d54fe
		os=-msys
2d54fe
		;;
2d54fe
	mvs)
2d54fe
		basic_machine=i370-ibm
2d54fe
		os=-mvs
2d54fe
		;;
2d54fe
	nacl)
2d54fe
		basic_machine=le32-unknown
2d54fe
		os=-nacl
2d54fe
		;;
2d54fe
	ncr3000)
2d54fe
		basic_machine=i486-ncr
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	netbsd386)
2d54fe
		basic_machine=i386-unknown
2d54fe
		os=-netbsd
2d54fe
		;;
2d54fe
	netwinder)
2d54fe
		basic_machine=armv4l-rebel
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	news | news700 | news800 | news900)
2d54fe
		basic_machine=m68k-sony
2d54fe
		os=-newsos
2d54fe
		;;
2d54fe
	news1000)
2d54fe
		basic_machine=m68030-sony
2d54fe
		os=-newsos
2d54fe
		;;
2d54fe
	news-3600 | risc-news)
2d54fe
		basic_machine=mips-sony
2d54fe
		os=-newsos
2d54fe
		;;
2d54fe
	necv70)
2d54fe
		basic_machine=v70-nec
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	next | m*-next )
2d54fe
		basic_machine=m68k-next
2d54fe
		case $os in
2d54fe
		    -nextstep* )
2d54fe
			;;
2d54fe
		    -ns2*)
2d54fe
		      os=-nextstep2
2d54fe
			;;
2d54fe
		    *)
2d54fe
		      os=-nextstep3
2d54fe
			;;
2d54fe
		esac
2d54fe
		;;
2d54fe
	nh3000)
2d54fe
		basic_machine=m68k-harris
2d54fe
		os=-cxux
2d54fe
		;;
2d54fe
	nh[45]000)
2d54fe
		basic_machine=m88k-harris
2d54fe
		os=-cxux
2d54fe
		;;
2d54fe
	nindy960)
2d54fe
		basic_machine=i960-intel
2d54fe
		os=-nindy
2d54fe
		;;
2d54fe
	mon960)
2d54fe
		basic_machine=i960-intel
2d54fe
		os=-mon960
2d54fe
		;;
2d54fe
	nonstopux)
2d54fe
		basic_machine=mips-compaq
2d54fe
		os=-nonstopux
2d54fe
		;;
2d54fe
	np1)
2d54fe
		basic_machine=np1-gould
2d54fe
		;;
2d54fe
	neo-tandem)
2d54fe
		basic_machine=neo-tandem
2d54fe
		;;
2d54fe
	nse-tandem)
2d54fe
		basic_machine=nse-tandem
2d54fe
		;;
2d54fe
	nsr-tandem)
2d54fe
		basic_machine=nsr-tandem
2d54fe
		;;
2d54fe
	op50n-* | op60c-*)
2d54fe
		basic_machine=hppa1.1-oki
2d54fe
		os=-proelf
2d54fe
		;;
2d54fe
	openrisc | openrisc-*)
2d54fe
		basic_machine=or32-unknown
2d54fe
		;;
2d54fe
	os400)
2d54fe
		basic_machine=powerpc-ibm
2d54fe
		os=-os400
2d54fe
		;;
2d54fe
	OSE68000 | ose68000)
2d54fe
		basic_machine=m68000-ericsson
2d54fe
		os=-ose
2d54fe
		;;
2d54fe
	os68k)
2d54fe
		basic_machine=m68k-none
2d54fe
		os=-os68k
2d54fe
		;;
2d54fe
	pa-hitachi)
2d54fe
		basic_machine=hppa1.1-hitachi
2d54fe
		os=-hiuxwe2
2d54fe
		;;
2d54fe
	paragon)
2d54fe
		basic_machine=i860-intel
2d54fe
		os=-osf
2d54fe
		;;
2d54fe
	parisc)
2d54fe
		basic_machine=hppa-unknown
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	parisc-*)
2d54fe
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	pbd)
2d54fe
		basic_machine=sparc-tti
2d54fe
		;;
2d54fe
	pbb)
2d54fe
		basic_machine=m68k-tti
2d54fe
		;;
2d54fe
	pc532 | pc532-*)
2d54fe
		basic_machine=ns32k-pc532
2d54fe
		;;
2d54fe
	pc98)
2d54fe
		basic_machine=i386-pc
2d54fe
		;;
2d54fe
	pc98-*)
2d54fe
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	pentium | p5 | k5 | k6 | nexgen | viac3)
2d54fe
		basic_machine=i586-pc
2d54fe
		;;
2d54fe
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
2d54fe
		basic_machine=i686-pc
2d54fe
		;;
2d54fe
	pentiumii | pentium2 | pentiumiii | pentium3)
2d54fe
		basic_machine=i686-pc
2d54fe
		;;
2d54fe
	pentium4)
2d54fe
		basic_machine=i786-pc
2d54fe
		;;
2d54fe
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2d54fe
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
2d54fe
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2d54fe
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	pentium4-*)
2d54fe
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	pn)
2d54fe
		basic_machine=pn-gould
2d54fe
		;;
2d54fe
	power)	basic_machine=power-ibm
2d54fe
		;;
2d54fe
	ppc | ppcbe)	basic_machine=powerpc-unknown
2d54fe
		;;
2d54fe
	ppc-* | ppcbe-*)
2d54fe
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	ppcle | powerpclittle | ppc-le | powerpc-little)
2d54fe
		basic_machine=powerpcle-unknown
2d54fe
		;;
2d54fe
	ppcle-* | powerpclittle-*)
2d54fe
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	ppc64)	basic_machine=powerpc64-unknown
2d54fe
		;;
2d54fe
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2d54fe
		basic_machine=powerpc64le-unknown
2d54fe
		;;
2d54fe
	ppc64le-* | powerpc64little-*)
2d54fe
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	ps2)
2d54fe
		basic_machine=i386-ibm
2d54fe
		;;
2d54fe
	pw32)
2d54fe
		basic_machine=i586-unknown
2d54fe
		os=-pw32
2d54fe
		;;
2d54fe
	rdos | rdos64)
2d54fe
		basic_machine=x86_64-pc
2d54fe
		os=-rdos
2d54fe
		;;
2d54fe
	rdos32)
2d54fe
		basic_machine=i386-pc
2d54fe
		os=-rdos
2d54fe
		;;
2d54fe
	rom68k)
2d54fe
		basic_machine=m68k-rom68k
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	rm[46]00)
2d54fe
		basic_machine=mips-siemens
2d54fe
		;;
2d54fe
	rtpc | rtpc-*)
2d54fe
		basic_machine=romp-ibm
2d54fe
		;;
2d54fe
	s390 | s390-*)
2d54fe
		basic_machine=s390-ibm
2d54fe
		;;
2d54fe
	s390x | s390x-*)
2d54fe
		basic_machine=s390x-ibm
2d54fe
		;;
2d54fe
	sa29200)
2d54fe
		basic_machine=a29k-amd
2d54fe
		os=-udi
2d54fe
		;;
2d54fe
	sb1)
2d54fe
		basic_machine=mipsisa64sb1-unknown
2d54fe
		;;
2d54fe
	sb1el)
2d54fe
		basic_machine=mipsisa64sb1el-unknown
2d54fe
		;;
2d54fe
	sde)
2d54fe
		basic_machine=mipsisa32-sde
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	sei)
2d54fe
		basic_machine=mips-sei
2d54fe
		os=-seiux
2d54fe
		;;
2d54fe
	sequent)
2d54fe
		basic_machine=i386-sequent
2d54fe
		;;
2d54fe
	sh)
2d54fe
		basic_machine=sh-hitachi
2d54fe
		os=-hms
2d54fe
		;;
2d54fe
	sh5el)
2d54fe
		basic_machine=sh5le-unknown
2d54fe
		;;
2d54fe
	sh64)
2d54fe
		basic_machine=sh64-unknown
2d54fe
		;;
2d54fe
	sparclite-wrs | simso-wrs)
2d54fe
		basic_machine=sparclite-wrs
2d54fe
		os=-vxworks
2d54fe
		;;
2d54fe
	sps7)
2d54fe
		basic_machine=m68k-bull
2d54fe
		os=-sysv2
2d54fe
		;;
2d54fe
	spur)
2d54fe
		basic_machine=spur-unknown
2d54fe
		;;
2d54fe
	st2000)
2d54fe
		basic_machine=m68k-tandem
2d54fe
		;;
2d54fe
	stratus)
2d54fe
		basic_machine=i860-stratus
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	strongarm-* | thumb-*)
2d54fe
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
2d54fe
		;;
2d54fe
	sun2)
2d54fe
		basic_machine=m68000-sun
2d54fe
		;;
2d54fe
	sun2os3)
2d54fe
		basic_machine=m68000-sun
2d54fe
		os=-sunos3
2d54fe
		;;
2d54fe
	sun2os4)
2d54fe
		basic_machine=m68000-sun
2d54fe
		os=-sunos4
2d54fe
		;;
2d54fe
	sun3os3)
2d54fe
		basic_machine=m68k-sun
2d54fe
		os=-sunos3
2d54fe
		;;
2d54fe
	sun3os4)
2d54fe
		basic_machine=m68k-sun
2d54fe
		os=-sunos4
2d54fe
		;;
2d54fe
	sun4os3)
2d54fe
		basic_machine=sparc-sun
2d54fe
		os=-sunos3
2d54fe
		;;
2d54fe
	sun4os4)
2d54fe
		basic_machine=sparc-sun
2d54fe
		os=-sunos4
2d54fe
		;;
2d54fe
	sun4sol2)
2d54fe
		basic_machine=sparc-sun
2d54fe
		os=-solaris2
2d54fe
		;;
2d54fe
	sun3 | sun3-*)
2d54fe
		basic_machine=m68k-sun
2d54fe
		;;
2d54fe
	sun4)
2d54fe
		basic_machine=sparc-sun
2d54fe
		;;
2d54fe
	sun386 | sun386i | roadrunner)
2d54fe
		basic_machine=i386-sun
2d54fe
		;;
2d54fe
	sv1)
2d54fe
		basic_machine=sv1-cray
2d54fe
		os=-unicos
2d54fe
		;;
2d54fe
	symmetry)
2d54fe
		basic_machine=i386-sequent
2d54fe
		os=-dynix
2d54fe
		;;
2d54fe
	t3e)
2d54fe
		basic_machine=alphaev5-cray
2d54fe
		os=-unicos
2d54fe
		;;
2d54fe
	t90)
2d54fe
		basic_machine=t90-cray
2d54fe
		os=-unicos
2d54fe
		;;
2d54fe
	tile*)
2d54fe
		basic_machine=$basic_machine-unknown
2d54fe
		os=-linux-gnu
2d54fe
		;;
2d54fe
	tx39)
2d54fe
		basic_machine=mipstx39-unknown
2d54fe
		;;
2d54fe
	tx39el)
2d54fe
		basic_machine=mipstx39el-unknown
2d54fe
		;;
2d54fe
	toad1)
2d54fe
		basic_machine=pdp10-xkl
2d54fe
		os=-tops20
2d54fe
		;;
2d54fe
	tower | tower-32)
2d54fe
		basic_machine=m68k-ncr
2d54fe
		;;
2d54fe
	tpf)
2d54fe
		basic_machine=s390x-ibm
2d54fe
		os=-tpf
2d54fe
		;;
2d54fe
	udi29k)
2d54fe
		basic_machine=a29k-amd
2d54fe
		os=-udi
2d54fe
		;;
2d54fe
	ultra3)
2d54fe
		basic_machine=a29k-nyu
2d54fe
		os=-sym1
2d54fe
		;;
2d54fe
	v810 | necv810)
2d54fe
		basic_machine=v810-nec
2d54fe
		os=-none
2d54fe
		;;
2d54fe
	vaxv)
2d54fe
		basic_machine=vax-dec
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	vms)
2d54fe
		basic_machine=vax-dec
2d54fe
		os=-vms
2d54fe
		;;
2d54fe
	vpp*|vx|vx-*)
2d54fe
		basic_machine=f301-fujitsu
2d54fe
		;;
2d54fe
	vxworks960)
2d54fe
		basic_machine=i960-wrs
2d54fe
		os=-vxworks
2d54fe
		;;
2d54fe
	vxworks68)
2d54fe
		basic_machine=m68k-wrs
2d54fe
		os=-vxworks
2d54fe
		;;
2d54fe
	vxworks29k)
2d54fe
		basic_machine=a29k-wrs
2d54fe
		os=-vxworks
2d54fe
		;;
2d54fe
	w65*)
2d54fe
		basic_machine=w65-wdc
2d54fe
		os=-none
2d54fe
		;;
2d54fe
	w89k-*)
2d54fe
		basic_machine=hppa1.1-winbond
2d54fe
		os=-proelf
2d54fe
		;;
2d54fe
	xbox)
2d54fe
		basic_machine=i686-pc
2d54fe
		os=-mingw32
2d54fe
		;;
2d54fe
	xps | xps100)
2d54fe
		basic_machine=xps100-honeywell
2d54fe
		;;
2d54fe
	xscale-* | xscalee[bl]-*)
2d54fe
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
2d54fe
		;;
2d54fe
	ymp)
2d54fe
		basic_machine=ymp-cray
2d54fe
		os=-unicos
2d54fe
		;;
2d54fe
	z8k-*-coff)
2d54fe
		basic_machine=z8k-unknown
2d54fe
		os=-sim
2d54fe
		;;
2d54fe
	z80-*-coff)
2d54fe
		basic_machine=z80-unknown
2d54fe
		os=-sim
2d54fe
		;;
2d54fe
	none)
2d54fe
		basic_machine=none-none
2d54fe
		os=-none
2d54fe
		;;
2d54fe
2d54fe
# Here we handle the default manufacturer of certain CPU types.  It is in
2d54fe
# some cases the only manufacturer, in others, it is the most popular.
2d54fe
	w89k)
2d54fe
		basic_machine=hppa1.1-winbond
2d54fe
		;;
2d54fe
	op50n)
2d54fe
		basic_machine=hppa1.1-oki
2d54fe
		;;
2d54fe
	op60c)
2d54fe
		basic_machine=hppa1.1-oki
2d54fe
		;;
2d54fe
	romp)
2d54fe
		basic_machine=romp-ibm
2d54fe
		;;
2d54fe
	mmix)
2d54fe
		basic_machine=mmix-knuth
2d54fe
		;;
2d54fe
	rs6000)
2d54fe
		basic_machine=rs6000-ibm
2d54fe
		;;
2d54fe
	vax)
2d54fe
		basic_machine=vax-dec
2d54fe
		;;
2d54fe
	pdp10)
2d54fe
		# there are many clones, so DEC is not a safe bet
2d54fe
		basic_machine=pdp10-unknown
2d54fe
		;;
2d54fe
	pdp11)
2d54fe
		basic_machine=pdp11-dec
2d54fe
		;;
2d54fe
	we32k)
2d54fe
		basic_machine=we32k-att
2d54fe
		;;
2d54fe
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
2d54fe
		basic_machine=sh-unknown
2d54fe
		;;
2d54fe
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2d54fe
		basic_machine=sparc-sun
2d54fe
		;;
2d54fe
	cydra)
2d54fe
		basic_machine=cydra-cydrome
2d54fe
		;;
2d54fe
	orion)
2d54fe
		basic_machine=orion-highlevel
2d54fe
		;;
2d54fe
	orion105)
2d54fe
		basic_machine=clipper-highlevel
2d54fe
		;;
2d54fe
	mac | mpw | mac-mpw)
2d54fe
		basic_machine=m68k-apple
2d54fe
		;;
2d54fe
	pmac | pmac-mpw)
2d54fe
		basic_machine=powerpc-apple
2d54fe
		;;
2d54fe
	*-unknown)
2d54fe
		# Make sure to match an already-canonicalized machine name.
2d54fe
		;;
2d54fe
	*)
2d54fe
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2d54fe
		exit 1
2d54fe
		;;
2d54fe
esac
2d54fe
2d54fe
# Here we canonicalize certain aliases for manufacturers.
2d54fe
case $basic_machine in
2d54fe
	*-digital*)
2d54fe
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2d54fe
		;;
2d54fe
	*-commodore*)
2d54fe
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2d54fe
		;;
2d54fe
	*)
2d54fe
		;;
2d54fe
esac
2d54fe
2d54fe
# Decode manufacturer-specific aliases for certain operating systems.
2d54fe
2d54fe
if [ x"$os" != x"" ]
2d54fe
then
2d54fe
case $os in
2d54fe
	# First match some system type aliases
2d54fe
	# that might get confused with valid system types.
2d54fe
	# -solaris* is a basic system type, with this one exception.
2d54fe
	-auroraux)
2d54fe
		os=-auroraux
2d54fe
		;;
2d54fe
	-solaris1 | -solaris1.*)
2d54fe
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
2d54fe
		;;
2d54fe
	-solaris)
2d54fe
		os=-solaris2
2d54fe
		;;
2d54fe
	-svr4*)
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	-unixware*)
2d54fe
		os=-sysv4.2uw
2d54fe
		;;
2d54fe
	-gnu/linux*)
2d54fe
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2d54fe
		;;
2d54fe
	# First accept the basic system types.
2d54fe
	# The portable systems comes first.
2d54fe
	# Each alternative MUST END IN A *, to match a version number.
2d54fe
	# -sysv* is not here because it comes later, after sysvr4.
2d54fe
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2d54fe
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
2d54fe
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
2d54fe
	      | -sym* | -kopensolaris* | -plan9* \
2d54fe
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2d54fe
	      | -aos* | -aros* \
2d54fe
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2d54fe
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2d54fe
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2d54fe
	      | -bitrig* | -openbsd* | -solidbsd* \
2d54fe
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2d54fe
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2d54fe
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2d54fe
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2d54fe
	      | -chorusos* | -chorusrdb* | -cegcc* \
2d54fe
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2d54fe
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
2d54fe
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
2d54fe
	      | -uxpv* | -beos* | -mpeix* | -udk* \
2d54fe
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2d54fe
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2d54fe
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2d54fe
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2d54fe
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2d54fe
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2d54fe
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
2d54fe
	# Remember, each alternative MUST END IN *, to match a version number.
2d54fe
		;;
2d54fe
	-qnx*)
2d54fe
		case $basic_machine in
2d54fe
		    x86-* | i*86-*)
2d54fe
			;;
2d54fe
		    *)
2d54fe
			os=-nto$os
2d54fe
			;;
2d54fe
		esac
2d54fe
		;;
2d54fe
	-nto-qnx*)
2d54fe
		;;
2d54fe
	-nto*)
2d54fe
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
2d54fe
		;;
2d54fe
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2d54fe
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2d54fe
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2d54fe
		;;
2d54fe
	-mac*)
2d54fe
		os=`echo $os | sed -e 's|mac|macos|'`
2d54fe
		;;
2d54fe
	-linux-dietlibc)
2d54fe
		os=-linux-dietlibc
2d54fe
		;;
2d54fe
	-linux*)
2d54fe
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
2d54fe
		;;
2d54fe
	-sunos5*)
2d54fe
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
2d54fe
		;;
2d54fe
	-sunos6*)
2d54fe
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
2d54fe
		;;
2d54fe
	-opened*)
2d54fe
		os=-openedition
2d54fe
		;;
2d54fe
	-os400*)
2d54fe
		os=-os400
2d54fe
		;;
2d54fe
	-wince*)
2d54fe
		os=-wince
2d54fe
		;;
2d54fe
	-osfrose*)
2d54fe
		os=-osfrose
2d54fe
		;;
2d54fe
	-osf*)
2d54fe
		os=-osf
2d54fe
		;;
2d54fe
	-utek*)
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	-dynix*)
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	-acis*)
2d54fe
		os=-aos
2d54fe
		;;
2d54fe
	-atheos*)
2d54fe
		os=-atheos
2d54fe
		;;
2d54fe
	-syllable*)
2d54fe
		os=-syllable
2d54fe
		;;
2d54fe
	-386bsd)
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	-ctix* | -uts*)
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	-nova*)
2d54fe
		os=-rtmk-nova
2d54fe
		;;
2d54fe
	-ns2 )
2d54fe
		os=-nextstep2
2d54fe
		;;
2d54fe
	-nsk*)
2d54fe
		os=-nsk
2d54fe
		;;
2d54fe
	# Preserve the version number of sinix5.
2d54fe
	-sinix5.*)
2d54fe
		os=`echo $os | sed -e 's|sinix|sysv|'`
2d54fe
		;;
2d54fe
	-sinix*)
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	-tpf*)
2d54fe
		os=-tpf
2d54fe
		;;
2d54fe
	-triton*)
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	-oss*)
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	-svr4)
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	-svr3)
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	-sysvr4)
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	# This must come after -sysvr4.
2d54fe
	-sysv*)
2d54fe
		;;
2d54fe
	-ose*)
2d54fe
		os=-ose
2d54fe
		;;
2d54fe
	-es1800*)
2d54fe
		os=-ose
2d54fe
		;;
2d54fe
	-xenix)
2d54fe
		os=-xenix
2d54fe
		;;
2d54fe
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2d54fe
		os=-mint
2d54fe
		;;
2d54fe
	-aros*)
2d54fe
		os=-aros
2d54fe
		;;
2d54fe
	-zvmoe)
2d54fe
		os=-zvmoe
2d54fe
		;;
2d54fe
	-dicos*)
2d54fe
		os=-dicos
2d54fe
		;;
2d54fe
	-nacl*)
2d54fe
		;;
2d54fe
	-none)
2d54fe
		;;
2d54fe
	*)
2d54fe
		# Get rid of the `-' at the beginning of $os.
2d54fe
		os=`echo $os | sed 's/[^-]*-//'`
2d54fe
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
2d54fe
		exit 1
2d54fe
		;;
2d54fe
esac
2d54fe
else
2d54fe
2d54fe
# Here we handle the default operating systems that come with various machines.
2d54fe
# The value should be what the vendor currently ships out the door with their
2d54fe
# machine or put another way, the most popular os provided with the machine.
2d54fe
2d54fe
# Note that if you're going to try to match "-MANUFACTURER" here (say,
2d54fe
# "-sun"), then you have to tell the case statement up towards the top
2d54fe
# that MANUFACTURER isn't an operating system.  Otherwise, code above
2d54fe
# will signal an error saying that MANUFACTURER isn't an operating
2d54fe
# system, and we'll never get to this point.
2d54fe
2d54fe
case $basic_machine in
2d54fe
	score-*)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	spu-*)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	*-acorn)
2d54fe
		os=-riscix1.2
2d54fe
		;;
2d54fe
	arm*-rebel)
2d54fe
		os=-linux
2d54fe
		;;
2d54fe
	arm*-semi)
2d54fe
		os=-aout
2d54fe
		;;
2d54fe
	c4x-* | tic4x-*)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	hexagon-*)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	tic54x-*)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	tic55x-*)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	tic6x-*)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	# This must come before the *-dec entry.
2d54fe
	pdp10-*)
2d54fe
		os=-tops20
2d54fe
		;;
2d54fe
	pdp11-*)
2d54fe
		os=-none
2d54fe
		;;
2d54fe
	*-dec | vax-*)
2d54fe
		os=-ultrix4.2
2d54fe
		;;
2d54fe
	m68*-apollo)
2d54fe
		os=-domain
2d54fe
		;;
2d54fe
	i386-sun)
2d54fe
		os=-sunos4.0.2
2d54fe
		;;
2d54fe
	m68000-sun)
2d54fe
		os=-sunos3
2d54fe
		;;
2d54fe
	m68*-cisco)
2d54fe
		os=-aout
2d54fe
		;;
2d54fe
	mep-*)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	mips*-cisco)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	mips*-*)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	or1k-*)
2d54fe
		os=-elf
2d54fe
		;;
2d54fe
	or32-*)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	*-tti)	# must be before sparc entry or we get the wrong os.
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	sparc-* | *-sun)
2d54fe
		os=-sunos4.1.1
2d54fe
		;;
2d54fe
	*-be)
2d54fe
		os=-beos
2d54fe
		;;
2d54fe
	*-haiku)
2d54fe
		os=-haiku
2d54fe
		;;
2d54fe
	*-ibm)
2d54fe
		os=-aix
2d54fe
		;;
2d54fe
	*-knuth)
2d54fe
		os=-mmixware
2d54fe
		;;
2d54fe
	*-wec)
2d54fe
		os=-proelf
2d54fe
		;;
2d54fe
	*-winbond)
2d54fe
		os=-proelf
2d54fe
		;;
2d54fe
	*-oki)
2d54fe
		os=-proelf
2d54fe
		;;
2d54fe
	*-hp)
2d54fe
		os=-hpux
2d54fe
		;;
2d54fe
	*-hitachi)
2d54fe
		os=-hiux
2d54fe
		;;
2d54fe
	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	*-cbm)
2d54fe
		os=-amigaos
2d54fe
		;;
2d54fe
	*-dg)
2d54fe
		os=-dgux
2d54fe
		;;
2d54fe
	*-dolphin)
2d54fe
		os=-sysv3
2d54fe
		;;
2d54fe
	m68k-ccur)
2d54fe
		os=-rtu
2d54fe
		;;
2d54fe
	m88k-omron*)
2d54fe
		os=-luna
2d54fe
		;;
2d54fe
	*-next )
2d54fe
		os=-nextstep
2d54fe
		;;
2d54fe
	*-sequent)
2d54fe
		os=-ptx
2d54fe
		;;
2d54fe
	*-crds)
2d54fe
		os=-unos
2d54fe
		;;
2d54fe
	*-ns)
2d54fe
		os=-genix
2d54fe
		;;
2d54fe
	i370-*)
2d54fe
		os=-mvs
2d54fe
		;;
2d54fe
	*-next)
2d54fe
		os=-nextstep3
2d54fe
		;;
2d54fe
	*-gould)
2d54fe
		os=-sysv
2d54fe
		;;
2d54fe
	*-highlevel)
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	*-encore)
2d54fe
		os=-bsd
2d54fe
		;;
2d54fe
	*-sgi)
2d54fe
		os=-irix
2d54fe
		;;
2d54fe
	*-siemens)
2d54fe
		os=-sysv4
2d54fe
		;;
2d54fe
	*-masscomp)
2d54fe
		os=-rtu
2d54fe
		;;
2d54fe
	f30[01]-fujitsu | f700-fujitsu)
2d54fe
		os=-uxpv
2d54fe
		;;
2d54fe
	*-rom68k)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	*-*bug)
2d54fe
		os=-coff
2d54fe
		;;
2d54fe
	*-apple)
2d54fe
		os=-macos
2d54fe
		;;
2d54fe
	*-atari*)
2d54fe
		os=-mint
2d54fe
		;;
2d54fe
	*)
2d54fe
		os=-none
2d54fe
		;;
2d54fe
esac
2d54fe
fi
2d54fe
2d54fe
# Here we handle the case where we know the os, and the CPU type, but not the
2d54fe
# manufacturer.  We pick the logical manufacturer.
2d54fe
vendor=unknown
2d54fe
case $basic_machine in
2d54fe
	*-unknown)
2d54fe
		case $os in
2d54fe
			-riscix*)
2d54fe
				vendor=acorn
2d54fe
				;;
2d54fe
			-sunos*)
2d54fe
				vendor=sun
2d54fe
				;;
2d54fe
			-cnk*|-aix*)
2d54fe
				vendor=ibm
2d54fe
				;;
2d54fe
			-beos*)
2d54fe
				vendor=be
2d54fe
				;;
2d54fe
			-hpux*)
2d54fe
				vendor=hp
2d54fe
				;;
2d54fe
			-mpeix*)
2d54fe
				vendor=hp
2d54fe
				;;
2d54fe
			-hiux*)
2d54fe
				vendor=hitachi
2d54fe
				;;
2d54fe
			-unos*)
2d54fe
				vendor=crds
2d54fe
				;;
2d54fe
			-dgux*)
2d54fe
				vendor=dg
2d54fe
				;;
2d54fe
			-luna*)
2d54fe
				vendor=omron
2d54fe
				;;
2d54fe
			-genix*)
2d54fe
				vendor=ns
2d54fe
				;;
2d54fe
			-mvs* | -opened*)
2d54fe
				vendor=ibm
2d54fe
				;;
2d54fe
			-os400*)
2d54fe
				vendor=ibm
2d54fe
				;;
2d54fe
			-ptx*)
2d54fe
				vendor=sequent
2d54fe
				;;
2d54fe
			-tpf*)
2d54fe
				vendor=ibm
2d54fe
				;;
2d54fe
			-vxsim* | -vxworks* | -windiss*)
2d54fe
				vendor=wrs
2d54fe
				;;
2d54fe
			-aux*)
2d54fe
				vendor=apple
2d54fe
				;;
2d54fe
			-hms*)
2d54fe
				vendor=hitachi
2d54fe
				;;
2d54fe
			-mpw* | -macos*)
2d54fe
				vendor=apple
2d54fe
				;;
2d54fe
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2d54fe
				vendor=atari
2d54fe
				;;
2d54fe
			-vos*)
2d54fe
				vendor=stratus
2d54fe
				;;
2d54fe
		esac
2d54fe
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
2d54fe
		;;
2d54fe
esac
2d54fe
2d54fe
echo $basic_machine$os
2d54fe
exit
2d54fe
2d54fe
# Local variables:
2d54fe
# eval: (add-hook 'write-file-hooks 'time-stamp)
2d54fe
# time-stamp-start: "timestamp='"
2d54fe
# time-stamp-format: "%:y-%02m-%02d"
2d54fe
# time-stamp-end: "'"
2d54fe
# End: