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