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