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