config.sub revision 5c526acb82c882e41b655c31f5fa4425c87b671c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#! /bin/sh
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Configuration validation subroutine script.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Free Software Foundation, Inc.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstimestamp='2001-09-07'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is (in principle) common to ALL GNU software.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The presence of a machine in this file suggests that SOME GNU software
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# can handle that machine. It does not imply ALL GNU software can.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is free software; you can redistribute it and/or modify
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# it under the terms of the GNU General Public License as published by
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the Free Software Foundation; either version 2 of the License, or
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# (at your option) any later version.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This program is distributed in the hope that it will be useful,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# but WITHOUT ANY WARRANTY; without even the implied warranty of
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# GNU General Public License for more details.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# You should have received a copy of the GNU General Public License
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# along with this program; if not, write to the Free Software
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Foundation, Inc., 59 Temple Place - Suite 330,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Boston, MA 02111-1307, USA.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# As a special exception to the GNU General Public License, if you
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# distribute this file as part of a program that contains a
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# configuration script generated by Autoconf, you may include it under
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the same distribution terms that you use for the rest of that program.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Please send patches to <config-patches@gnu.org>.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Configuration subroutine to validate and canonicalize a configuration type.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Supply the specified configuration type as an argument.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# If it is invalid, we print an error message on stderr and exit with code 1.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Otherwise, we print the canonical config type on stdout and succeed.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is supposed to be the same for all GNU packages
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# and recognize all the CPU types, system types and aliases
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# that are meaningful with *any* GNU software.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Each package is responsible for reporting which valid configurations
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# it does not support. The user should be able to distinguish
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# a failure to support a valid configuration from a meaningless
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# configuration.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The goal of this file is to map all the various variations of a given
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# machine specification into a single specification in the form:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# or in some cases, the newer four-part form:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# It is wrong to echo any other type of specification.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsme=`echo "$0" | sed -e 's,.*/,,'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsusage="\
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsUsage: $0 [OPTION] CPU-MFR-OPSYS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews $0 [OPTION] ALIAS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCanonicalize a configuration name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsOperation modes:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -h, --help print this help, then exit
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -t, --time-stamp print date of last modification, then exit
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -v, --version print version number, then exit
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsReport bugs and patches to <config-patches@gnu.org>."
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsversion="\
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsGNU config.sub ($timestamp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsFree Software Foundation, Inc.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsThis is free software; see the source for copying conditions. There is NO
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewswarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshelp="
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsTry \`$me --help' for more information."
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Parse command line
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewswhile test $# -gt 0 ; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $1 in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --time-stamp | --time* | -t )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$timestamp" ; exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --version | -v )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$version" ; exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --help | --h* | -h )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$usage"; exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -- ) # Stop option processing
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shift; break ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - ) # Use stdin as input.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -* )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$me: invalid option $1$help"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 1 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *local*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # First pass through any local machine types.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 0;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews * )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $# in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 0) echo "$me: missing argument$help" >&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 1;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 1) ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) echo "$me: too many arguments$help" >&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 1;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we must recognize all the valid KERNEL-OS combinations.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $maybe_os in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-$maybe_os
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed 's/-[^-]*$//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if [ $basic_machine != $1 ]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews then os=`echo $1 | sed 's/.*-/-/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else os=; fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### Let's recognize common machines as not being operating systems so
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### that things like config.sub decstation-3100 work. We also
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### recognize some manufacturers as not being operating systems, so we
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### can provide default operating systems below.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $os in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sun*os*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Prevent following clause from handling this invalid input.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -apple | -axis)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sim | -cisco | -oki | -wec | -winbond)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -scout)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -wrs)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vxworks
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -chorusos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-chorusos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -chorusrdb)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-chorusrdb
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -hiux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hiuxwe2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sco5)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sco3.2v5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sco4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sco3.2v4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sco3.2.[4-9]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sco3.2v[4-9]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Don't forget version if it is 3.2v4 or newer.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sco*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sco3.2v2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -udk*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -isc)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-isc2.2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -clix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=clipper-intergraph
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -isc*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -lynx*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-lynxos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -ptx*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -windowsnt*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's/windowsnt/winnt/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -psos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-psos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mint | -mint[0-9]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-atari
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mint
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Decode aliases for certain CPU-COMPANY combinations.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $basic_machine in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Recognize the basic CPU types without company name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Some are omitted here because they have special meanings below.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 1750a | 580 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | a29k \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | c4x | clipper \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | d10v | d30v | dsp16xx \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | fr30 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | i370 | i860 | i960 | ia64 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | m32r | m68000 | m68k | m88k | mcore \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64vr4100 | mips64vr4100el | mips64vr4300 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64vr4300el | mips64vr5000 | mips64vr5000el \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mipsisa32 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mn10200 | mn10300 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | ns16k | ns32k \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | openrisc \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | pdp10 | pdp11 | pj | pjl \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | pyramid \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | s390 | s390x \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sh | sh[34] | sh[34]eb | shbe | shle \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | stormy16 | strongarm \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | tahoe | thumb | tic80 | tron \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | v850 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | we32k \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | x86 | xscale \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | z8k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$basic_machine-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m6811 | m68hc11 | m6812 | m68hc12)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Motorola 68HC11/12.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$basic_machine-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # We use `pc' rather than `unknown'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # because (1) that's what they normally are, and
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # (2) the word "unknown" tends to confuse beginning users.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i*86 | x86_64)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=$basic_machine-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Object if more than one company name word.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-*-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Recognize the basic CPU types with company name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 580-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | a29k-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | alphapca5[67]-* | arc-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | arm-* | armbe-* | armle-* | armv*-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | bs2000-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | c[123]* | c30-* | [cjt]90-* | c54x-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | clipper-* | cray2-* | cydra-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | d10v-* | d30v-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | elxsi-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | f30[01]-* | f700-* | fr30-* | fx80-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | h8300-* | h8500-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | i*86-* | i860-* | i960-* | ia64-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | m32r-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | m88110-* | m88k-* | mcore-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | none-* | np1-* | ns16k-* | ns32k-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | orion-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | pyramid-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | romp-* | rs6000-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | s390-* | s390x-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | v850-* | vax-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | we32k-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | ymp-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | z8k-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Recognize the various machine names and aliases which stand
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # for a CPU type and a company and sometimes even an OS.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 386bsd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-att
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 3b*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=we32k-att
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews a29khif)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-amd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-udi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews adobe68k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68010-adobe
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-scout
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews alliant | fx80)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=fx80-alliant
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews altos | altos3068)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-altos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews am29k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews amdahl)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=580-amdahl
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews amiga | amiga-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews amigaos | amigados)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-amigaos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews amigaunix | amix)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews apollo68)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-apollo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews apollo68bsd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-apollo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews aux)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-apple
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-aux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews balance)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=ns32k-sequent
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-dynix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews convex-c1)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=c1-convex
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews convex-c2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=c2-convex
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews convex-c32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=c32-convex
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews convex-c34)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=c34-convex
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews convex-c38)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=c38-convex
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cray | ymp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=ymp-cray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unicos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cray2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=cray2-cray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unicos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [cjt]90)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=${basic_machine}-cray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unicos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews crds | unos)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-crds
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cris | cris-* | etrax*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=cris-axis
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews da30 | da30-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-da30
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-dec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews delta | 3300 | motorola-3300 | motorola-delta \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | 3300-motorola | delta-motorola)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-motorola
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews delta88)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m88k-motorola
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews dpx20 | dpx20-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=rs6000-bull
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bosx
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews dpx2* | dpx2*-bull)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-bull
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ebmon29k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-amd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ebmon
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews elxsi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=elxsi-elxsi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews encore | umax | mmax)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=ns32k-encore
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews es1800 | OSE68k | ose68k | ose | OSE)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-ericsson
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ose
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fx2800)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i860-alliant
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews genix)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=ns32k-ns
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews gmicro)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=tron-gmicro
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews go32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-go32
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews h3050r* | hiux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hiuxwe2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews h8300hms)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=h8300-hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hms
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews h8300xray)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=h8300-hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-xray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews h8500hms)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=h8500-hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hms
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews harris)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m88k-harris
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp300-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp300bsd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp300hpux)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hpux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp3k9[0-9][0-9] | hp9[0-9][0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k2[0-9][0-9] | hp9k31[0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k3[2-9][0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k6[0-9][0-9] | hp6[0-9][0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k7[0-79][0-9] | hp7[0-79][0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k78[0-9] | hp78[0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # FIXME: really hppa2.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # FIXME: really hppa2.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k8[0-9][13679] | hp8[0-9][13679])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k8[0-9][0-9] | hp8[0-9][0-9])
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hppa-next)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nextstep3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hppaosf)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-osf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hppro)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-proelf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i370-ibm* | ibm*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i370-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# I'm not sure what "Sysv32" means. Should this be sysv3.2?
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i*86v32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv32
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i*86v4*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i*86v)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i*86sol2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-solaris2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i386mach)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-mach
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mach
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i386-vsta | vsta)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vsta
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iris | iris4d)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-sgi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $os in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -irix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-irix4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews isi68 | isi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-isi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m88k-omron*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m88k-omron
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews magnum | m3230)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-mips
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews merlin)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=ns32k-utek
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mingw32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mingw32
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews miniframe)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-convergent
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-atari
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mint
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mipsel*-linux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mipsel-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-linux-gnu
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mips*-linux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-linux-gnu
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mips3*-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mips3*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mmix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mmix-knuth
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mmixware
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews monitor)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-rom68k
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-coff
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews msdos)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-msdos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mvs)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i370-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mvs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ncr3000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i486-ncr
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews netbsd386)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-netbsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews netwinder)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=armv4l-rebel
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-linux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews news | news700 | news800 | news900)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-sony
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-newsos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews news1000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68030-sony
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-newsos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews news-3600 | risc-news)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-sony
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-newsos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews necv70)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=v70-nec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews next | m*-next )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-next
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $os in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -nextstep* )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -ns2*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nextstep2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nextstep3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nh3000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-harris
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-cxux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nh[45]000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m88k-harris
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-cxux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nindy960)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i960-intel
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nindy
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mon960)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i960-intel
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mon960
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nonstopux)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-compaq
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nonstopux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews np1)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=np1-gould
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nsr-tandem)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=nsr-tandem
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews op50n-* | op60c-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-oki
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-proelf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews OSE68000 | ose68000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-ericsson
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ose
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os68k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-os68k
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pa-hitachi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hiuxwe2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews paragon)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i860-intel
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-osf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pbd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparc-tti
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pbb)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-tti
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pc532 | pc532-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=ns32k-pc532
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pentium | p5 | k5 | k6 | nexgen)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i586-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pentiumpro | p6 | 6x86 | athlon)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i686-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pentiumii | pentium2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i686-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pentium-* | p5-* | k5-* | k6-* | nexgen-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pentiumpro-* | p6-* | 6x86-* | athlon-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pentiumii-* | pentium2-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pn)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=pn-gould
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews power) basic_machine=power-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc) basic_machine=powerpc-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppcle | powerpclittle | ppc-le | powerpc-little)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpcle-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppcle-* | powerpclittle-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc64) basic_machine=powerpc64-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc64le | powerpc64little | ppc64-le | powerpc64-little)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpc64le-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc64le-* | powerpc64little-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ps2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pw32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i586-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-pw32
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rom68k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-rom68k
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-coff
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm[46]00)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-siemens
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rtpc | rtpc-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=romp-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sa29200)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-amd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-udi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sequent)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-sequent
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sh)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sh-hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hms
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sparclite-wrs)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparclite-wrs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vxworks
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sps7)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-bull
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews spur)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=spur-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews st2000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-tandem
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews stratus)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i860-stratus
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun2os3)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun2os4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68000-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun3os3)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun3os4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun4os3)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparc-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun4os4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparc-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun4sol2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparc-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-solaris2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun3 | sun3-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparc-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sun386 | sun386i | roadrunner)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sv1)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sv1-cray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unicos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews symmetry)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-sequent
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-dynix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews t3e)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=t3e-cray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unicos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tic54x | c54x*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=tic54x-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-coff
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tx39)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mipstx39-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tx39el)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mipstx39el-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tower | tower-32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-ncr
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews udi29k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-amd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-udi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ultra3)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-nyu
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sym1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews v810 | necv810)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=v810-nec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vaxv)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=vax-dec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vms)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=vax-dec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vms
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vpp*|vx|vx-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=f301-fujitsu
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vxworks960)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i960-wrs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vxworks
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vxworks68)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-wrs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vxworks
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vxworks29k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=a29k-wrs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-vxworks
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews w65*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=w65-wdc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews w89k-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-winbond
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-proelf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews windows32)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i386-pc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-windows32-msvcrt
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews xmp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=xmp-cray
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unicos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews xps | xps100)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=xps100-honeywell
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews z8k-*-coff)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=z8k-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sim
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews none)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=none-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we handle the default manufacturer of certain CPU types. It is in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# some cases the only manufacturer, in others, it is the most popular.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews w89k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-winbond
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews op50n)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-oki
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews op60c)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=hppa1.1-oki
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mips)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if [ x$os = x-linux-gnu ]; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=mips-mips
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews romp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=romp-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rs6000)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=rs6000-ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vax)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=vax-dec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pdp10)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # there are many clones, so DEC is not a safe bet
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=pdp10-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pdp11)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=pdp11-dec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews we32k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=we32k-att
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sh3 | sh4 | sh3eb | sh4eb)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sh-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sparc | sparcv9 | sparcv9b)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=sparc-sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cydra)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=cydra-cydrome
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews orion)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=orion-highlevel
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews orion105)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=clipper-highlevel
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mac | mpw | mac-mpw)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=m68k-apple
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pmac | pmac-mpw)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpc-apple
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews c4x*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=c4x-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-coff
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-unknown)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Make sure to match an already-canonicalized machine name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we canonicalize certain aliases for manufacturers.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $basic_machine in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-digital*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-commodore*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Decode manufacturer-specific aliases for certain operating systems.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif [ x"$os" != x"" ]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $os in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # First match some system type aliases
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # that might get confused with valid system types.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # -solaris* is a basic system type, with this one exception.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -solaris1 | -solaris1.*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|solaris1|sunos4|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -solaris)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-solaris2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -svr4*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -unixware*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4.2uw
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -gnu/linux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # First accept the basic system types.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # The portable systems comes first.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Each alternative MUST END IN A *, to match a version number.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # -sysv* is not here because it comes later, after sysvr4.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -aos* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -chorusos* | -chorusrdb* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -os2* | -vos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Remember, each alternative MUST END IN *, to match a version number.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -qnx*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $basic_machine in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews x86-* | i*86-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nto$os
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -nto*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nto-qnx
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mac*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|mac|macos|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -linux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|linux|linux-gnu|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sunos5*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|sunos5|solaris2|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sunos6*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|sunos6|solaris3|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -opened*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-openedition
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -wince*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-wince
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -osfrose*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-osfrose
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -osf*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-osf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -utek*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -dynix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -acis*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-aos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -386bsd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -ctix* | -uts*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -ns2 )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nextstep2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -nsk*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nsk
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Preserve the version number of sinix5.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sinix5.*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|sinix|sysv|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sinix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -triton*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -oss*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -svr4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -svr3)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sysvr4)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # This must come after -sysvr4.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sysv*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -ose*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ose
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -es1800*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ose
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -xenix)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-xenix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mint
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -none)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Get rid of the `-' at the beginning of $os.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed 's/[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we handle the default operating systems that come with various machines.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The value should be what the vendor currently ships out the door with their
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# machine or put another way, the most popular os provided with the machine.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Note that if you're going to try to match "-MANUFACTURER" here (say,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# "-sun"), then you have to tell the case statement up towards the top
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# that MANUFACTURER isn't an operating system. Otherwise, code above
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# will signal an error saying that MANUFACTURER isn't an operating
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# system, and we'll never get to this point.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $basic_machine in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-acorn)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-riscix1.2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews arm*-rebel)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-linux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews arm*-semi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-aout
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pdp10-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-tops20
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews pdp11-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-dec | vax-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ultrix4.2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m68*-apollo)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-domain
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i386-sun)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos4.0.2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m68000-sun)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # This also exists in the configure program, but was not the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # default.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # os=-sunos4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m68*-cisco)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-aout
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mips*-cisco)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-elf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mips*-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-elf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-tti) # must be before sparc entry or we get the wrong os.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sparc-* | *-sun)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sunos4.1.1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-be)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-beos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-ibm)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-aix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-wec)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-proelf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-winbond)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-proelf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-oki)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-proelf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-hp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hpux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-hitachi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-hiux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-cbm)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-amigaos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-dg)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-dgux
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-dolphin)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m68k-ccur)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-rtu
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m88k-omron*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-luna
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-next )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nextstep
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-sequent)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-ptx
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-crds)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-unos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-ns)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-genix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i370-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mvs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-next)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-nextstep3
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-gould)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-highlevel)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-encore)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-bsd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-sgi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-irix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-siemens)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-sysv4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-masscomp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-rtu
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews f30[01]-fujitsu | f700-fujitsu)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-uxpv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-rom68k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-coff
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-*bug)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-coff
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-apple)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-macos
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-atari*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-mint
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=-none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we handle the case where we know the os, and the CPU type, but not the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# manufacturer. We pick the logical manufacturer.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsvendor=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase $basic_machine in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-unknown)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $os in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -riscix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=acorn
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sunos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -aix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -beos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=be
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -hpux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mpeix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -hiux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -unos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=crds
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -dgux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=dg
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -luna*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=omron
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -genix*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=ns
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mvs* | -opened*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=ibm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -ptx*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=sequent
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -vxsim* | -vxworks*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=wrs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -aux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=apple
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -hms*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=hitachi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mpw* | -macos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=apple
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=atari
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -vos*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews vendor=stratus
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $basic_machine$os
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsexit 0
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Local variables:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# eval: (add-hook 'write-file-hooks 'time-stamp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# time-stamp-start: "timestamp='"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# time-stamp-format: "%:y-%02m-%02d"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# time-stamp-end: "'"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# End: