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