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