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