1c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott#! /bin/sh 2c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Configuration validation subroutine script. 3c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Inc. 6c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 7c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scotttimestamp='2007-06-28' 8c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 9c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# This file is (in principle) common to ALL GNU software. 10c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# The presence of a machine in this file suggests that SOME GNU software 11c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# can handle that machine. It does not imply ALL GNU software can. 12c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 13c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# This file is free software; you can redistribute it and/or modify 14c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# it under the terms of the GNU General Public License as published by 15c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# the Free Software Foundation; either version 2 of the License, or 16c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# (at your option) any later version. 17c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 18c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# This program is distributed in the hope that it will be useful, 19c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# but WITHOUT ANY WARRANTY; without even the implied warranty of 20c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# GNU General Public License for more details. 22c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 23c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# You should have received a copy of the GNU General Public License 24c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# along with this program; if not, write to the Free Software 25c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 26c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 02110-1301, USA. 27c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 28c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# As a special exception to the GNU General Public License, if you 29c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# distribute this file as part of a program that contains a 30c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# configuration script generated by Autoconf, you may include it under 31c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# the same distribution terms that you use for the rest of that program. 32c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 33c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 34c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Please send patches to <config-patches@gnu.org>. Submit a context 35c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# diff and a properly formatted ChangeLog entry. 36c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# 37c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Configuration subroutine to validate and canonicalize a configuration type. 38c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Supply the specified configuration type as an argument. 39c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# If it is invalid, we print an error message on stderr and exit with code 1. 40c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Otherwise, we print the canonical config type on stdout and succeed. 41c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 42c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# This file is supposed to be the same for all GNU packages 43c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# and recognize all the CPU types, system types and aliases 44c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# that are meaningful with *any* GNU software. 45c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Each package is responsible for reporting which valid configurations 46c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# it does not support. The user should be able to distinguish 47c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# a failure to support a valid configuration from a meaningless 48c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# configuration. 49c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 50c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# The goal of this file is to map all the various variations of a given 51c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# machine specification into a single specification in the form: 52c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 53c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# or in some cases, the newer four-part form: 54c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 55c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# It is wrong to echo any other type of specification. 56c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 57c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottme=`echo "$0" | sed -e 's,.*/,,'` 58c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 59c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottusage="\ 60c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottUsage: $0 [OPTION] CPU-MFR-OPSYS 61c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott $0 [OPTION] ALIAS 62c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 63c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottCanonicalize a configuration name. 64c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 65c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottOperation modes: 66c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -h, --help print this help, then exit 67c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -t, --time-stamp print date of last modification, then exit 68c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -v, --version print version number, then exit 69c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 70c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottReport bugs and patches to <config-patches@gnu.org>." 71c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 72c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottversion="\ 73c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottGNU config.sub ($timestamp) 74c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 75c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 76c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottFree Software Foundation, Inc. 77c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 78c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottThis is free software; see the source for copying conditions. There is NO 79c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 80c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 81c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scotthelp=" 82c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick ScottTry \`$me --help' for more information." 83c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 84c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Parse command line 85c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottwhile test $# -gt 0 ; do 86c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott case $1 in 87c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott --time-stamp | --time* | -t ) 88c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo "$timestamp" ; exit ;; 89c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott --version | -v ) 90c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo "$version" ; exit ;; 91c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott --help | --h* | -h ) 92c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo "$usage"; exit ;; 93c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -- ) # Stop option processing 94c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott shift; break ;; 95c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott - ) # Use stdin as input. 96c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott break ;; 97c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -* ) 98c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo "$me: invalid option $1$help" 99c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit 1 ;; 100c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 101c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *local*) 102c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # First pass through any local machine types. 103c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo $1 104c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit ;; 105c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 106c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott * ) 107c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott break ;; 108c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott esac 109c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottdone 110c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 111c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $# in 112c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 0) echo "$me: missing argument$help" >&2 113c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit 1;; 114c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1) ;; 115c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) echo "$me: too many arguments$help" >&2 116c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit 1;; 117c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 118c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 119c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 120c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Here we must recognize all the valid KERNEL-OS combinations. 121c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 122c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $maybe_os in 123c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 124c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 125c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott storm-chaos* | os2-emx* | rtmk-nova*) 126c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-$maybe_os 127c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 129c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 130c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed 's/-[^-]*$//'` 131c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott if [ $basic_machine != $1 ] 132c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott then os=`echo $1 | sed 's/.*-/-/'` 133c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott else os=; fi 134c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 135c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 136c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 137c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott### Let's recognize common machines as not being operating systems so 138c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott### that things like config.sub decstation-3100 work. We also 139c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott### recognize some manufacturers as not being operating systems, so we 140c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott### can provide default operating systems below. 141c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $os in 142c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sun*os*) 143c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Prevent following clause from handling this invalid input. 144c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 145c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 146c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 147c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 148c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 149c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 150c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 151c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -apple | -axis | -knuth | -cray) 152c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os= 153c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$1 154c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 155c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sim | -cisco | -oki | -wec | -winbond) 156c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os= 157c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$1 158c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 159c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -scout) 160c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 161c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -wrs) 162c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vxworks 163c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$1 164c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 165c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -chorusos*) 166c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-chorusos 167c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$1 168c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 169c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -chorusrdb) 170c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-chorusrdb 171c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$1 172c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 173c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -hiux*) 174c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hiuxwe2 175c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 176c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco6) 177c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sco5v6 178c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 179c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 180c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco5) 181c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sco3.2v5 182c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 183c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 184c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco4) 185c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sco3.2v4 186c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 187c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 188c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco3.2.[4-9]*) 189c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 190c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 191c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 192c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco3.2v[4-9]*) 193c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Don't forget version if it is 3.2v4 or newer. 194c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 195c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 196c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco5v6*) 197c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Don't forget version if it is 3.2v4 or newer. 198c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 199c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 200c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sco*) 201c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sco3.2v2 202c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 203c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 204c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -udk*) 205c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 206c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 207c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -isc) 208c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-isc2.2 209c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 210c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 211c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -clix*) 212c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=clipper-intergraph 213c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 214c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -isc*) 215c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 216c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 217c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -lynx*) 218c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-lynxos 219c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 220c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -ptx*) 221c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 222c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 223c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -windowsnt*) 224c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's/windowsnt/winnt/'` 225c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 226c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -psos*) 227c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-psos 228c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 229c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -mint | -mint[0-9]*) 230c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-atari 231c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mint 232c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 233c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 234c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 235c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Decode aliases for certain CPU-COMPANY combinations. 236c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $basic_machine in 237c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Recognize the basic CPU types without company name. 238c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Some are omitted here because they have special meanings below. 239c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1750a | 580 \ 240c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | a29k \ 241c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 242c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 243c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | am33_2.0 \ 244c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 245c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | bfin \ 246c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | c4x | clipper \ 247c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | d10v | d30v | dlx | dsp16xx \ 248c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | fido | fr30 | frv \ 249c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 250c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | i370 | i860 | i960 | ia64 \ 251c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | ip2k | iq2000 \ 252c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | m32c | m32r | m32rle | m68000 | m68k | m88k \ 253c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | maxq | mb | microblaze | mcore | mep \ 254c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips | mipsbe | mipseb | mipsel | mipsle \ 255c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips16 \ 256c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64 | mips64el \ 257c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr | mips64vrel \ 258c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64orion | mips64orionel \ 259c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr4100 | mips64vr4100el \ 260c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr4300 | mips64vr4300el \ 261c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr5000 | mips64vr5000el \ 262c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr5900 | mips64vr5900el \ 263c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa32 | mipsisa32el \ 264c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa32r2 | mipsisa32r2el \ 265c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64 | mipsisa64el \ 266c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64r2 | mipsisa64r2el \ 267c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64sb1 | mipsisa64sb1el \ 268c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64sr71k | mipsisa64sr71kel \ 269c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipstx39 | mipstx39el \ 270c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mn10200 | mn10300 \ 271c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mt \ 272c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | msp430 \ 273c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | nios | nios2 \ 274c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | ns16k | ns32k \ 275c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | or32 \ 276c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | pdp10 | pdp11 | pj | pjl \ 277c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 278c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | pyramid \ 279c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | score \ 280c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 281c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sh64 | sh64le \ 282c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 283c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 284c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | spu | strongarm \ 285c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | tahoe | thumb | tic4x | tic80 | tron \ 286c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | v850 | v850e \ 287c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | we32k \ 288c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 289c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | z8k) 290c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$basic_machine-unknown 291c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 292c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m6811 | m68hc11 | m6812 | m68hc12) 293c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Motorola 68HC11/12. 294c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$basic_machine-unknown 295c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-none 296c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 297c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 298c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 299c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ms1) 300c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mt-unknown 301c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 302c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 303c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # We use `pc' rather than `unknown' 304c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # because (1) that's what they normally are, and 305c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # (2) the word "unknown" tends to confuse beginning users. 306c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i*86 | x86_64) 307c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=$basic_machine-pc 308c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 309c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Object if more than one company name word. 310c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-*-*) 311c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 312c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit 1 313c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 314c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Recognize the basic CPU types with company name. 315c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 580-* \ 316c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | a29k-* \ 317c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 318c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 319c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 320c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 321c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | avr-* | avr32-* \ 322c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | bfin-* | bs2000-* \ 323c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 324c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | clipper-* | craynv-* | cydra-* \ 325c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | d10v-* | d30v-* | dlx-* \ 326c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | elxsi-* \ 327c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 328c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | h8300-* | h8500-* \ 329c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 330c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | i*86-* | i860-* | i960-* | ia64-* \ 331c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | ip2k-* | iq2000-* \ 332c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | m32c-* | m32r-* | m32rle-* \ 333c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 334c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | m88110-* | m88k-* | maxq-* | mcore-* \ 335c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 336c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips16-* \ 337c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64-* | mips64el-* \ 338c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr-* | mips64vrel-* \ 339c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64orion-* | mips64orionel-* \ 340c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr4100-* | mips64vr4100el-* \ 341c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr4300-* | mips64vr4300el-* \ 342c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr5000-* | mips64vr5000el-* \ 343c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mips64vr5900-* | mips64vr5900el-* \ 344c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa32-* | mipsisa32el-* \ 345c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa32r2-* | mipsisa32r2el-* \ 346c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64-* | mipsisa64el-* \ 347c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64r2-* | mipsisa64r2el-* \ 348c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64sb1-* | mipsisa64sb1el-* \ 349c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 350c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mipstx39-* | mipstx39el-* \ 351c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mmix-* \ 352c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | mt-* \ 353c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | msp430-* \ 354c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | nios-* | nios2-* \ 355c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | none-* | np1-* | ns16k-* | ns32k-* \ 356c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | orion-* \ 357c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 358c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 359c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | pyramid-* \ 360c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | romp-* | rs6000-* \ 361c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 362c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 363c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 364c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sparclite-* \ 365c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 366c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | tahoe-* | thumb-* \ 367c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 368c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | tron-* \ 369c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | v850-* | v850e-* | vax-* \ 370c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | we32k-* \ 371c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 372c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | xstormy16-* | xtensa-* \ 373c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | ymp-* \ 374c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | z8k-*) 375c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 376c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Recognize the various machine names and aliases which stand 377c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # for a CPU type and a company and sometimes even an OS. 378c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 386bsd) 379c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-unknown 380c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 381c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 382c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 383c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-att 384c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 385c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 3b*) 386c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=we32k-att 387c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 388c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott a29khif) 389c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-amd 390c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-udi 391c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 392c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott abacus) 393c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=abacus-unknown 394c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 395c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott adobe68k) 396c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68010-adobe 397c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-scout 398c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 399c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott alliant | fx80) 400c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=fx80-alliant 401c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 402c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott altos | altos3068) 403c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-altos 404c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 405c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott am29k) 406c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-none 407c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 408c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 409c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott amd64) 410c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=x86_64-pc 411c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 412c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott amd64-*) 413c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 414c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 415c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott amdahl) 416c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=580-amdahl 417c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 418c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 419c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott amiga | amiga-*) 420c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-unknown 421c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 422c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott amigaos | amigados) 423c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-unknown 424c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-amigaos 425c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 426c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott amigaunix | amix) 427c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-unknown 428c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 429c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 430c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott apollo68) 431c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-apollo 432c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 433c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 434c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott apollo68bsd) 435c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-apollo 436c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 437c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 438c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott aux) 439c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-apple 440c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-aux 441c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 442c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott balance) 443c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=ns32k-sequent 444c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-dynix 445c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 446c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott c90) 447c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=c90-cray 448c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicos 449c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 450c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott convex-c1) 451c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=c1-convex 452c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 453c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 454c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott convex-c2) 455c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=c2-convex 456c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 457c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 458c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott convex-c32) 459c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=c32-convex 460c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 461c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 462c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott convex-c34) 463c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=c34-convex 464c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 465c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 466c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott convex-c38) 467c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=c38-convex 468c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 469c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 470c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott cray | j90) 471c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=j90-cray 472c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicos 473c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 474c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott craynv) 475c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=craynv-cray 476c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicosmp 477c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 478c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott cr16) 479c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=cr16-unknown 480c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 481c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 482c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott crds | unos) 483c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-crds 484c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 485c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott crisv32 | crisv32-* | etraxfs*) 486c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=crisv32-axis 487c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 488c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott cris | cris-* | etrax*) 489c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=cris-axis 490c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 491c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott crx) 492c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=crx-unknown 493c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 494c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 495c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott da30 | da30-*) 496c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-da30 497c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 498c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 499c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-dec 500c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 501c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott decsystem10* | dec10*) 502c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=pdp10-dec 503c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-tops10 504c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 505c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott decsystem20* | dec20*) 506c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=pdp10-dec 507c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-tops20 508c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 509c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott delta | 3300 | motorola-3300 | motorola-delta \ 510c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | 3300-motorola | delta-motorola) 511c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-motorola 512c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 513c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott delta88) 514c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m88k-motorola 515c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 516c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 517c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott djgpp) 518c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i586-pc 519c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-msdosdjgpp 520c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 521c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott dpx20 | dpx20-*) 522c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=rs6000-bull 523c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bosx 524c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 525c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott dpx2* | dpx2*-bull) 526c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-bull 527c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 528c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 529c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ebmon29k) 530c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-amd 531c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ebmon 532c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 533c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott elxsi) 534c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=elxsi-elxsi 535c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 536c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 537c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott encore | umax | mmax) 538c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=ns32k-encore 539c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 540c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott es1800 | OSE68k | ose68k | ose | OSE) 541c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-ericsson 542c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ose 543c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 544c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott fx2800) 545c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i860-alliant 546c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 547c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott genix) 548c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=ns32k-ns 549c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 550c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott gmicro) 551c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=tron-gmicro 552c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 553c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 554c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott go32) 555c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-pc 556c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-go32 557c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 558c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott h3050r* | hiux*) 559c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hitachi 560c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hiuxwe2 561c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 562c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott h8300hms) 563c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=h8300-hitachi 564c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hms 565c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 566c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott h8300xray) 567c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=h8300-hitachi 568c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-xray 569c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 570c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott h8500hms) 571c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=h8500-hitachi 572c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hms 573c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 574c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott harris) 575c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m88k-harris 576c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 577c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 578c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp300-*) 579c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-hp 580c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 581c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp300bsd) 582c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-hp 583c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 584c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 585c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp300hpux) 586c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-hp 587c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hpux 588c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 589c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp3k9[0-9][0-9] | hp9[0-9][0-9]) 590c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.0-hp 591c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 592c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k2[0-9][0-9] | hp9k31[0-9]) 593c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-hp 594c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 595c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k3[2-9][0-9]) 596c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-hp 597c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 598c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k6[0-9][0-9] | hp6[0-9][0-9]) 599c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.0-hp 600c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 601c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k7[0-79][0-9] | hp7[0-79][0-9]) 602c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hp 603c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 604c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k78[0-9] | hp78[0-9]) 605c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # FIXME: really hppa2.0-hp 606c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hp 607c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 608c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 609c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # FIXME: really hppa2.0-hp 610c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hp 611c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 612c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k8[0-9][13679] | hp8[0-9][13679]) 613c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hp 614c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 615c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hp9k8[0-9][0-9] | hp8[0-9][0-9]) 616c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.0-hp 617c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 618c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hppa-next) 619c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nextstep3 620c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 621c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hppaosf) 622c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hp 623c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-osf 624c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 625c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott hppro) 626c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hp 627c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-proelf 628c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 629c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i370-ibm* | ibm*) 630c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i370-ibm 631c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 632c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# I'm not sure what "Sysv32" means. Should this be sysv3.2? 633c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i*86v32) 634c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 635c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv32 636c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 637c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i*86v4*) 638c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 639c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 640c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 641c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i*86v) 642c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 643c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 644c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 645c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i*86sol2) 646c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 647c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-solaris2 648c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 649c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i386mach) 650c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-mach 651c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mach 652c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 653c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i386-vsta | vsta) 654c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-unknown 655c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vsta 656c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 657c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott iris | iris4d) 658c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-sgi 659c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott case $os in 660c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -irix*) 661c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 662c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 663c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-irix4 664c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 665c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott esac 666c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 667c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott isi68 | isi) 668c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-isi 669c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 670c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 671c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m88k-omron*) 672c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m88k-omron 673c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 674c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott magnum | m3230) 675c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-mips 676c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 677c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 678c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott merlin) 679c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=ns32k-utek 680c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 681c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 682c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mingw32) 683c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-pc 684c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mingw32 685c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 686c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mingw32ce) 687c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=arm-unknown 688c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mingw32ce 689c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 690c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott miniframe) 691c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-convergent 692c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 693c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 694c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-atari 695c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mint 696c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 697c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mips3*-*) 698c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 699c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 700c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mips3*) 701c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 702c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 703c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott monitor) 704c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-rom68k 705c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 706c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 707c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott morphos) 708c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpc-unknown 709c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-morphos 710c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 711c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott msdos) 712c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-pc 713c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-msdos 714c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 715c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ms1-*) 716c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 717c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 718c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mvs) 719c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i370-ibm 720c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mvs 721c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 722c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ncr3000) 723c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i486-ncr 724c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 725c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 726c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott netbsd386) 727c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-unknown 728c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-netbsd 729c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 730c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott netwinder) 731c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=armv4l-rebel 732c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-linux 733c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 734c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott news | news700 | news800 | news900) 735c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-sony 736c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-newsos 737c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 738c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott news1000) 739c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68030-sony 740c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-newsos 741c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 742c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott news-3600 | risc-news) 743c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-sony 744c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-newsos 745c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 746c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott necv70) 747c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=v70-nec 748c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 749c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 750c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott next | m*-next ) 751c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-next 752c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott case $os in 753c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -nextstep* ) 754c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 755c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -ns2*) 756c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nextstep2 757c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 758c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 759c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nextstep3 760c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 761c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott esac 762c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 763c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott nh3000) 764c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-harris 765c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-cxux 766c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 767c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott nh[45]000) 768c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m88k-harris 769c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-cxux 770c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 771c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott nindy960) 772c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i960-intel 773c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nindy 774c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 775c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mon960) 776c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i960-intel 777c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mon960 778c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 779c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott nonstopux) 780c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-compaq 781c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nonstopux 782c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 783c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott np1) 784c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=np1-gould 785c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 786c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott nsr-tandem) 787c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=nsr-tandem 788c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 789c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott op50n-* | op60c-*) 790c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-oki 791c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-proelf 792c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 793c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott openrisc | openrisc-*) 794c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=or32-unknown 795c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 796c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os400) 797c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpc-ibm 798c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-os400 799c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 800c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott OSE68000 | ose68000) 801c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-ericsson 802c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ose 803c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 804c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os68k) 805c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-none 806c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-os68k 807c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 808c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pa-hitachi) 809c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-hitachi 810c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hiuxwe2 811c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 812c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott paragon) 813c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i860-intel 814c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-osf 815c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 816c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pbd) 817c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparc-tti 818c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 819c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pbb) 820c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-tti 821c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 822c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pc532 | pc532-*) 823c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=ns32k-pc532 824c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 825c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pc98) 826c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-pc 827c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 828c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pc98-*) 829c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 830c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 831c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentium | p5 | k5 | k6 | nexgen | viac3) 832c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i586-pc 833c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 834c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentiumpro | p6 | 6x86 | athlon | athlon_*) 835c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i686-pc 836c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 837c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentiumii | pentium2 | pentiumiii | pentium3) 838c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i686-pc 839c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 840c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentium4) 841c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i786-pc 842c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 843c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 844c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 845c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 846c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentiumpro-* | p6-* | 6x86-* | athlon-*) 847c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 848c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 849c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 850c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 851c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 852c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pentium4-*) 853c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 854c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 855c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pn) 856c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=pn-gould 857c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 858c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott power) basic_machine=power-ibm 859c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 860c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppc) basic_machine=powerpc-unknown 861c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 862c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 863c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 864c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppcle | powerpclittle | ppc-le | powerpc-little) 865c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpcle-unknown 866c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 867c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppcle-* | powerpclittle-*) 868c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 869c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 870c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppc64) basic_machine=powerpc64-unknown 871c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 872c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 873c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 874c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppc64le | powerpc64little | ppc64-le | powerpc64-little) 875c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpc64le-unknown 876c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 877c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ppc64le-* | powerpc64little-*) 878c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 879c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 880c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ps2) 881c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-ibm 882c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 883c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pw32) 884c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i586-unknown 885c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-pw32 886c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 887c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott rdos) 888c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-pc 889c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-rdos 890c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 891c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott rom68k) 892c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-rom68k 893c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 894c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 895c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott rm[46]00) 896c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-siemens 897c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 898c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott rtpc | rtpc-*) 899c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=romp-ibm 900c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 901c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott s390 | s390-*) 902c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=s390-ibm 903c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 904c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott s390x | s390x-*) 905c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=s390x-ibm 906c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 907c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sa29200) 908c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-amd 909c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-udi 910c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 911c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sb1) 912c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mipsisa64sb1-unknown 913c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 914c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sb1el) 915c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mipsisa64sb1el-unknown 916c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 917c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sde) 918c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mipsisa32-sde 919c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 920c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 921c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sei) 922c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mips-sei 923c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-seiux 924c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 925c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sequent) 926c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-sequent 927c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 928c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sh) 929c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sh-hitachi 930c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hms 931c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 932c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sh5el) 933c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sh5le-unknown 934c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 935c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sh64) 936c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sh64-unknown 937c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 938c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sparclite-wrs | simso-wrs) 939c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparclite-wrs 940c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vxworks 941c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 942c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sps7) 943c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-bull 944c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv2 945c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 946c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott spur) 947c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=spur-unknown 948c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 949c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott st2000) 950c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-tandem 951c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 952c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott stratus) 953c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i860-stratus 954c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 955c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 956c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun2) 957c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-sun 958c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 959c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun2os3) 960c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-sun 961c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos3 962c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 963c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun2os4) 964c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68000-sun 965c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos4 966c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 967c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun3os3) 968c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-sun 969c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos3 970c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 971c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun3os4) 972c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-sun 973c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos4 974c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 975c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun4os3) 976c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparc-sun 977c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos3 978c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 979c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun4os4) 980c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparc-sun 981c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos4 982c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 983c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun4sol2) 984c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparc-sun 985c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-solaris2 986c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 987c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun3 | sun3-*) 988c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-sun 989c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 990c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun4) 991c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparc-sun 992c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 993c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sun386 | sun386i | roadrunner) 994c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-sun 995c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 996c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sv1) 997c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sv1-cray 998c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicos 999c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1000c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott symmetry) 1001c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i386-sequent 1002c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-dynix 1003c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1004c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott t3e) 1005c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=alphaev5-cray 1006c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicos 1007c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1008c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott t90) 1009c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=t90-cray 1010c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicos 1011c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1012c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tic54x | c54x*) 1013c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=tic54x-unknown 1014c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1015c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1016c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tic55x | c55x*) 1017c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=tic55x-unknown 1018c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1019c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1020c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tic6x | c6x*) 1021c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=tic6x-unknown 1022c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1023c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1024c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tx39) 1025c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mipstx39-unknown 1026c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1027c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tx39el) 1028c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mipstx39el-unknown 1029c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1030c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott toad1) 1031c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=pdp10-xkl 1032c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-tops20 1033c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1034c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tower | tower-32) 1035c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-ncr 1036c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1037c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott tpf) 1038c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=s390x-ibm 1039c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-tpf 1040c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1041c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott udi29k) 1042c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-amd 1043c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-udi 1044c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1045c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ultra3) 1046c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-nyu 1047c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sym1 1048c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1049c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott v810 | necv810) 1050c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=v810-nec 1051c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-none 1052c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1053c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vaxv) 1054c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=vax-dec 1055c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 1056c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1057c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vms) 1058c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=vax-dec 1059c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vms 1060c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1061c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vpp*|vx|vx-*) 1062c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=f301-fujitsu 1063c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1064c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vxworks960) 1065c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i960-wrs 1066c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vxworks 1067c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1068c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vxworks68) 1069c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-wrs 1070c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vxworks 1071c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1072c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vxworks29k) 1073c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=a29k-wrs 1074c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-vxworks 1075c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1076c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott w65*) 1077c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=w65-wdc 1078c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-none 1079c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1080c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott w89k-*) 1081c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-winbond 1082c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-proelf 1083c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1084c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott xbox) 1085c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=i686-pc 1086c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mingw32 1087c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1088c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott xps | xps100) 1089c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=xps100-honeywell 1090c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1091c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ymp) 1092c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=ymp-cray 1093c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unicos 1094c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1095c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott z8k-*-coff) 1096c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=z8k-unknown 1097c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sim 1098c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1099c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott none) 1100c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=none-none 1101c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-none 1102c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1103c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1104c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Here we handle the default manufacturer of certain CPU types. It is in 1105c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# some cases the only manufacturer, in others, it is the most popular. 1106c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott w89k) 1107c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-winbond 1108c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1109c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott op50n) 1110c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-oki 1111c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1112c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott op60c) 1113c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=hppa1.1-oki 1114c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1115c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott romp) 1116c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=romp-ibm 1117c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1118c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mmix) 1119c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=mmix-knuth 1120c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1121c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott rs6000) 1122c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=rs6000-ibm 1123c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1124c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vax) 1125c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=vax-dec 1126c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1127c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pdp10) 1128c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # there are many clones, so DEC is not a safe bet 1129c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=pdp10-unknown 1130c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1131c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pdp11) 1132c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=pdp11-dec 1133c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1134c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott we32k) 1135c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=we32k-att 1136c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1137c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1138c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sh-unknown 1139c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1140c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1141c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=sparc-sun 1142c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1143c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott cydra) 1144c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=cydra-cydrome 1145c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1146c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott orion) 1147c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=orion-highlevel 1148c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1149c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott orion105) 1150c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=clipper-highlevel 1151c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1152c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mac | mpw | mac-mpw) 1153c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=m68k-apple 1154c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1155c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pmac | pmac-mpw) 1156c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=powerpc-apple 1157c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1158c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-unknown) 1159c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Make sure to match an already-canonicalized machine name. 1160c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1161c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 1162c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 1163c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit 1 1164c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1165c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 1166c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1167c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Here we canonicalize certain aliases for manufacturers. 1168c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $basic_machine in 1169c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-digital*) 1170c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 1171c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1172c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-commodore*) 1173c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 1174c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1175c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 1176c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1177c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 1178c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1179c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Decode manufacturer-specific aliases for certain operating systems. 1180c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1181c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottif [ x"$os" != x"" ] 1182c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottthen 1183c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $os in 1184c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # First match some system type aliases 1185c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # that might get confused with valid system types. 1186c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # -solaris* is a basic system type, with this one exception. 1187c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -solaris1 | -solaris1.*) 1188c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|solaris1|sunos4|'` 1189c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1190c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -solaris) 1191c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-solaris2 1192c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1193c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -svr4*) 1194c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 1195c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1196c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -unixware*) 1197c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4.2uw 1198c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1199c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -gnu/linux*) 1200c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1201c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1202c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # First accept the basic system types. 1203c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # The portable systems comes first. 1204c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Each alternative MUST END IN A *, to match a version number. 1205c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # -sysv* is not here because it comes later, after sysvr4. 1206c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1207c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1208c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1209c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1210c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -aos* \ 1211c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1212c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1213c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1214c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -openbsd* | -solidbsd* \ 1215c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1216c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1217c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1218c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1219c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -chorusos* | -chorusrdb* \ 1220c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1221c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1222c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -uxpv* | -beos* | -mpeix* | -udk* \ 1223c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1224c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1225c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1226c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1227c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1228c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1229c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 1230c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Remember, each alternative MUST END IN *, to match a version number. 1231c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1232c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -qnx*) 1233c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott case $basic_machine in 1234c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott x86-* | i*86-*) 1235c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1236c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 1237c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nto$os 1238c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1239c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott esac 1240c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1241c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -nto-qnx*) 1242c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1243c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -nto*) 1244c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|nto|nto-qnx|'` 1245c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1246c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1247c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1248c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1249c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1250c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -mac*) 1251c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|mac|macos|'` 1252c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1253c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -linux-dietlibc) 1254c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-linux-dietlibc 1255c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1256c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -linux*) 1257c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|linux|linux-gnu|'` 1258c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1259c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sunos5*) 1260c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|sunos5|solaris2|'` 1261c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1262c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sunos6*) 1263c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|sunos6|solaris3|'` 1264c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1265c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -opened*) 1266c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-openedition 1267c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1268c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -os400*) 1269c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-os400 1270c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1271c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -wince*) 1272c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-wince 1273c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1274c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -osfrose*) 1275c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-osfrose 1276c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1277c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -osf*) 1278c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-osf 1279c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1280c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -utek*) 1281c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 1282c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1283c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -dynix*) 1284c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 1285c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1286c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -acis*) 1287c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-aos 1288c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1289c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -atheos*) 1290c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-atheos 1291c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1292c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -syllable*) 1293c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-syllable 1294c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1295c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -386bsd) 1296c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 1297c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1298c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -ctix* | -uts*) 1299c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 1300c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1301c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -nova*) 1302c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-rtmk-nova 1303c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1304c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -ns2 ) 1305c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nextstep2 1306c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1307c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -nsk*) 1308c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nsk 1309c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1310c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Preserve the version number of sinix5. 1311c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sinix5.*) 1312c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed -e 's|sinix|sysv|'` 1313c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1314c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sinix*) 1315c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 1316c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1317c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -tpf*) 1318c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-tpf 1319c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1320c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -triton*) 1321c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 1322c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1323c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -oss*) 1324c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 1325c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1326c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -svr4) 1327c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 1328c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1329c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -svr3) 1330c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 1331c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1332c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sysvr4) 1333c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 1334c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1335c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # This must come after -sysvr4. 1336c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sysv*) 1337c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1338c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -ose*) 1339c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ose 1340c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1341c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -es1800*) 1342c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ose 1343c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1344c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -xenix) 1345c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-xenix 1346c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1347c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1348c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mint 1349c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1350c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -aros*) 1351c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-aros 1352c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1353c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -kaos*) 1354c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-kaos 1355c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1356c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -zvmoe) 1357c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-zvmoe 1358c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1359c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -none) 1360c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1361c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 1362c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # Get rid of the `-' at the beginning of $os. 1363c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=`echo $os | sed 's/[^-]*-//'` 1364c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 1365c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott exit 1 1366c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1367c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 1368c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottelse 1369c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1370c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Here we handle the default operating systems that come with various machines. 1371c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# The value should be what the vendor currently ships out the door with their 1372c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# machine or put another way, the most popular os provided with the machine. 1373c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1374c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Note that if you're going to try to match "-MANUFACTURER" here (say, 1375c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# "-sun"), then you have to tell the case statement up towards the top 1376c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# that MANUFACTURER isn't an operating system. Otherwise, code above 1377c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# will signal an error saying that MANUFACTURER isn't an operating 1378c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# system, and we'll never get to this point. 1379c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1380c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $basic_machine in 1381c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott score-*) 1382c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 1383c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1384c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott spu-*) 1385c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 1386c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1387c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-acorn) 1388c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-riscix1.2 1389c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1390c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott arm*-rebel) 1391c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-linux 1392c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1393c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott arm*-semi) 1394c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-aout 1395c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1396c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott c4x-* | tic4x-*) 1397c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1398c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1399c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # This must come before the *-dec entry. 1400c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pdp10-*) 1401c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-tops20 1402c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1403c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott pdp11-*) 1404c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-none 1405c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1406c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-dec | vax-*) 1407c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ultrix4.2 1408c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1409c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m68*-apollo) 1410c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-domain 1411c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1412c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i386-sun) 1413c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos4.0.2 1414c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1415c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m68000-sun) 1416c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos3 1417c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # This also exists in the configure program, but was not the 1418c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # default. 1419c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott # os=-sunos4 1420c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1421c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m68*-cisco) 1422c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-aout 1423c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1424c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mep-*) 1425c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 1426c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1427c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mips*-cisco) 1428c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 1429c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1430c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott mips*-*) 1431c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-elf 1432c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1433c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott or32-*) 1434c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1435c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1436c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-tti) # must be before sparc entry or we get the wrong os. 1437c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 1438c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1439c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott sparc-* | *-sun) 1440c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sunos4.1.1 1441c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1442c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-be) 1443c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-beos 1444c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1445c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-haiku) 1446c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-haiku 1447c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1448c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-ibm) 1449c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-aix 1450c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1451c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-knuth) 1452c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mmixware 1453c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1454c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-wec) 1455c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-proelf 1456c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1457c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-winbond) 1458c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-proelf 1459c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1460c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-oki) 1461c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-proelf 1462c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1463c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-hp) 1464c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hpux 1465c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1466c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-hitachi) 1467c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-hiux 1468c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1469c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1470c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 1471c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1472c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-cbm) 1473c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-amigaos 1474c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1475c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-dg) 1476c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-dgux 1477c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1478c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-dolphin) 1479c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv3 1480c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1481c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m68k-ccur) 1482c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-rtu 1483c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1484c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott m88k-omron*) 1485c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-luna 1486c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1487c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-next ) 1488c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nextstep 1489c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1490c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-sequent) 1491c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-ptx 1492c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1493c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-crds) 1494c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-unos 1495c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1496c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-ns) 1497c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-genix 1498c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1499c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott i370-*) 1500c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mvs 1501c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1502c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-next) 1503c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-nextstep3 1504c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1505c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-gould) 1506c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv 1507c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1508c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-highlevel) 1509c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 1510c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1511c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-encore) 1512c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-bsd 1513c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1514c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-sgi) 1515c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-irix 1516c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1517c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-siemens) 1518c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-sysv4 1519c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1520c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-masscomp) 1521c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-rtu 1522c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1523c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott f30[01]-fujitsu | f700-fujitsu) 1524c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-uxpv 1525c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1526c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-rom68k) 1527c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1528c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1529c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-*bug) 1530c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-coff 1531c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1532c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-apple) 1533c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-macos 1534c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1535c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-atari*) 1536c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-mint 1537c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1538c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *) 1539c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott os=-none 1540c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1541c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 1542c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottfi 1543c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1544c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Here we handle the case where we know the os, and the CPU type, but not the 1545c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# manufacturer. We pick the logical manufacturer. 1546c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottvendor=unknown 1547c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottcase $basic_machine in 1548c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott *-unknown) 1549c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott case $os in 1550c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -riscix*) 1551c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=acorn 1552c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1553c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -sunos*) 1554c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=sun 1555c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1556c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -aix*) 1557c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=ibm 1558c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1559c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -beos*) 1560c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=be 1561c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1562c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -hpux*) 1563c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=hp 1564c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1565c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -mpeix*) 1566c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=hp 1567c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1568c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -hiux*) 1569c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=hitachi 1570c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1571c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -unos*) 1572c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=crds 1573c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1574c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -dgux*) 1575c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=dg 1576c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1577c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -luna*) 1578c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=omron 1579c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1580c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -genix*) 1581c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=ns 1582c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1583c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -mvs* | -opened*) 1584c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=ibm 1585c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1586c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -os400*) 1587c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=ibm 1588c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1589c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -ptx*) 1590c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=sequent 1591c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1592c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -tpf*) 1593c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=ibm 1594c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1595c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -vxsim* | -vxworks* | -windiss*) 1596c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=wrs 1597c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1598c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -aux*) 1599c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=apple 1600c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1601c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -hms*) 1602c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=hitachi 1603c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1604c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -mpw* | -macos*) 1605c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=apple 1606c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1607c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1608c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=atari 1609c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1610c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott -vos*) 1611c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott vendor=stratus 1612c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1613c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott esac 1614c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1615c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott ;; 1616c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottesac 1617c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1618c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottecho $basic_machine$os 1619c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scottexit 1620c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott 1621c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# Local variables: 1622c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# eval: (add-hook 'write-file-hooks 'time-stamp) 1623c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# time-stamp-start: "timestamp='" 1624c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# time-stamp-format: "%:y-%02m-%02d" 1625c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# time-stamp-end: "'" 1626c7f5f8508d98d5952d42ed7648c2a8f30a4da156Patrick Scott# End: 1627