1607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell#! /bin/sh 2607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Configuration validation subroutine script. 3607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 5c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# 2011 Free Software Foundation, Inc. 6607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 7c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanovtimestamp='2011-11-02' 8607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 9607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# This file is (in principle) common to ALL GNU software. 10607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# The presence of a machine in this file suggests that SOME GNU software 11607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# can handle that machine. It does not imply ALL GNU software can. 12607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# 13607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# This file is free software; you can redistribute it and/or modify 14607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# it under the terms of the GNU General Public License as published by 15607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# the Free Software Foundation; either version 2 of the License, or 16607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# (at your option) any later version. 17607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# 18607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# This program is distributed in the hope that it will be useful, 19607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# but WITHOUT ANY WARRANTY; without even the implied warranty of 20607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# GNU General Public License for more details. 22607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# 23607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# You should have received a copy of the GNU General Public License 24607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# along with this program; if not, write to the Free Software 25c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 26c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# 02110-1301, USA. 27c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# 28607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# As a special exception to the GNU General Public License, if you 29607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# distribute this file as part of a program that contains a 30607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# configuration script generated by Autoconf, you may include it under 31607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# the same distribution terms that you use for the rest of that program. 32607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 33c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov 34607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Please send patches to <config-patches@gnu.org>. Submit a context 35c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# diff and a properly formatted GNU ChangeLog entry. 36607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# 37607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Configuration subroutine to validate and canonicalize a configuration type. 38607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Supply the specified configuration type as an argument. 39607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# If it is invalid, we print an error message on stderr and exit with code 1. 40607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Otherwise, we print the canonical config type on stdout and succeed. 41607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 42c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# You can get the latest version of this script from: 43c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 44c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov 45607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# This file is supposed to be the same for all GNU packages 46607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# and recognize all the CPU types, system types and aliases 47607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# that are meaningful with *any* GNU software. 48607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Each package is responsible for reporting which valid configurations 49607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# it does not support. The user should be able to distinguish 50607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# a failure to support a valid configuration from a meaningless 51607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# configuration. 52607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 53607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# The goal of this file is to map all the various variations of a given 54607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# machine specification into a single specification in the form: 55607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 56607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# or in some cases, the newer four-part form: 57607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 58607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# It is wrong to echo any other type of specification. 59607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 60607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellme=`echo "$0" | sed -e 's,.*/,,'` 61607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 62607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellusage="\ 63607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellUsage: $0 [OPTION] CPU-MFR-OPSYS 64607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell $0 [OPTION] ALIAS 65607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 66607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellCanonicalize a configuration name. 67607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 68607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellOperation modes: 69607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -h, --help print this help, then exit 70607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -t, --time-stamp print date of last modification, then exit 71607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -v, --version print version number, then exit 72607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 73607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellReport bugs and patches to <config-patches@gnu.org>." 74607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 75607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellversion="\ 76607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellGNU config.sub ($timestamp) 77607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 78c84f975e6fa65049ecd3268f830218e791893efdEvgeniy StepanovCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 79c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 80c84f975e6fa65049ecd3268f830218e791893efdEvgeniy StepanovSoftware Foundation, Inc. 81607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 82607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellThis is free software; see the source for copying conditions. There is NO 83607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 84607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 85607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellhelp=" 86607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn CriswellTry \`$me --help' for more information." 87607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 88607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Parse command line 89607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellwhile test $# -gt 0 ; do 90607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell case $1 in 91607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell --time-stamp | --time* | -t ) 92c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov echo "$timestamp" ; exit ;; 93607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell --version | -v ) 94c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov echo "$version" ; exit ;; 95607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell --help | --h* | -h ) 96c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov echo "$usage"; exit ;; 97607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -- ) # Stop option processing 98607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell shift; break ;; 99607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell - ) # Use stdin as input. 100607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell break ;; 101607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -* ) 102607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell echo "$me: invalid option $1$help" 103607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell exit 1 ;; 104607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 105607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *local*) 106607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # First pass through any local machine types. 107607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell echo $1 108c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov exit ;; 109607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 110607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell * ) 111607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell break ;; 112607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell esac 113607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswelldone 114607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 115607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $# in 116607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 0) echo "$me: missing argument$help" >&2 117607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell exit 1;; 118607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1) ;; 119607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) echo "$me: too many arguments$help" >&2 120607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell exit 1;; 121607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 122607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 123607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 124607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Here we must recognize all the valid KERNEL-OS combinations. 125607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 126607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $maybe_os in 127c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 128c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 129c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov knetbsd*-gnu* | netbsd*-gnu* | \ 130c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov kopensolaris*-gnu* | \ 131c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov storm-chaos* | os2-emx* | rtmk-nova*) 132607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-$maybe_os 133607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 134607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 135607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 136607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed 's/-[^-]*$//'` 137607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell if [ $basic_machine != $1 ] 138607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell then os=`echo $1 | sed 's/.*-/-/'` 139607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell else os=; fi 140607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 141607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 142607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 143607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell### Let's recognize common machines as not being operating systems so 144607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell### that things like config.sub decstation-3100 work. We also 145607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell### recognize some manufacturers as not being operating systems, so we 146607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell### can provide default operating systems below. 147607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $os in 148607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sun*os*) 149607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Prevent following clause from handling this invalid input. 150607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 151607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 152607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 153607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 154607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 155607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 156607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 157c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -apple | -axis | -knuth | -cray | -microblaze) 158607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os= 159607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$1 160607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 161c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -bluegene*) 162c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-cnk 163c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 164607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sim | -cisco | -oki | -wec | -winbond) 165607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os= 166607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$1 167607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 168607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -scout) 169607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 170607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -wrs) 171607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vxworks 172607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$1 173607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 174607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -chorusos*) 175607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-chorusos 176607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$1 177607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 178c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -chorusrdb) 179c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-chorusrdb 180607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$1 181c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 182607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -hiux*) 183607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hiuxwe2 184607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 185c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -sco6) 186c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-sco5v6 187c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 188c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 189607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sco5) 190607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sco3.2v5 191607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 192607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 193607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sco4) 194607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sco3.2v4 195607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 196607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 197607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sco3.2.[4-9]*) 198607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 199607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 200607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 201607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sco3.2v[4-9]*) 202607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Don't forget version if it is 3.2v4 or newer. 203607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 204607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 205c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -sco5v6*) 206c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov # Don't forget version if it is 3.2v4 or newer. 207c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 208c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 209607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sco*) 210607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sco3.2v2 211607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 212607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 213607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -udk*) 214607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 215607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 216607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -isc) 217607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-isc2.2 218607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 219607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 220607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -clix*) 221607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=clipper-intergraph 222607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 223607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -isc*) 224607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 225607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 226607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -lynx*) 227607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-lynxos 228607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 229607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -ptx*) 230607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 231607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 232607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -windowsnt*) 233607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's/windowsnt/winnt/'` 234607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 235607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -psos*) 236607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-psos 237607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 238607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -mint | -mint[0-9]*) 239607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-atari 240607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mint 241607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 242607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 243607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 244607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Decode aliases for certain CPU-COMPANY combinations. 245607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $basic_machine in 246607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Recognize the basic CPU types without company name. 247607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Some are omitted here because they have special meanings below. 248607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1750a | 580 \ 249607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | a29k \ 250607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 251607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 252c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | am33_2.0 \ 253c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 254c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | be32 | be64 \ 255c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | bfin \ 256c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | c4x | clipper \ 257607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | d10v | d30v | dlx | dsp16xx \ 258c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | fido | fr30 | frv \ 259c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | hexagon \ 260607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 261607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | i370 | i860 | i960 | ia64 \ 262c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | ip2k | iq2000 \ 263c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | le32 | le64 \ 264c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | lm32 \ 265c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | m32c | m32r | m32rle | m68000 | m68k | m88k \ 266c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | maxq | mb | microblaze | mcore | mep | metag \ 267607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips | mipsbe | mipseb | mipsel | mipsle \ 268607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips16 \ 269607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64 | mips64el \ 270c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64octeon | mips64octeonel \ 271607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64orion | mips64orionel \ 272c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64r5900 | mips64r5900el \ 273c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64vr | mips64vrel \ 274607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64vr4100 | mips64vr4100el \ 275607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64vr4300 | mips64vr4300el \ 276607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64vr5000 | mips64vr5000el \ 277c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64vr5900 | mips64vr5900el \ 278607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa32 | mipsisa32el \ 279607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa32r2 | mipsisa32r2el \ 280607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa64 | mipsisa64el \ 281c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mipsisa64r2 | mipsisa64r2el \ 282607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa64sb1 | mipsisa64sb1el \ 283607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa64sr71k | mipsisa64sr71kel \ 284607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipstx39 | mipstx39el \ 285607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mn10200 | mn10300 \ 286c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | moxie \ 287c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mt \ 288607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | msp430 \ 289c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | nds32 | nds32le | nds32be \ 290c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | nios | nios2 \ 291607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | ns16k | ns32k \ 292c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | open8 \ 293c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | or32 \ 294607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | pdp10 | pdp11 | pj | pjl \ 295c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | powerpc | powerpc64 | powerpc64le | powerpcle \ 296607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | pyramid \ 297c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | rx \ 298c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | score \ 299c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 300607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | sh64 | sh64le \ 301c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 302c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 303c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | spu \ 304c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 305c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | ubicom32 \ 306c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 307607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | we32k \ 308c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | x86 | xc16x | xstormy16 | xtensa \ 309c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | z8k | z80) 310607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$basic_machine-unknown 311607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 312c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c54x) 313c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=tic54x-unknown 314c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 315c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c55x) 316c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=tic55x-unknown 317c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 318c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c6x) 319c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=tic6x-unknown 320c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 321c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov m6811 | m68hc11 | m6812 | m68hc12 | picochip) 322607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Motorola 68HC11/12. 323607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$basic_machine-unknown 324607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-none 325607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 326607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 327607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 328c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ms1) 329c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=mt-unknown 330c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 331c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov 332c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov strongarm | thumb | xscale) 333c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=arm-unknown 334c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 335c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov 336c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov xscaleeb) 337c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=armeb-unknown 338c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 339c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov 340c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov xscaleel) 341c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=armel-unknown 342c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 343607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 344607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # We use `pc' rather than `unknown' 345607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # because (1) that's what they normally are, and 346607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # (2) the word "unknown" tends to confuse beginning users. 347607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i*86 | x86_64) 348607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=$basic_machine-pc 349607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 350607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Object if more than one company name word. 351607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-*-*) 352607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 353607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell exit 1 354607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 355607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Recognize the basic CPU types with company name. 356607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 580-* \ 357607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | a29k-* \ 358607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 359607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 360607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 361607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 362c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | avr-* | avr32-* \ 363c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | be32-* | be64-* \ 364c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | bfin-* | bs2000-* \ 365c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | c[123]* | c30-* | [cjt]90-* | c4x-* \ 366c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | clipper-* | craynv-* | cydra-* \ 367607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | d10v-* | d30v-* | dlx-* \ 368607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | elxsi-* \ 369c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 370607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | h8300-* | h8500-* \ 371c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | hexagon-* \ 372607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 373607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | i*86-* | i860-* | i960-* | ia64-* \ 374c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | ip2k-* | iq2000-* \ 375c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | le32-* | le64-* \ 376c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | lm32-* \ 377c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | m32c-* | m32r-* | m32rle-* \ 378607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 379c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ 380607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 381607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips16-* \ 382607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64-* | mips64el-* \ 383c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64octeon-* | mips64octeonel-* \ 384607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64orion-* | mips64orionel-* \ 385c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64r5900-* | mips64r5900el-* \ 386c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64vr-* | mips64vrel-* \ 387607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64vr4100-* | mips64vr4100el-* \ 388607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64vr4300-* | mips64vr4300el-* \ 389607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mips64vr5000-* | mips64vr5000el-* \ 390c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mips64vr5900-* | mips64vr5900el-* \ 391607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa32-* | mipsisa32el-* \ 392607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa32r2-* | mipsisa32r2el-* \ 393607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa64-* | mipsisa64el-* \ 394c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mipsisa64r2-* | mipsisa64r2el-* \ 395607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa64sb1-* | mipsisa64sb1el-* \ 396607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 397607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | mipstx39-* | mipstx39el-* \ 398c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mmix-* \ 399c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | mt-* \ 400607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | msp430-* \ 401c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | nds32-* | nds32le-* | nds32be-* \ 402c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | nios-* | nios2-* \ 403c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | none-* | np1-* | ns16k-* | ns32k-* \ 404c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | open8-* \ 405607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | orion-* \ 406607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 407c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 408607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | pyramid-* \ 409c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | romp-* | rs6000-* | rx-* \ 410c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 411607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 412c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 413c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sparclite-* \ 414c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ 415c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | tahoe-* \ 416607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 417c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | tile*-* \ 418607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | tron-* \ 419c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | ubicom32-* \ 420c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 421c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | vax-* \ 422607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | we32k-* \ 423c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | x86-* | x86_64-* | xc16x-* | xps100-* \ 424c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | xstormy16-* | xtensa*-* \ 425607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | ymp-* \ 426c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | z8k-* | z80-*) 427c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 428c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov # Recognize the basic CPU types without company name, with glob match. 429c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov xtensa*) 430c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=$basic_machine-unknown 431607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 432607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Recognize the various machine names and aliases which stand 433607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # for a CPU type and a company and sometimes even an OS. 434607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 386bsd) 435607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-unknown 436607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 437607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 438607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 439607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-att 440607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 441607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 3b*) 442607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=we32k-att 443607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 444607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell a29khif) 445607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-amd 446607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-udi 447607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 448c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov abacus) 449c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=abacus-unknown 450c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 451607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell adobe68k) 452607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68010-adobe 453607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-scout 454607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 455607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell alliant | fx80) 456607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=fx80-alliant 457607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 458607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell altos | altos3068) 459607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-altos 460607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 461607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell am29k) 462607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-none 463607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 464607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 465c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov amd64) 466c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=x86_64-pc 467c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 468c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov amd64-*) 469c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 470c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 471607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell amdahl) 472607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=580-amdahl 473607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 474607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 475607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell amiga | amiga-*) 476607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-unknown 477607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 478607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell amigaos | amigados) 479607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-unknown 480607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-amigaos 481607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 482607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell amigaunix | amix) 483607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-unknown 484607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 485607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 486607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell apollo68) 487607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-apollo 488607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 489607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 490607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell apollo68bsd) 491607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-apollo 492607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 493607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 494c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov aros) 495c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i386-pc 496c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-aros 497c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 498607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell aux) 499607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-apple 500607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-aux 501607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 502607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell balance) 503607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=ns32k-sequent 504607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-dynix 505607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 506c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov blackfin) 507c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=bfin-unknown 508c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux 509c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 510c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov blackfin-*) 511c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 512c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux 513c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 514c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov bluegene*) 515c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=powerpc-ibm 516c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-cnk 517c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 518c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c54x-*) 519c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` 520c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 521c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c55x-*) 522c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` 523c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 524c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c6x-*) 525c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` 526c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 527607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell c90) 528607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=c90-cray 529607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unicos 530607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 531c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov cegcc) 532c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=arm-unknown 533c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-cegcc 534c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 535607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell convex-c1) 536607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=c1-convex 537607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 538607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 539607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell convex-c2) 540607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=c2-convex 541607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 542607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 543607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell convex-c32) 544607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=c32-convex 545607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 546607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 547607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell convex-c34) 548607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=c34-convex 549607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 550607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 551607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell convex-c38) 552607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=c38-convex 553607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 554607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 555607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell cray | j90) 556607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=j90-cray 557607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unicos 558607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 559c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov craynv) 560c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=craynv-cray 561c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-unicosmp 562c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 563c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov cr16 | cr16-*) 564c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=cr16-unknown 565c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-elf 566c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 567607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell crds | unos) 568607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-crds 569607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 570c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov crisv32 | crisv32-* | etraxfs*) 571c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=crisv32-axis 572c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 573607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell cris | cris-* | etrax*) 574607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=cris-axis 575607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 576c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov crx) 577c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=crx-unknown 578c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-elf 579c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 580607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell da30 | da30-*) 581607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-da30 582607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 583607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 584607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mips-dec 585607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 586607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell decsystem10* | dec10*) 587607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=pdp10-dec 588607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-tops10 589607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 590607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell decsystem20* | dec20*) 591607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=pdp10-dec 592607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-tops20 593607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 594607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell delta | 3300 | motorola-3300 | motorola-delta \ 595607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | 3300-motorola | delta-motorola) 596607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-motorola 597607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 598607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell delta88) 599607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m88k-motorola 600607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 601607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 602c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov dicos) 603c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i686-pc 604c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-dicos 605c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 606c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov djgpp) 607c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i586-pc 608c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-msdosdjgpp 609c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 610607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell dpx20 | dpx20-*) 611607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=rs6000-bull 612607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bosx 613607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 614607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell dpx2* | dpx2*-bull) 615607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-bull 616607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 617607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 618607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ebmon29k) 619607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-amd 620607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ebmon 621607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 622607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell elxsi) 623607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=elxsi-elxsi 624607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 625607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 626607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell encore | umax | mmax) 627607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=ns32k-encore 628607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 629607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell es1800 | OSE68k | ose68k | ose | OSE) 630607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-ericsson 631607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ose 632607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 633607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell fx2800) 634607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i860-alliant 635607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 636607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell genix) 637607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=ns32k-ns 638607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 639607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell gmicro) 640607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=tron-gmicro 641607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 642607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 643607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell go32) 644607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-pc 645607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-go32 646607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 647607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell h3050r* | hiux*) 648607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hitachi 649607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hiuxwe2 650607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 651607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell h8300hms) 652607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=h8300-hitachi 653607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hms 654607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 655607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell h8300xray) 656607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=h8300-hitachi 657607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-xray 658607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 659607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell h8500hms) 660607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=h8500-hitachi 661607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hms 662607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 663607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell harris) 664607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m88k-harris 665607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 666607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 667607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp300-*) 668607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-hp 669607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 670607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp300bsd) 671607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-hp 672607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 673607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 674607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp300hpux) 675607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-hp 676607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hpux 677607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 678607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp3k9[0-9][0-9] | hp9[0-9][0-9]) 679607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.0-hp 680607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 681607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k2[0-9][0-9] | hp9k31[0-9]) 682607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-hp 683607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 684607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k3[2-9][0-9]) 685607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-hp 686607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 687607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k6[0-9][0-9] | hp6[0-9][0-9]) 688607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.0-hp 689607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 690607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k7[0-79][0-9] | hp7[0-79][0-9]) 691607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hp 692607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 693607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k78[0-9] | hp78[0-9]) 694607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # FIXME: really hppa2.0-hp 695607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hp 696607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 697607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 698607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # FIXME: really hppa2.0-hp 699607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hp 700607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 701607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k8[0-9][13679] | hp8[0-9][13679]) 702607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hp 703607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 704607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hp9k8[0-9][0-9] | hp8[0-9][0-9]) 705607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.0-hp 706607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 707607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hppa-next) 708607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nextstep3 709607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 710607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hppaosf) 711607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hp 712607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-osf 713607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 714607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell hppro) 715607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hp 716607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-proelf 717607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 718607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i370-ibm* | ibm*) 719607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i370-ibm 720607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 721607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# I'm not sure what "Sysv32" means. Should this be sysv3.2? 722607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i*86v32) 723607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 724607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv32 725607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 726607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i*86v4*) 727607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 728607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 729607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 730607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i*86v) 731607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 732607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 733607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 734607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i*86sol2) 735607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 736607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-solaris2 737607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 738607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i386mach) 739607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-mach 740607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mach 741607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 742607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i386-vsta | vsta) 743607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-unknown 744607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vsta 745607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 746607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell iris | iris4d) 747607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mips-sgi 748607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell case $os in 749607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -irix*) 750607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 751607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 752607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-irix4 753607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 754607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell esac 755607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 756607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell isi68 | isi) 757607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-isi 758607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 759607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 760c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov m68knommu) 761c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=m68k-unknown 762c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux 763c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 764c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov m68knommu-*) 765c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 766c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux 767c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 768607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m88k-omron*) 769607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m88k-omron 770607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 771607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell magnum | m3230) 772607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mips-mips 773607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 774607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 775607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell merlin) 776607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=ns32k-utek 777607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 778607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 779c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov microblaze) 780c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=microblaze-xilinx 781c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 782607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mingw32) 783607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-pc 784607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mingw32 785607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 786c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov mingw32ce) 787c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=arm-unknown 788c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-mingw32ce 789c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 790607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell miniframe) 791607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-convergent 792607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 793607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 794607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-atari 795607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mint 796607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 797607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mips3*-*) 798607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 799607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 800607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mips3*) 801607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 802607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 803607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell monitor) 804607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-rom68k 805607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-coff 806607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 807607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell morphos) 808607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=powerpc-unknown 809607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-morphos 810607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 811607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell msdos) 812607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-pc 813607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-msdos 814607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 815c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ms1-*) 816c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 817c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 818607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mvs) 819607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i370-ibm 820607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mvs 821607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 822c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov nacl) 823c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=le32-unknown 824c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-nacl 825c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 826607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ncr3000) 827607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i486-ncr 828607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 829607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 830607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell netbsd386) 831607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-unknown 832607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-netbsd 833607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 834607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell netwinder) 835607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=armv4l-rebel 836607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-linux 837607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 838607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell news | news700 | news800 | news900) 839607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-sony 840607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-newsos 841607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 842607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell news1000) 843607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68030-sony 844607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-newsos 845607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 846607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell news-3600 | risc-news) 847607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mips-sony 848607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-newsos 849607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 850607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell necv70) 851607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=v70-nec 852607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 853607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 854607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell next | m*-next ) 855607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-next 856607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell case $os in 857607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -nextstep* ) 858607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 859607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -ns2*) 860607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nextstep2 861607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 862607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 863607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nextstep3 864607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 865607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell esac 866607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 867607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell nh3000) 868607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-harris 869607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-cxux 870607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 871607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell nh[45]000) 872607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m88k-harris 873607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-cxux 874607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 875607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell nindy960) 876607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i960-intel 877607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nindy 878607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 879607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mon960) 880607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i960-intel 881607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mon960 882607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 883607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell nonstopux) 884607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mips-compaq 885607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nonstopux 886607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 887607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell np1) 888607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=np1-gould 889607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 890c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov neo-tandem) 891c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=neo-tandem 892c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 893c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov nse-tandem) 894c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=nse-tandem 895607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 896607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell nsr-tandem) 897607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=nsr-tandem 898607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 899607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell op50n-* | op60c-*) 900607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-oki 901607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-proelf 902607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 903c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov openrisc | openrisc-*) 904607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=or32-unknown 905c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 906c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os400) 907c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=powerpc-ibm 908c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-os400 909607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 910607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell OSE68000 | ose68000) 911607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-ericsson 912607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ose 913607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 914607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os68k) 915607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-none 916607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-os68k 917607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 918607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pa-hitachi) 919607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-hitachi 920607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hiuxwe2 921607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 922607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell paragon) 923607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i860-intel 924607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-osf 925607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 926c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov parisc) 927c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=hppa-unknown 928c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux 929c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 930c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov parisc-*) 931c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 932c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux 933c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 934607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pbd) 935607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparc-tti 936607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 937607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pbb) 938607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-tti 939607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 940607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pc532 | pc532-*) 941607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=ns32k-pc532 942607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 943c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov pc98) 944c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i386-pc 945c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 946c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov pc98-*) 947c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 948c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 949607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pentium | p5 | k5 | k6 | nexgen | viac3) 950607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i586-pc 951607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 952607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pentiumpro | p6 | 6x86 | athlon | athlon_*) 953607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i686-pc 954607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 955c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov pentiumii | pentium2 | pentiumiii | pentium3) 956607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i686-pc 957607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 958c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov pentium4) 959c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i786-pc 960c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 961607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 962607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 963607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 964607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pentiumpro-* | p6-* | 6x86-* | athlon-*) 965607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 966607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 967c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 968607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 969607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 970c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov pentium4-*) 971c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 972c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 973607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pn) 974607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=pn-gould 975607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 976607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell power) basic_machine=power-ibm 977607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 978c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ppc | ppcbe) basic_machine=powerpc-unknown 979607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 980c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ppc-* | ppcbe-*) 981c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 982607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 983607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ppcle | powerpclittle | ppc-le | powerpc-little) 984607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=powerpcle-unknown 985607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 986607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ppcle-* | powerpclittle-*) 987607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 988607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 989607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ppc64) basic_machine=powerpc64-unknown 990607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 991607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 992607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 993607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ppc64le | powerpc64little | ppc64-le | powerpc64-little) 994607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=powerpc64le-unknown 995607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 996607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ppc64le-* | powerpc64little-*) 997607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 998607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 999607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ps2) 1000607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-ibm 1001607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1002607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pw32) 1003607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i586-unknown 1004607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-pw32 1005607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1006c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov rdos) 1007c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i386-pc 1008c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-rdos 1009c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1010607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell rom68k) 1011607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-rom68k 1012607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-coff 1013607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1014607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell rm[46]00) 1015607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mips-siemens 1016607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1017607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell rtpc | rtpc-*) 1018607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=romp-ibm 1019607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1020607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell s390 | s390-*) 1021607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=s390-ibm 1022607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1023607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell s390x | s390x-*) 1024607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=s390x-ibm 1025607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1026607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sa29200) 1027607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-amd 1028607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-udi 1029607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1030607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sb1) 1031607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mipsisa64sb1-unknown 1032607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1033607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sb1el) 1034607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mipsisa64sb1el-unknown 1035607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1036c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov sde) 1037c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=mipsisa32-sde 1038c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-elf 1039c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1040c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov sei) 1041c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=mips-sei 1042c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-seiux 1043c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1044607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sequent) 1045607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-sequent 1046607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1047607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sh) 1048607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sh-hitachi 1049607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hms 1050607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1051c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov sh5el) 1052c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=sh5le-unknown 1053c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1054c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov sh64) 1055c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=sh64-unknown 1056c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1057607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sparclite-wrs | simso-wrs) 1058607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparclite-wrs 1059607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vxworks 1060607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1061607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sps7) 1062607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-bull 1063607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv2 1064607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1065607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell spur) 1066607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=spur-unknown 1067607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1068607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell st2000) 1069607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-tandem 1070607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1071607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell stratus) 1072607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i860-stratus 1073607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 1074607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1075c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov strongarm-* | thumb-*) 1076c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` 1077c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1078607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun2) 1079607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-sun 1080607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1081607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun2os3) 1082607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-sun 1083607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos3 1084607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1085607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun2os4) 1086607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68000-sun 1087607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos4 1088607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1089607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun3os3) 1090607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-sun 1091607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos3 1092607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1093607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun3os4) 1094607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-sun 1095607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos4 1096607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1097607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun4os3) 1098607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparc-sun 1099607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos3 1100607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1101607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun4os4) 1102607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparc-sun 1103607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos4 1104607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1105607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun4sol2) 1106607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparc-sun 1107607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-solaris2 1108607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1109607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun3 | sun3-*) 1110607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-sun 1111607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1112607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun4) 1113607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparc-sun 1114607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1115607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sun386 | sun386i | roadrunner) 1116607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-sun 1117607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1118607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sv1) 1119607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sv1-cray 1120607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unicos 1121607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1122607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell symmetry) 1123607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i386-sequent 1124607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-dynix 1125607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1126607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell t3e) 1127607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=alphaev5-cray 1128607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unicos 1129607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1130607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell t90) 1131607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=t90-cray 1132607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unicos 1133607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1134c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov tile*) 1135c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=$basic_machine-unknown 1136c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux-gnu 1137607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1138607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell tx39) 1139607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mipstx39-unknown 1140607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1141607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell tx39el) 1142607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=mipstx39el-unknown 1143607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1144607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell toad1) 1145607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=pdp10-xkl 1146607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-tops20 1147607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1148607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell tower | tower-32) 1149607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-ncr 1150607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1151c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov tpf) 1152c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=s390x-ibm 1153c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-tpf 1154c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1155607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell udi29k) 1156607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-amd 1157607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-udi 1158607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1159607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ultra3) 1160607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-nyu 1161607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sym1 1162607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1163607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell v810 | necv810) 1164607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=v810-nec 1165607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-none 1166607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1167607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vaxv) 1168607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=vax-dec 1169607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 1170607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1171607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vms) 1172607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=vax-dec 1173607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vms 1174607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1175607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vpp*|vx|vx-*) 1176607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=f301-fujitsu 1177607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1178607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vxworks960) 1179607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=i960-wrs 1180607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vxworks 1181607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1182607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vxworks68) 1183607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-wrs 1184607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vxworks 1185607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1186607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vxworks29k) 1187607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=a29k-wrs 1188607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-vxworks 1189607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1190607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell w65*) 1191607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=w65-wdc 1192607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-none 1193607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1194607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell w89k-*) 1195607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-winbond 1196607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-proelf 1197607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1198c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov xbox) 1199c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=i686-pc 1200c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-mingw32 1201c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1202607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell xps | xps100) 1203607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=xps100-honeywell 1204607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1205c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov xscale-* | xscalee[bl]-*) 1206c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` 1207c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1208607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ymp) 1209607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=ymp-cray 1210607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unicos 1211607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1212607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell z8k-*-coff) 1213607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=z8k-unknown 1214607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sim 1215607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1216c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov z80-*-coff) 1217c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=z80-unknown 1218c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-sim 1219c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1220607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell none) 1221607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=none-none 1222607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-none 1223607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1224607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1225607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Here we handle the default manufacturer of certain CPU types. It is in 1226607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# some cases the only manufacturer, in others, it is the most popular. 1227607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell w89k) 1228607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-winbond 1229607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1230607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell op50n) 1231607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-oki 1232607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1233607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell op60c) 1234607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=hppa1.1-oki 1235607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1236607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell romp) 1237607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=romp-ibm 1238607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1239c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov mmix) 1240c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov basic_machine=mmix-knuth 1241c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1242607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell rs6000) 1243607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=rs6000-ibm 1244607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1245607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vax) 1246607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=vax-dec 1247607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1248607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pdp10) 1249607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # there are many clones, so DEC is not a safe bet 1250607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=pdp10-unknown 1251607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1252607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pdp11) 1253607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=pdp11-dec 1254607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1255607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell we32k) 1256607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=we32k-att 1257607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1258c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 1259607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sh-unknown 1260607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1261c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1262607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=sparc-sun 1263607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1264607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell cydra) 1265607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=cydra-cydrome 1266607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1267607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell orion) 1268607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=orion-highlevel 1269607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1270607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell orion105) 1271607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=clipper-highlevel 1272607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1273607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mac | mpw | mac-mpw) 1274607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=m68k-apple 1275607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1276607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pmac | pmac-mpw) 1277607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=powerpc-apple 1278607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1279607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-unknown) 1280607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Make sure to match an already-canonicalized machine name. 1281607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1282607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 1283607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 1284607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell exit 1 1285607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1286607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 1287607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1288607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Here we canonicalize certain aliases for manufacturers. 1289607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $basic_machine in 1290607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-digital*) 1291607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 1292607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1293607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-commodore*) 1294607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 1295607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1296607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 1297607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1298607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 1299607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1300607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Decode manufacturer-specific aliases for certain operating systems. 1301607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1302607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellif [ x"$os" != x"" ] 1303607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellthen 1304607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $os in 1305c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov # First match some system type aliases 1306c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov # that might get confused with valid system types. 1307607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # -solaris* is a basic system type, with this one exception. 1308c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -auroraux) 1309c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-auroraux 1310c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1311607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -solaris1 | -solaris1.*) 1312607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|solaris1|sunos4|'` 1313607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1314607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -solaris) 1315607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-solaris2 1316607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1317607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -svr4*) 1318607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 1319607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1320607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -unixware*) 1321607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4.2uw 1322607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1323607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -gnu/linux*) 1324607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1325607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1326607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # First accept the basic system types. 1327607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # The portable systems comes first. 1328607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Each alternative MUST END IN A *, to match a version number. 1329607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # -sysv* is not here because it comes later, after sysvr4. 1330607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1331c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1332c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1333c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -sym* | -kopensolaris* \ 1334607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1335c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -aos* | -aros* \ 1336607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1337607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1338c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1339c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -openbsd* | -solidbsd* \ 1340c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1341c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1342607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1343607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1344c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -chorusos* | -chorusrdb* | -cegcc* \ 1345607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1346c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -mingw32* | -linux-gnu* | -linux-android* \ 1347c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -linux-newlib* | -linux-uclibc* \ 1348c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -uxpv* | -beos* | -mpeix* | -udk* \ 1349607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1350607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1351607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1352607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1353607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1354c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1355c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) 1356607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Remember, each alternative MUST END IN *, to match a version number. 1357607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1358607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -qnx*) 1359607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell case $basic_machine in 1360607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell x86-* | i*86-*) 1361607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1362607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 1363607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nto$os 1364607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1365607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell esac 1366607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1367607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -nto-qnx*) 1368607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1369607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -nto*) 1370607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|nto|nto-qnx|'` 1371607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1372607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1373c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1374607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1375607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1376607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -mac*) 1377607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|mac|macos|'` 1378607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1379c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -linux-dietlibc) 1380c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-linux-dietlibc 1381c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1382607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -linux*) 1383607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|linux|linux-gnu|'` 1384607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1385607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sunos5*) 1386607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|sunos5|solaris2|'` 1387607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1388607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sunos6*) 1389607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|sunos6|solaris3|'` 1390607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1391607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -opened*) 1392607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-openedition 1393607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1394c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -os400*) 1395c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-os400 1396c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1397607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -wince*) 1398607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-wince 1399607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1400607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -osfrose*) 1401607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-osfrose 1402607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1403607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -osf*) 1404607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-osf 1405607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1406607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -utek*) 1407607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 1408607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1409607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -dynix*) 1410607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 1411607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1412607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -acis*) 1413607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-aos 1414607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1415607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -atheos*) 1416607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-atheos 1417607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1418c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -syllable*) 1419c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-syllable 1420c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1421607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -386bsd) 1422607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 1423607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1424607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -ctix* | -uts*) 1425607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 1426607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1427607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -nova*) 1428607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-rtmk-nova 1429607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1430607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -ns2 ) 1431607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nextstep2 1432607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1433607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -nsk*) 1434607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nsk 1435607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1436607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Preserve the version number of sinix5. 1437607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sinix5.*) 1438607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed -e 's|sinix|sysv|'` 1439607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1440607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sinix*) 1441607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 1442607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1443c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -tpf*) 1444c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-tpf 1445c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1446607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -triton*) 1447607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 1448607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1449607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -oss*) 1450607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 1451607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1452607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -svr4) 1453607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 1454607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1455607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -svr3) 1456607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 1457607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1458607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sysvr4) 1459607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 1460607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1461607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # This must come after -sysvr4. 1462607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sysv*) 1463607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1464607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -ose*) 1465607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ose 1466607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1467607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -es1800*) 1468607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ose 1469607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1470607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -xenix) 1471607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-xenix 1472607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1473607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1474607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mint 1475607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1476607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -aros*) 1477607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-aros 1478607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1479607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -kaos*) 1480607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-kaos 1481607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1482c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -zvmoe) 1483c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-zvmoe 1484c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1485c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -dicos*) 1486c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-dicos 1487c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1488c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -nacl*) 1489c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1490607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -none) 1491607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1492607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 1493607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # Get rid of the `-' at the beginning of $os. 1494607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=`echo $os | sed 's/[^-]*-//'` 1495607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 1496607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell exit 1 1497607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1498607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 1499607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellelse 1500607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1501607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Here we handle the default operating systems that come with various machines. 1502607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# The value should be what the vendor currently ships out the door with their 1503607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# machine or put another way, the most popular os provided with the machine. 1504607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1505607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Note that if you're going to try to match "-MANUFACTURER" here (say, 1506607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# "-sun"), then you have to tell the case statement up towards the top 1507607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# that MANUFACTURER isn't an operating system. Otherwise, code above 1508607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# will signal an error saying that MANUFACTURER isn't an operating 1509607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# system, and we'll never get to this point. 1510607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1511607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $basic_machine in 1512c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov score-*) 1513c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-elf 1514c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1515c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov spu-*) 1516c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-elf 1517c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1518607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-acorn) 1519607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-riscix1.2 1520607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1521607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell arm*-rebel) 1522607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-linux 1523607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1524607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell arm*-semi) 1525607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-aout 1526607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1527c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov c4x-* | tic4x-*) 1528c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-coff 1529c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1530c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov tic54x-*) 1531c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-coff 1532c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1533c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov tic55x-*) 1534c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-coff 1535c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1536c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov tic6x-*) 1537c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-coff 1538c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1539607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # This must come before the *-dec entry. 1540607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pdp10-*) 1541607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-tops20 1542607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1543607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell pdp11-*) 1544607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-none 1545607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1546607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-dec | vax-*) 1547607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ultrix4.2 1548607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1549607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m68*-apollo) 1550607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-domain 1551607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1552607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i386-sun) 1553607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos4.0.2 1554607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1555607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m68000-sun) 1556607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos3 1557607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # This also exists in the configure program, but was not the 1558607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # default. 1559607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell # os=-sunos4 1560607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1561607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m68*-cisco) 1562607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-aout 1563607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1564c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov mep-*) 1565c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-elf 1566c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1567607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mips*-cisco) 1568607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-elf 1569607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1570607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell mips*-*) 1571607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-elf 1572607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1573607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell or32-*) 1574607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-coff 1575607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1576607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-tti) # must be before sparc entry or we get the wrong os. 1577607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 1578607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1579607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell sparc-* | *-sun) 1580607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sunos4.1.1 1581607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1582607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-be) 1583607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-beos 1584607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1585c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov *-haiku) 1586c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-haiku 1587c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1588607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-ibm) 1589607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-aix 1590607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1591c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov *-knuth) 1592c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov os=-mmixware 1593c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1594607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-wec) 1595607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-proelf 1596607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1597607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-winbond) 1598607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-proelf 1599607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1600607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-oki) 1601607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-proelf 1602607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1603607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-hp) 1604607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hpux 1605607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1606607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-hitachi) 1607607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-hiux 1608607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1609607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1610607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 1611607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1612607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-cbm) 1613607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-amigaos 1614607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1615607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-dg) 1616607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-dgux 1617607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1618607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-dolphin) 1619607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv3 1620607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1621607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m68k-ccur) 1622607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-rtu 1623607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1624607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell m88k-omron*) 1625607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-luna 1626607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1627607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-next ) 1628607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nextstep 1629607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1630607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-sequent) 1631607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-ptx 1632607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1633607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-crds) 1634607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-unos 1635607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1636607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-ns) 1637607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-genix 1638607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1639607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell i370-*) 1640607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mvs 1641607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1642607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-next) 1643607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-nextstep3 1644607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1645607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-gould) 1646607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv 1647607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1648607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-highlevel) 1649607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 1650607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1651607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-encore) 1652607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-bsd 1653607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1654607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-sgi) 1655607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-irix 1656607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1657607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-siemens) 1658607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-sysv4 1659607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1660607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-masscomp) 1661607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-rtu 1662607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1663607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell f30[01]-fujitsu | f700-fujitsu) 1664607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-uxpv 1665607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1666607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-rom68k) 1667607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-coff 1668607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1669607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-*bug) 1670607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-coff 1671607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1672607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-apple) 1673607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-macos 1674607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1675607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-atari*) 1676607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-mint 1677607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1678607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *) 1679607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell os=-none 1680607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1681607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 1682607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellfi 1683607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1684607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Here we handle the case where we know the os, and the CPU type, but not the 1685607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# manufacturer. We pick the logical manufacturer. 1686607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellvendor=unknown 1687607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellcase $basic_machine in 1688607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell *-unknown) 1689607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell case $os in 1690607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -riscix*) 1691607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=acorn 1692607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1693607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -sunos*) 1694607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=sun 1695607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1696c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -cnk*|-aix*) 1697607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=ibm 1698607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1699607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -beos*) 1700607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=be 1701607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1702607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -hpux*) 1703607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=hp 1704607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1705607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -mpeix*) 1706607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=hp 1707607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1708607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -hiux*) 1709607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=hitachi 1710607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1711607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -unos*) 1712607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=crds 1713607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1714607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -dgux*) 1715607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=dg 1716607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1717607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -luna*) 1718607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=omron 1719607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1720607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -genix*) 1721607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=ns 1722607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1723607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -mvs* | -opened*) 1724607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=ibm 1725607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1726c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -os400*) 1727c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov vendor=ibm 1728c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1729607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -ptx*) 1730607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=sequent 1731607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1732c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov -tpf*) 1733c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov vendor=ibm 1734c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanov ;; 1735607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -vxsim* | -vxworks* | -windiss*) 1736607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=wrs 1737607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1738607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -aux*) 1739607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=apple 1740607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1741607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -hms*) 1742607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=hitachi 1743607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1744607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -mpw* | -macos*) 1745607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=apple 1746607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1747607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1748607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=atari 1749607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1750607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell -vos*) 1751607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell vendor=stratus 1752607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1753607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell esac 1754607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1755607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell ;; 1756607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellesac 1757607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1758607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswellecho $basic_machine$os 1759c84f975e6fa65049ecd3268f830218e791893efdEvgeniy Stepanovexit 1760607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell 1761607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# Local variables: 1762607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# eval: (add-hook 'write-file-hooks 'time-stamp) 1763607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# time-stamp-start: "timestamp='" 1764607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# time-stamp-format: "%:y-%02m-%02d" 1765607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# time-stamp-end: "'" 1766607b1ea2410fadfec25826ff1bbbbaebe38ec55aJohn Criswell# End: 1767