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