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