annotate config.sub @ 4:311e331f1bab

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