Blame config.sub

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