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