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