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