166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#! /bin/sh 266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Configuration validation subroutine script. 366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 2011 Free Software Foundation, Inc. 666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantimestamp='2011-08-23' 866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is (in principle) common to ALL GNU software. 1066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The presence of a machine in this file suggests that SOME GNU software 1166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# can handle that machine. It does not imply ALL GNU software can. 1266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 1366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is free software; you can redistribute it and/or modify 1466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# it under the terms of the GNU General Public License as published by 1566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the Free Software Foundation; either version 2 of the License, or 1666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# (at your option) any later version. 1766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 1866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This program is distributed in the hope that it will be useful, 1966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# but WITHOUT ANY WARRANTY; without even the implied warranty of 2066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# GNU General Public License for more details. 2266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 2366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# You should have received a copy of the GNU General Public License 2466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# along with this program; if not, write to the Free Software 2566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 02110-1301, USA. 2766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 2866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# As a special exception to the GNU General Public License, if you 2966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# distribute this file as part of a program that contains a 3066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# configuration script generated by Autoconf, you may include it under 3166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the same distribution terms that you use for the rest of that program. 3266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 3366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 3466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Please send patches to <config-patches@gnu.org>. Submit a context 3566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# diff and a properly formatted GNU ChangeLog entry. 3666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 3766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Configuration subroutine to validate and canonicalize a configuration type. 3866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Supply the specified configuration type as an argument. 3966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If it is invalid, we print an error message on stderr and exit with code 1. 4066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Otherwise, we print the canonical config type on stdout and succeed. 4166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 4266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# You can get the latest version of this script from: 4366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 4466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 4566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is supposed to be the same for all GNU packages 4666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# and recognize all the CPU types, system types and aliases 4766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# that are meaningful with *any* GNU software. 4866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Each package is responsible for reporting which valid configurations 4966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# it does not support. The user should be able to distinguish 5066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# a failure to support a valid configuration from a meaningless 5166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# configuration. 5266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 5366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The goal of this file is to map all the various variations of a given 5466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# machine specification into a single specification in the form: 5566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 5666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# or in some cases, the newer four-part form: 5766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 5866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# It is wrong to echo any other type of specification. 5966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 6066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanme=`echo "$0" | sed -e 's,.*/,,'` 6166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 6266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanusage="\ 6366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanUsage: $0 [OPTION] CPU-MFR-OPSYS 6466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman $0 [OPTION] ALIAS 6566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 6666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCanonicalize a configuration name. 6766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 6866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanOperation modes: 6966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -h, --help print this help, then exit 7066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -t, --time-stamp print date of last modification, then exit 7166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -v, --version print version number, then exit 7266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 7366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanReport bugs and patches to <config-patches@gnu.org>." 7466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 7566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanversion="\ 7666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanGNU config.sub ($timestamp) 7766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 7866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 7966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 8066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanSoftware Foundation, Inc. 8166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 8266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanThis is free software; see the source for copying conditions. There is NO 8366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 8466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 8566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhelp=" 8666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanTry \`$me --help' for more information." 8766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 8866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Parse command line 8966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwhile test $# -gt 0 ; do 9066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman case $1 in 9166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman --time-stamp | --time* | -t ) 9266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo "$timestamp" ; exit ;; 9366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman --version | -v ) 9466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo "$version" ; exit ;; 9566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman --help | --h* | -h ) 9666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo "$usage"; exit ;; 9766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -- ) # Stop option processing 9866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman shift; break ;; 9966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman - ) # Use stdin as input. 10066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman break ;; 10166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -* ) 10266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo "$me: invalid option $1$help" 10366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit 1 ;; 10466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 10566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *local*) 10666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # First pass through any local machine types. 10766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo $1 10866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit ;; 10966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 11066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman * ) 11166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman break ;; 11266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman esac 11366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandone 11466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 11566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $# in 11666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 0) echo "$me: missing argument$help" >&2 11766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit 1;; 11866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1) ;; 11966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) echo "$me: too many arguments$help" >&2 12066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit 1;; 12166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 12266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 12366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 12466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we must recognize all the valid KERNEL-OS combinations. 12566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 12666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $maybe_os in 12766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 12866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 12966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman knetbsd*-gnu* | netbsd*-gnu* | \ 13066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman kopensolaris*-gnu* | \ 13166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman storm-chaos* | os2-emx* | rtmk-nova*) 13266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-$maybe_os 13366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 13466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 13566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 13666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed 's/-[^-]*$//'` 13766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman if [ $basic_machine != $1 ] 13866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman then os=`echo $1 | sed 's/.*-/-/'` 13966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman else os=; fi 14066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 14166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 14266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 14366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### Let's recognize common machines as not being operating systems so 14466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### that things like config.sub decstation-3100 work. We also 14566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### recognize some manufacturers as not being operating systems, so we 14666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### can provide default operating systems below. 14766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $os in 14866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sun*os*) 14966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Prevent following clause from handling this invalid input. 15066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 15166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 15266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 15366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 15466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 15566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 15666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 15766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -apple | -axis | -knuth | -cray | -microblaze) 15866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os= 15966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$1 16066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 16166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -bluegene*) 16266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-cnk 16366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 16466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sim | -cisco | -oki | -wec | -winbond) 16566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os= 16666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$1 16766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 16866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -scout) 16966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 17066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -wrs) 17166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vxworks 17266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$1 17366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 17466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -chorusos*) 17566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-chorusos 17666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$1 17766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 17866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -chorusrdb) 17966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-chorusrdb 18066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$1 18166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 18266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -hiux*) 18366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hiuxwe2 18466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 18566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco6) 18666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sco5v6 18766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 18966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco5) 19066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sco3.2v5 19166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 19366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco4) 19466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sco3.2v4 19566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 19766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco3.2.[4-9]*) 19866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 19966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 20166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco3.2v[4-9]*) 20266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Don't forget version if it is 3.2v4 or newer. 20366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 20566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco5v6*) 20666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Don't forget version if it is 3.2v4 or newer. 20766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 20966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sco*) 21066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sco3.2v2 21166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 21366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -udk*) 21466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 21666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -isc) 21766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-isc2.2 21866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 22066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -clix*) 22166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=clipper-intergraph 22266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 22366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -isc*) 22466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 22566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 22666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -lynx*) 22766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-lynxos 22866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 22966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -ptx*) 23066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 23166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 23266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -windowsnt*) 23366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's/windowsnt/winnt/'` 23466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 23566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -psos*) 23666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-psos 23766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 23866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -mint | -mint[0-9]*) 23966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-atari 24066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mint 24166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 24266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 24366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 24466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Decode aliases for certain CPU-COMPANY combinations. 24566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in 24666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Recognize the basic CPU types without company name. 24766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Some are omitted here because they have special meanings below. 24866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1750a | 580 \ 24966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | a29k \ 25066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 25166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 25266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | am33_2.0 \ 25366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 25466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | be32 | be64 \ 25566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | bfin \ 25666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | c4x | clipper \ 25766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | d10v | d30v | dlx | dsp16xx \ 25866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | fido | fr30 | frv \ 25966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 26066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | i370 | i860 | i960 | ia64 \ 26166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | ip2k | iq2000 \ 26266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | le32 | le64 \ 26366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | lm32 \ 26466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | m32c | m32r | m32rle | m68000 | m68k | m88k \ 26566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | maxq | mb | microblaze | mcore | mep | metag \ 26666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips | mipsbe | mipseb | mipsel | mipsle \ 26766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips16 \ 26866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64 | mips64el \ 26966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64octeon | mips64octeonel \ 27066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64orion | mips64orionel \ 27166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64r5900 | mips64r5900el \ 27266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr | mips64vrel \ 27366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr4100 | mips64vr4100el \ 27466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr4300 | mips64vr4300el \ 27566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr5000 | mips64vr5000el \ 27666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr5900 | mips64vr5900el \ 27766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa32 | mipsisa32el \ 27866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa32r2 | mipsisa32r2el \ 27966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64 | mipsisa64el \ 28066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64r2 | mipsisa64r2el \ 28166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64sb1 | mipsisa64sb1el \ 28266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64sr71k | mipsisa64sr71kel \ 28366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipstx39 | mipstx39el \ 28466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mn10200 | mn10300 \ 28566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | moxie \ 28666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mt \ 28766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | msp430 \ 28866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | nds32 | nds32le | nds32be \ 28966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | nios | nios2 \ 29066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | ns16k | ns32k \ 29166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | open8 \ 29266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | or32 \ 29366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | pdp10 | pdp11 | pj | pjl \ 29466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | powerpc | powerpc64 | powerpc64le | powerpcle \ 29566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | pyramid \ 29666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | rx \ 29766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | score \ 29866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 29966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sh64 | sh64le \ 30066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 30166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 30266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | spu \ 30366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 30466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | ubicom32 \ 30566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 30666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | we32k \ 30766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | x86 | xc16x | xstormy16 | xtensa \ 30866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | z8k | z80) 30966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$basic_machine-unknown 31066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 31166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c54x) 31266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tic54x-unknown 31366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 31466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c55x) 31566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tic55x-unknown 31666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 31766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c6x) 31866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tic6x-unknown 31966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 32066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m6811 | m68hc11 | m6812 | m68hc12 | picochip) 32166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Motorola 68HC11/12. 32266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$basic_machine-unknown 32366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-none 32466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 32566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 32666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 32766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ms1) 32866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mt-unknown 32966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 33066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 33166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman strongarm | thumb | xscale) 33266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=arm-unknown 33366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 33466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 33566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman xscaleeb) 33666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=armeb-unknown 33766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 33866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 33966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman xscaleel) 34066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=armel-unknown 34166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 34266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 34366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # We use `pc' rather than `unknown' 34466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # because (1) that's what they normally are, and 34566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # (2) the word "unknown" tends to confuse beginning users. 34666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i*86 | x86_64) 34766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$basic_machine-pc 34866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 34966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Object if more than one company name word. 35066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-*-*) 35166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 35266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit 1 35366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 35466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Recognize the basic CPU types with company name. 35566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 580-* \ 35666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | a29k-* \ 35766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 35866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 35966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 36066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 36166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | avr-* | avr32-* \ 36266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | be32-* | be64-* \ 36366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | bfin-* | bs2000-* \ 36466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | c[123]* | c30-* | [cjt]90-* | c4x-* \ 36566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | clipper-* | craynv-* | cydra-* \ 36666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | d10v-* | d30v-* | dlx-* \ 36766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | elxsi-* \ 36866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 36966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | h8300-* | h8500-* \ 37066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 37166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | i*86-* | i860-* | i960-* | ia64-* \ 37266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | ip2k-* | iq2000-* \ 37366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | le32-* | le64-* \ 37466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | lm32-* \ 37566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | m32c-* | m32r-* | m32rle-* \ 37666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 37766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ 37866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 37966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips16-* \ 38066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64-* | mips64el-* \ 38166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64octeon-* | mips64octeonel-* \ 38266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64orion-* | mips64orionel-* \ 38366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64r5900-* | mips64r5900el-* \ 38466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr-* | mips64vrel-* \ 38566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr4100-* | mips64vr4100el-* \ 38666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr4300-* | mips64vr4300el-* \ 38766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr5000-* | mips64vr5000el-* \ 38866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mips64vr5900-* | mips64vr5900el-* \ 38966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa32-* | mipsisa32el-* \ 39066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa32r2-* | mipsisa32r2el-* \ 39166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64-* | mipsisa64el-* \ 39266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64r2-* | mipsisa64r2el-* \ 39366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64sb1-* | mipsisa64sb1el-* \ 39466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 39566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mipstx39-* | mipstx39el-* \ 39666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mmix-* \ 39766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | mt-* \ 39866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | msp430-* \ 39966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | nds32-* | nds32le-* | nds32be-* \ 40066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | nios-* | nios2-* \ 40166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | none-* | np1-* | ns16k-* | ns32k-* \ 40266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | open8-* \ 40366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | orion-* \ 40466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 40566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 40666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | pyramid-* \ 40766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | romp-* | rs6000-* | rx-* \ 40866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 40966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 41066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 41166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sparclite-* \ 41266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ 41366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | tahoe-* \ 41466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 41566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | tile*-* \ 41666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | tron-* \ 41766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | ubicom32-* \ 41866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 41966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | vax-* \ 42066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | we32k-* \ 42166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | x86-* | x86_64-* | xc16x-* | xps100-* \ 42266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | xstormy16-* | xtensa*-* \ 42366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | ymp-* \ 42466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | z8k-* | z80-*) 42566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 42666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Recognize the basic CPU types without company name, with glob match. 42766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman xtensa*) 42866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$basic_machine-unknown 42966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 43066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Recognize the various machine names and aliases which stand 43166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # for a CPU type and a company and sometimes even an OS. 43266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 386bsd) 43366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-unknown 43466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 43566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 43666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 43766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-att 43866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 43966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 3b*) 44066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=we32k-att 44166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 44266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman a29khif) 44366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-amd 44466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-udi 44566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 44666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman abacus) 44766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=abacus-unknown 44866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 44966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman adobe68k) 45066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68010-adobe 45166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-scout 45266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 45366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman alliant | fx80) 45466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=fx80-alliant 45566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 45666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman altos | altos3068) 45766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-altos 45866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 45966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman am29k) 46066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-none 46166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 46266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 46366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman amd64) 46466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=x86_64-pc 46566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 46666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman amd64-*) 46766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 46866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 46966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman amdahl) 47066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=580-amdahl 47166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 47266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 47366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman amiga | amiga-*) 47466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-unknown 47566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 47666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman amigaos | amigados) 47766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-unknown 47866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-amigaos 47966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 48066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman amigaunix | amix) 48166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-unknown 48266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 48366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 48466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman apollo68) 48566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-apollo 48666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 48766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 48866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman apollo68bsd) 48966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-apollo 49066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 49166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 49266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman aros) 49366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-pc 49466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aros 49566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 49666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman aux) 49766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-apple 49866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aux 49966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 50066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman balance) 50166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=ns32k-sequent 50266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-dynix 50366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 50466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman blackfin) 50566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=bfin-unknown 50666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 50766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 50866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman blackfin-*) 50966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 51066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 51166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 51266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman bluegene*) 51366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc-ibm 51466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-cnk 51566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 51666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c54x-*) 51766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` 51866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 51966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c55x-*) 52066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` 52166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 52266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c6x-*) 52366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` 52466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 52566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c90) 52666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=c90-cray 52766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicos 52866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 52966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman cegcc) 53066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=arm-unknown 53166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-cegcc 53266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 53366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman convex-c1) 53466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=c1-convex 53566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 53666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 53766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman convex-c2) 53866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=c2-convex 53966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 54066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 54166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman convex-c32) 54266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=c32-convex 54366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 54466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 54566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman convex-c34) 54666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=c34-convex 54766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 54866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 54966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman convex-c38) 55066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=c38-convex 55166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 55266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 55366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman cray | j90) 55466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=j90-cray 55566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicos 55666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 55766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman craynv) 55866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=craynv-cray 55966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicosmp 56066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 56166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman cr16 | cr16-*) 56266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=cr16-unknown 56366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 56466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 56566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman crds | unos) 56666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-crds 56766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 56866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman crisv32 | crisv32-* | etraxfs*) 56966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=crisv32-axis 57066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 57166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman cris | cris-* | etrax*) 57266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=cris-axis 57366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 57466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman crx) 57566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=crx-unknown 57666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 57766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 57866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman da30 | da30-*) 57966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-da30 58066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 58166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 58266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-dec 58366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 58466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman decsystem10* | dec10*) 58566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=pdp10-dec 58666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-tops10 58766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 58866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman decsystem20* | dec20*) 58966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=pdp10-dec 59066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-tops20 59166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 59266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman delta | 3300 | motorola-3300 | motorola-delta \ 59366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | 3300-motorola | delta-motorola) 59466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-motorola 59566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 59666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman delta88) 59766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m88k-motorola 59866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 59966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 60066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman dicos) 60166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i686-pc 60266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-dicos 60366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 60466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman djgpp) 60566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i586-pc 60666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-msdosdjgpp 60766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 60866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman dpx20 | dpx20-*) 60966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=rs6000-bull 61066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bosx 61166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 61266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman dpx2* | dpx2*-bull) 61366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-bull 61466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 61566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 61666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ebmon29k) 61766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-amd 61866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ebmon 61966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 62066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman elxsi) 62166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=elxsi-elxsi 62266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 62366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 62466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman encore | umax | mmax) 62566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=ns32k-encore 62666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 62766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman es1800 | OSE68k | ose68k | ose | OSE) 62866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-ericsson 62966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ose 63066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 63166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman fx2800) 63266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i860-alliant 63366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 63466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman genix) 63566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=ns32k-ns 63666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 63766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman gmicro) 63866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=tron-gmicro 63966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 64066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 64166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman go32) 64266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-pc 64366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-go32 64466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 64566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman h3050r* | hiux*) 64666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hitachi 64766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hiuxwe2 64866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 64966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman h8300hms) 65066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=h8300-hitachi 65166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hms 65266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 65366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman h8300xray) 65466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=h8300-hitachi 65566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-xray 65666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 65766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman h8500hms) 65866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=h8500-hitachi 65966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hms 66066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 66166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman harris) 66266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m88k-harris 66366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 66466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 66566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp300-*) 66666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-hp 66766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 66866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp300bsd) 66966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-hp 67066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 67166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 67266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp300hpux) 67366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-hp 67466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hpux 67566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 67666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp3k9[0-9][0-9] | hp9[0-9][0-9]) 67766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.0-hp 67866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 67966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k2[0-9][0-9] | hp9k31[0-9]) 68066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-hp 68166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 68266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k3[2-9][0-9]) 68366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-hp 68466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 68566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k6[0-9][0-9] | hp6[0-9][0-9]) 68666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.0-hp 68766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 68866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k7[0-79][0-9] | hp7[0-79][0-9]) 68966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hp 69066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 69166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k78[0-9] | hp78[0-9]) 69266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # FIXME: really hppa2.0-hp 69366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hp 69466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 69566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 69666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # FIXME: really hppa2.0-hp 69766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hp 69866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 69966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k8[0-9][13679] | hp8[0-9][13679]) 70066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hp 70166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 70266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hp9k8[0-9][0-9] | hp8[0-9][0-9]) 70366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.0-hp 70466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 70566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hppa-next) 70666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nextstep3 70766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 70866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hppaosf) 70966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hp 71066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-osf 71166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 71266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman hppro) 71366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hp 71466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-proelf 71566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 71666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i370-ibm* | ibm*) 71766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i370-ibm 71866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 71966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# I'm not sure what "Sysv32" means. Should this be sysv3.2? 72066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i*86v32) 72166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 72266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv32 72366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 72466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i*86v4*) 72566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 72666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 72766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 72866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i*86v) 72966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 73066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 73166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 73266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i*86sol2) 73366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 73466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-solaris2 73566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 73666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i386mach) 73766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-mach 73866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mach 73966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 74066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i386-vsta | vsta) 74166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-unknown 74266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vsta 74366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 74466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman iris | iris4d) 74566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-sgi 74666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman case $os in 74766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -irix*) 74866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 74966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 75066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-irix4 75166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 75266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman esac 75366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 75466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman isi68 | isi) 75566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-isi 75666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 75766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 75866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m68knommu) 75966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-unknown 76066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 76166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 76266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m68knommu-*) 76366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 76466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 76566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 76666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m88k-omron*) 76766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m88k-omron 76866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 76966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman magnum | m3230) 77066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-mips 77166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 77266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 77366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman merlin) 77466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=ns32k-utek 77566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 77666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 77766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman microblaze) 77866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=microblaze-xilinx 77966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 78066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mingw32) 78166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-pc 78266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mingw32 78366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 78466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mingw32ce) 78566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=arm-unknown 78666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mingw32ce 78766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 78866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman miniframe) 78966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-convergent 79066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 79166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 79266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-atari 79366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mint 79466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 79566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mips3*-*) 79666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 79766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 79866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mips3*) 79966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 80066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 80166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman monitor) 80266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-rom68k 80366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 80466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 80566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman morphos) 80666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc-unknown 80766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-morphos 80866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 80966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman msdos) 81066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-pc 81166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-msdos 81266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 81366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ms1-*) 81466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 81566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 81666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mvs) 81766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i370-ibm 81866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mvs 81966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 82066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nacl) 82166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=le32-unknown 82266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nacl 82366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 82466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ncr3000) 82566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i486-ncr 82666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 82766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 82866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman netbsd386) 82966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-unknown 83066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-netbsd 83166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 83266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman netwinder) 83366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=armv4l-rebel 83466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 83566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 83666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman news | news700 | news800 | news900) 83766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-sony 83866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-newsos 83966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 84066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman news1000) 84166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68030-sony 84266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-newsos 84366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 84466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman news-3600 | risc-news) 84566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-sony 84666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-newsos 84766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 84866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman necv70) 84966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=v70-nec 85066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 85166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 85266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman next | m*-next ) 85366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-next 85466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman case $os in 85566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -nextstep* ) 85666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 85766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -ns2*) 85866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nextstep2 85966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 86066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 86166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nextstep3 86266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 86366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman esac 86466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 86566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nh3000) 86666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-harris 86766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-cxux 86866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 86966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nh[45]000) 87066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m88k-harris 87166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-cxux 87266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 87366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nindy960) 87466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i960-intel 87566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nindy 87666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 87766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mon960) 87866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i960-intel 87966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mon960 88066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 88166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nonstopux) 88266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-compaq 88366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nonstopux 88466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 88566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman np1) 88666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=np1-gould 88766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 88866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman neo-tandem) 88966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=neo-tandem 89066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 89166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nse-tandem) 89266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=nse-tandem 89366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 89466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman nsr-tandem) 89566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=nsr-tandem 89666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 89766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman op50n-* | op60c-*) 89866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-oki 89966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-proelf 90066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 90166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman openrisc | openrisc-*) 90266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=or32-unknown 90366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 90466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os400) 90566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc-ibm 90666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-os400 90766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 90866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman OSE68000 | ose68000) 90966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-ericsson 91066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ose 91166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 91266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os68k) 91366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-none 91466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-os68k 91566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 91666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pa-hitachi) 91766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-hitachi 91866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hiuxwe2 91966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 92066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman paragon) 92166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i860-intel 92266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-osf 92366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 92466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman parisc) 92566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa-unknown 92666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 92766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 92866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman parisc-*) 92966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 93066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 93166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 93266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pbd) 93366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparc-tti 93466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 93566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pbb) 93666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-tti 93766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 93866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pc532 | pc532-*) 93966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=ns32k-pc532 94066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 94166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pc98) 94266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-pc 94366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 94466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pc98-*) 94566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 94666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 94766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentium | p5 | k5 | k6 | nexgen | viac3) 94866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i586-pc 94966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 95066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentiumpro | p6 | 6x86 | athlon | athlon_*) 95166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i686-pc 95266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 95366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentiumii | pentium2 | pentiumiii | pentium3) 95466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i686-pc 95566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 95666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentium4) 95766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i786-pc 95866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 95966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 96066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 96166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 96266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentiumpro-* | p6-* | 6x86-* | athlon-*) 96366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 96466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 96566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 96666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 96766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 96866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pentium4-*) 96966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 97066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 97166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pn) 97266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=pn-gould 97366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 97466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman power) basic_machine=power-ibm 97566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 97666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppc | ppcbe) basic_machine=powerpc-unknown 97766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 97866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppc-* | ppcbe-*) 97966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 98066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 98166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppcle | powerpclittle | ppc-le | powerpc-little) 98266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpcle-unknown 98366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 98466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppcle-* | powerpclittle-*) 98566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 98666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 98766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppc64) basic_machine=powerpc64-unknown 98866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 98966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 99066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 99166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppc64le | powerpc64little | ppc64-le | powerpc64-little) 99266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc64le-unknown 99366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 99466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ppc64le-* | powerpc64little-*) 99566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 99666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 99766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ps2) 99866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-ibm 99966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 100066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pw32) 100166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i586-unknown 100266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-pw32 100366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 100466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman rdos) 100566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-pc 100666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-rdos 100766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 100866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman rom68k) 100966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-rom68k 101066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 101166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 101266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman rm[46]00) 101366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-siemens 101466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 101566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman rtpc | rtpc-*) 101666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=romp-ibm 101766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 101866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman s390 | s390-*) 101966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=s390-ibm 102066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 102166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman s390x | s390x-*) 102266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=s390x-ibm 102366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 102466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sa29200) 102566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-amd 102666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-udi 102766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 102866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sb1) 102966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mipsisa64sb1-unknown 103066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 103166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sb1el) 103266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mipsisa64sb1el-unknown 103366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 103466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sde) 103566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mipsisa32-sde 103666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 103766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 103866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sei) 103966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mips-sei 104066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-seiux 104166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 104266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sequent) 104366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-sequent 104466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 104566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sh) 104666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sh-hitachi 104766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hms 104866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 104966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sh5el) 105066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sh5le-unknown 105166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 105266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sh64) 105366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sh64-unknown 105466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 105566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sparclite-wrs | simso-wrs) 105666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparclite-wrs 105766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vxworks 105866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 105966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sps7) 106066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-bull 106166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv2 106266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 106366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman spur) 106466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=spur-unknown 106566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 106666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman st2000) 106766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-tandem 106866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 106966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman stratus) 107066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i860-stratus 107166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 107266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 107366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman strongarm-* | thumb-*) 107466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` 107566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 107666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun2) 107766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-sun 107866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 107966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun2os3) 108066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-sun 108166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos3 108266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 108366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun2os4) 108466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68000-sun 108566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos4 108666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 108766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun3os3) 108866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-sun 108966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos3 109066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 109166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun3os4) 109266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-sun 109366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos4 109466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 109566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun4os3) 109666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparc-sun 109766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos3 109866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 109966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun4os4) 110066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparc-sun 110166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos4 110266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 110366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun4sol2) 110466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparc-sun 110566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-solaris2 110666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 110766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun3 | sun3-*) 110866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-sun 110966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 111066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun4) 111166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparc-sun 111266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 111366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sun386 | sun386i | roadrunner) 111466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-sun 111566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 111666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sv1) 111766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sv1-cray 111866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicos 111966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 112066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman symmetry) 112166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i386-sequent 112266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-dynix 112366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 112466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman t3e) 112566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=alphaev5-cray 112666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicos 112766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 112866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman t90) 112966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=t90-cray 113066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicos 113166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 113266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tile*) 113366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=$basic_machine-unknown 113466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux-gnu 113566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 113666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tx39) 113766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mipstx39-unknown 113866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 113966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tx39el) 114066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mipstx39el-unknown 114166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 114266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman toad1) 114366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=pdp10-xkl 114466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-tops20 114566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 114666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tower | tower-32) 114766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-ncr 114866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 114966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tpf) 115066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=s390x-ibm 115166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-tpf 115266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 115366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman udi29k) 115466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-amd 115566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-udi 115666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 115766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ultra3) 115866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-nyu 115966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sym1 116066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 116166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman v810 | necv810) 116266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=v810-nec 116366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-none 116466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 116566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vaxv) 116666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=vax-dec 116766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 116866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 116966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vms) 117066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=vax-dec 117166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vms 117266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 117366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vpp*|vx|vx-*) 117466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=f301-fujitsu 117566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 117666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vxworks960) 117766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i960-wrs 117866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vxworks 117966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 118066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vxworks68) 118166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-wrs 118266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vxworks 118366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 118466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vxworks29k) 118566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=a29k-wrs 118666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-vxworks 118766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 118866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman w65*) 118966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=w65-wdc 119066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-none 119166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 119266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman w89k-*) 119366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-winbond 119466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-proelf 119566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 119666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman xbox) 119766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=i686-pc 119866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mingw32 119966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 120066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman xps | xps100) 120166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=xps100-honeywell 120266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 120366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman xscale-* | xscalee[bl]-*) 120466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` 120566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 120666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ymp) 120766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=ymp-cray 120866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unicos 120966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 121066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman z8k-*-coff) 121166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=z8k-unknown 121266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sim 121366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 121466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman z80-*-coff) 121566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=z80-unknown 121666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sim 121766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 121866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman none) 121966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=none-none 122066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-none 122166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 122266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 122366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we handle the default manufacturer of certain CPU types. It is in 122466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# some cases the only manufacturer, in others, it is the most popular. 122566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman w89k) 122666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-winbond 122766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 122866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman op50n) 122966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-oki 123066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 123166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman op60c) 123266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=hppa1.1-oki 123366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 123466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman romp) 123566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=romp-ibm 123666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 123766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mmix) 123866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=mmix-knuth 123966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 124066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman rs6000) 124166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=rs6000-ibm 124266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 124366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vax) 124466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=vax-dec 124566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 124666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pdp10) 124766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # there are many clones, so DEC is not a safe bet 124866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=pdp10-unknown 124966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 125066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pdp11) 125166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=pdp11-dec 125266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 125366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman we32k) 125466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=we32k-att 125566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 125666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 125766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sh-unknown 125866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 125966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 126066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=sparc-sun 126166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 126266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman cydra) 126366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=cydra-cydrome 126466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 126566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman orion) 126666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=orion-highlevel 126766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 126866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman orion105) 126966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=clipper-highlevel 127066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 127166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mac | mpw | mac-mpw) 127266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=m68k-apple 127366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 127466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pmac | pmac-mpw) 127566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=powerpc-apple 127666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 127766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-unknown) 127866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Make sure to match an already-canonicalized machine name. 127966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 128066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 128166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 128266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit 1 128366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 128466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 128566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 128666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we canonicalize certain aliases for manufacturers. 128766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in 128866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-digital*) 128966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 129066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 129166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-commodore*) 129266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 129366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 129466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 129566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 129666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 129766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 129866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Decode manufacturer-specific aliases for certain operating systems. 129966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 130066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif [ x"$os" != x"" ] 130166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanthen 130266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $os in 130366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # First match some system type aliases 130466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # that might get confused with valid system types. 130566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # -solaris* is a basic system type, with this one exception. 130666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -auroraux) 130766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-auroraux 130866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 130966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -solaris1 | -solaris1.*) 131066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|solaris1|sunos4|'` 131166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 131266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -solaris) 131366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-solaris2 131466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 131566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -svr4*) 131666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 131766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 131866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -unixware*) 131966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4.2uw 132066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 132166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -gnu/linux*) 132266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 132366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 132466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # First accept the basic system types. 132566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # The portable systems comes first. 132666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Each alternative MUST END IN A *, to match a version number. 132766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # -sysv* is not here because it comes later, after sysvr4. 132866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 132966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 133066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 133166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -sym* | -kopensolaris* \ 133266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 133366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -aos* | -aros* \ 133466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 133566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 133666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 133766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -openbsd* | -solidbsd* \ 133866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 133966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 134066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 134166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 134266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -chorusos* | -chorusrdb* | -cegcc* \ 134366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 134466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -mingw32* | -linux-gnu* | -linux-android* \ 134566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -linux-newlib* | -linux-uclibc* \ 134666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -uxpv* | -beos* | -mpeix* | -udk* \ 134766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 134866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 134966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 135066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 135166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 135266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 135366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) 135466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Remember, each alternative MUST END IN *, to match a version number. 135566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 135666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -qnx*) 135766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman case $basic_machine in 135866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman x86-* | i*86-*) 135966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 136066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 136166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nto$os 136266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 136366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman esac 136466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 136566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -nto-qnx*) 136666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 136766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -nto*) 136866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|nto|nto-qnx|'` 136966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 137066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 137166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 137266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 137366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 137466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -mac*) 137566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|mac|macos|'` 137666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 137766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -linux-dietlibc) 137866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux-dietlibc 137966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 138066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -linux*) 138166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|linux|linux-gnu|'` 138266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 138366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sunos5*) 138466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|sunos5|solaris2|'` 138566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 138666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sunos6*) 138766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|sunos6|solaris3|'` 138866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 138966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -opened*) 139066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-openedition 139166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 139266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -os400*) 139366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-os400 139466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 139566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -wince*) 139666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-wince 139766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 139866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -osfrose*) 139966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-osfrose 140066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 140166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -osf*) 140266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-osf 140366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 140466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -utek*) 140566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 140666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 140766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -dynix*) 140866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 140966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 141066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -acis*) 141166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aos 141266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 141366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -atheos*) 141466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-atheos 141566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 141666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -syllable*) 141766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-syllable 141866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 141966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -386bsd) 142066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 142166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 142266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -ctix* | -uts*) 142366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 142466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 142566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -nova*) 142666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-rtmk-nova 142766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 142866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -ns2 ) 142966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nextstep2 143066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 143166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -nsk*) 143266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nsk 143366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 143466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Preserve the version number of sinix5. 143566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sinix5.*) 143666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed -e 's|sinix|sysv|'` 143766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 143866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sinix*) 143966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 144066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 144166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -tpf*) 144266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-tpf 144366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 144466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -triton*) 144566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 144666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 144766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -oss*) 144866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 144966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 145066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -svr4) 145166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 145266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 145366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -svr3) 145466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 145566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 145666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sysvr4) 145766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 145866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 145966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # This must come after -sysvr4. 146066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sysv*) 146166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 146266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -ose*) 146366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ose 146466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 146566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -es1800*) 146666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ose 146766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 146866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -xenix) 146966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-xenix 147066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 147166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 147266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mint 147366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 147466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -aros*) 147566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aros 147666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 147766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -kaos*) 147866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-kaos 147966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 148066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -zvmoe) 148166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-zvmoe 148266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 148366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -dicos*) 148466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-dicos 148566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 148666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -nacl*) 148766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 148866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -none) 148966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 149066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 149166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # Get rid of the `-' at the beginning of $os. 149266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=`echo $os | sed 's/[^-]*-//'` 149366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 149466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman exit 1 149566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 149666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 149766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse 149866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 149966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we handle the default operating systems that come with various machines. 150066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The value should be what the vendor currently ships out the door with their 150166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# machine or put another way, the most popular os provided with the machine. 150266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 150366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Note that if you're going to try to match "-MANUFACTURER" here (say, 150466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# "-sun"), then you have to tell the case statement up towards the top 150566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# that MANUFACTURER isn't an operating system. Otherwise, code above 150666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# will signal an error saying that MANUFACTURER isn't an operating 150766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# system, and we'll never get to this point. 150866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 150966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in 151066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman score-*) 151166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 151266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 151366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman spu-*) 151466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 151566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 151666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-acorn) 151766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-riscix1.2 151866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 151966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman arm*-rebel) 152066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-linux 152166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 152266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman arm*-semi) 152366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aout 152466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 152566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman c4x-* | tic4x-*) 152666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 152766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 152866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tic54x-*) 152966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 153066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 153166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tic55x-*) 153266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 153366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 153466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman tic6x-*) 153566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 153666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 153766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # This must come before the *-dec entry. 153866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pdp10-*) 153966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-tops20 154066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 154166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman pdp11-*) 154266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-none 154366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 154466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-dec | vax-*) 154566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ultrix4.2 154666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 154766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m68*-apollo) 154866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-domain 154966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 155066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i386-sun) 155166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos4.0.2 155266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 155366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m68000-sun) 155466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos3 155566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # This also exists in the configure program, but was not the 155666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # default. 155766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman # os=-sunos4 155866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 155966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m68*-cisco) 156066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aout 156166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 156266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mep-*) 156366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 156466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 156566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mips*-cisco) 156666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 156766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 156866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman mips*-*) 156966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-elf 157066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 157166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman or32-*) 157266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 157366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 157466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-tti) # must be before sparc entry or we get the wrong os. 157566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 157666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 157766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman sparc-* | *-sun) 157866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sunos4.1.1 157966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 158066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-be) 158166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-beos 158266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 158366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-haiku) 158466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-haiku 158566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 158666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-ibm) 158766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-aix 158866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 158966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-knuth) 159066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mmixware 159166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 159266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-wec) 159366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-proelf 159466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 159566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-winbond) 159666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-proelf 159766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 159866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-oki) 159966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-proelf 160066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 160166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-hp) 160266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hpux 160366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 160466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-hitachi) 160566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-hiux 160666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 160766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 160866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 160966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 161066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-cbm) 161166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-amigaos 161266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 161366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-dg) 161466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-dgux 161566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 161666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-dolphin) 161766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv3 161866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 161966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m68k-ccur) 162066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-rtu 162166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 162266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman m88k-omron*) 162366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-luna 162466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 162566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-next ) 162666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nextstep 162766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 162866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-sequent) 162966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-ptx 163066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 163166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-crds) 163266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-unos 163366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 163466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-ns) 163566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-genix 163666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 163766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman i370-*) 163866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mvs 163966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 164066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-next) 164166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-nextstep3 164266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 164366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-gould) 164466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv 164566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 164666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-highlevel) 164766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 164866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 164966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-encore) 165066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-bsd 165166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 165266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-sgi) 165366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-irix 165466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 165566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-siemens) 165666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-sysv4 165766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 165866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-masscomp) 165966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-rtu 166066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 166166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman f30[01]-fujitsu | f700-fujitsu) 166266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-uxpv 166366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 166466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-rom68k) 166566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 166666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 166766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-*bug) 166866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-coff 166966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 167066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-apple) 167166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-macos 167266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 167366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-atari*) 167466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-mint 167566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 167666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) 167766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman os=-none 167866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 167966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 168066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi 168166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 168266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we handle the case where we know the os, and the CPU type, but not the 168366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# manufacturer. We pick the logical manufacturer. 168466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvendor=unknown 168566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in 168666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *-unknown) 168766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman case $os in 168866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -riscix*) 168966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=acorn 169066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 169166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -sunos*) 169266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=sun 169366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 169466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -cnk*|-aix*) 169566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=ibm 169666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 169766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -beos*) 169866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=be 169966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 170066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -hpux*) 170166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=hp 170266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 170366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -mpeix*) 170466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=hp 170566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 170666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -hiux*) 170766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=hitachi 170866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 170966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -unos*) 171066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=crds 171166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 171266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -dgux*) 171366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=dg 171466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 171566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -luna*) 171666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=omron 171766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 171866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -genix*) 171966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=ns 172066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 172166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -mvs* | -opened*) 172266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=ibm 172366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 172466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -os400*) 172566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=ibm 172666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 172766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -ptx*) 172866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=sequent 172966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 173066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -tpf*) 173166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=ibm 173266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 173366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -vxsim* | -vxworks* | -windiss*) 173466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=wrs 173566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 173666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -aux*) 173766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=apple 173866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 173966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -hms*) 174066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=hitachi 174166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 174266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -mpw* | -macos*) 174366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=apple 174466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 174566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 174666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=atari 174766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 174866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman -vos*) 174966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman vendor=stratus 175066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 175166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman esac 175266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 175366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ;; 175466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac 175566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 175666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanecho $basic_machine$os 175766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanexit 175866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 175966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Local variables: 176066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# eval: (add-hook 'write-file-hooks 'time-stamp) 176166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# time-stamp-start: "timestamp='" 176266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# time-stamp-format: "%:y-%02m-%02d" 176366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# time-stamp-end: "'" 176466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# End: 1765