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