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