comparison config.sub @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 8626e4521993
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
1 #! /bin/sh 1 #! /bin/sh
2 # Configuration validation subroutine script, version 1.1. 2 # Configuration validation subroutine script, version 1.1.
3 # Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. 3 # Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
4 # This file is (in principle) common to ALL GNU software. 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 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. 6 # can handle that machine. It does not imply ALL GNU software can.
7 # 7 #
8 # This file is free software; you can redistribute it and/or modify 8 # This file is free software; you can redistribute it and/or modify
96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97 -apple) 97 -apple)
98 os= 98 os=
99 basic_machine=$1 99 basic_machine=$1
100 ;; 100 ;;
101 -sim | -cisco | -oki | -wec | -winbond)
102 os=
103 basic_machine=$1
104 ;;
105 -scout)
106 ;;
107 -wrs)
108 os=-vxworks
109 basic_machine=$1
110 ;;
101 -hiux*) 111 -hiux*)
102 os=-hiuxwe2 112 os=-hiuxwe2
103 ;; 113 ;;
104 -sco5) 114 -sco5)
105 os=sco3.2v5 115 os=-sco3.2v5
106 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 116 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
107 ;; 117 ;;
108 -sco4) 118 -sco4)
109 os=-sco3.2v4 119 os=-sco3.2v4
110 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 120 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
119 ;; 129 ;;
120 -sco*) 130 -sco*)
121 os=-sco3.2v2 131 os=-sco3.2v2
122 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 132 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
123 ;; 133 ;;
134 -udk*)
135 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
136 ;;
124 -isc) 137 -isc)
125 os=-isc2.2 138 os=-isc2.2
126 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 139 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
127 ;; 140 ;;
128 -clix*) 141 -clix*)
140 -windowsnt*) 153 -windowsnt*)
141 os=`echo $os | sed -e 's/windowsnt/winnt/'` 154 os=`echo $os | sed -e 's/windowsnt/winnt/'`
142 ;; 155 ;;
143 -psos*) 156 -psos*)
144 os=-psos 157 os=-psos
158 ;;
159 -mint | -mint[0-9]*)
160 basic_machine=m68k-atari
161 os=-mint
145 ;; 162 ;;
146 esac 163 esac
147 164
148 # Decode aliases for certain CPU-COMPANY combinations. 165 # Decode aliases for certain CPU-COMPANY combinations.
149 case $basic_machine in 166 case $basic_machine in
150 # Recognize the basic CPU types without company name. 167 # Recognize the basic CPU types without company name.
151 # Some are omitted here because they have special meanings below. 168 # Some are omitted here because they have special meanings below.
152 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 169 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
153 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ 170 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
154 | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ 171 | 580 | i960 | h8300 \
155 | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ 172 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
156 | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ 173 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
157 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ 174 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
158 | mipstx39 | mipstx39el \ 175 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
159 | sparc | sparclet | sparclite | sparc64 | v850) 176 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
177 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
178 | mips64vr5000 | miprs64vr5000el | mcore \
179 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
180 | thumb | d10v | fr30)
160 basic_machine=$basic_machine-unknown 181 basic_machine=$basic_machine-unknown
161 ;; 182 ;;
183 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
184 ;;
185
162 # We use `pc' rather than `unknown' 186 # We use `pc' rather than `unknown'
163 # because (1) that's what they normally are, and 187 # because (1) that's what they normally are, and
164 # (2) the word "unknown" tends to confuse beginning users. 188 # (2) the word "unknown" tends to confuse beginning users.
165 i[34567]86) 189 i[34567]86)
166 basic_machine=$basic_machine-pc 190 basic_machine=$basic_machine-pc
169 *-*-*) 193 *-*-*)
170 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 194 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
171 exit 1 195 exit 1
172 ;; 196 ;;
173 # Recognize the basic CPU types with company name. 197 # Recognize the basic CPU types with company name.
174 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ 198 # FIXME: clean up the formatting here.
199 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
175 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 200 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
176 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 201 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
177 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ 202 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
178 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ 203 | xmp-* | ymp-* \
179 | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ 204 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
180 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ 205 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
206 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
207 | clipper-* | orion-* \
181 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 208 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
182 | sparc64-* | mips64-* | mipsel-* \ 209 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
183 | mips64el-* | mips64orion-* | mips64orionel-* \ 210 | mips64el-* | mips64orion-* | mips64orionel-* \
184 | mipstx39-* | mipstx39el-* \ 211 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
185 | f301-*) 212 | mipstx39-* | mipstx39el-* | mcore-* \
213 | f301-* | armv*-* | t3e-* \
214 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
215 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
186 ;; 216 ;;
187 # Recognize the various machine names and aliases which stand 217 # Recognize the various machine names and aliases which stand
188 # for a CPU type and a company and sometimes even an OS. 218 # for a CPU type and a company and sometimes even an OS.
219 386bsd)
220 basic_machine=i386-unknown
221 os=-bsd
222 ;;
189 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 223 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
190 basic_machine=m68000-att 224 basic_machine=m68000-att
191 ;; 225 ;;
192 3b*) 226 3b*)
193 basic_machine=we32k-att 227 basic_machine=we32k-att
228 ;;
229 a29khif)
230 basic_machine=a29k-amd
231 os=-udi
232 ;;
233 adobe68k)
234 basic_machine=m68010-adobe
235 os=-scout
194 ;; 236 ;;
195 alliant | fx80) 237 alliant | fx80)
196 basic_machine=fx80-alliant 238 basic_machine=fx80-alliant
197 ;; 239 ;;
198 altos | altos3068) 240 altos | altos3068)
219 ;; 261 ;;
220 apollo68) 262 apollo68)
221 basic_machine=m68k-apollo 263 basic_machine=m68k-apollo
222 os=-sysv 264 os=-sysv
223 ;; 265 ;;
266 apollo68bsd)
267 basic_machine=m68k-apollo
268 os=-bsd
269 ;;
224 aux) 270 aux)
225 basic_machine=m68k-apple 271 basic_machine=m68k-apple
226 os=-aux 272 os=-aux
227 ;; 273 ;;
228 balance) 274 balance)
295 os=-bsd 341 os=-bsd
296 ;; 342 ;;
297 encore | umax | mmax) 343 encore | umax | mmax)
298 basic_machine=ns32k-encore 344 basic_machine=ns32k-encore
299 ;; 345 ;;
346 es1800 | OSE68k | ose68k | ose | OSE)
347 basic_machine=m68k-ericsson
348 os=-ose
349 ;;
300 fx2800) 350 fx2800)
301 basic_machine=i860-alliant 351 basic_machine=i860-alliant
302 ;; 352 ;;
303 genix) 353 genix)
304 basic_machine=ns32k-ns 354 basic_machine=ns32k-ns
313 ;; 363 ;;
314 h8300hms) 364 h8300hms)
315 basic_machine=h8300-hitachi 365 basic_machine=h8300-hitachi
316 os=-hms 366 os=-hms
317 ;; 367 ;;
368 h8300xray)
369 basic_machine=h8300-hitachi
370 os=-xray
371 ;;
372 h8500hms)
373 basic_machine=h8500-hitachi
374 os=-hms
375 ;;
318 harris) 376 harris)
319 basic_machine=m88k-harris 377 basic_machine=m88k-harris
320 os=-sysv3 378 os=-sysv3
321 ;; 379 ;;
322 hp300-*) 380 hp300-*)
328 ;; 386 ;;
329 hp300hpux) 387 hp300hpux)
330 basic_machine=m68k-hp 388 basic_machine=m68k-hp
331 os=-hpux 389 os=-hpux
332 ;; 390 ;;
391 hp3k9[0-9][0-9] | hp9[0-9][0-9])
392 basic_machine=hppa1.0-hp
393 ;;
333 hp9k2[0-9][0-9] | hp9k31[0-9]) 394 hp9k2[0-9][0-9] | hp9k31[0-9])
334 basic_machine=m68000-hp 395 basic_machine=m68000-hp
335 ;; 396 ;;
336 hp9k3[2-9][0-9]) 397 hp9k3[2-9][0-9])
337 basic_machine=m68k-hp 398 basic_machine=m68k-hp
338 ;; 399 ;;
339 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) 400 hp9k6[0-9][0-9] | hp6[0-9][0-9])
401 basic_machine=hppa1.0-hp
402 ;;
403 hp9k7[0-79][0-9] | hp7[0-79][0-9])
404 basic_machine=hppa1.1-hp
405 ;;
406 hp9k78[0-9] | hp78[0-9])
407 # FIXME: really hppa2.0-hp
408 basic_machine=hppa1.1-hp
409 ;;
410 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
411 # FIXME: really hppa2.0-hp
412 basic_machine=hppa1.1-hp
413 ;;
414 hp9k8[0-9][13679] | hp8[0-9][13679])
340 basic_machine=hppa1.1-hp 415 basic_machine=hppa1.1-hp
341 ;; 416 ;;
342 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 417 hp9k8[0-9][0-9] | hp8[0-9][0-9])
343 basic_machine=hppa1.0-hp 418 basic_machine=hppa1.0-hp
344 ;; 419 ;;
345 hppa-next) 420 hppa-next)
346 os=-nextstep3 421 os=-nextstep3
347 ;; 422 ;;
423 hppaosf)
424 basic_machine=hppa1.1-hp
425 os=-osf
426 ;;
427 hppro)
428 basic_machine=hppa1.1-hp
429 os=-proelf
430 ;;
348 i370-ibm* | ibm*) 431 i370-ibm* | ibm*)
349 basic_machine=i370-ibm 432 basic_machine=i370-ibm
350 os=-mvs
351 ;; 433 ;;
352 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 434 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
353 i[34567]86v32) 435 i[34567]86v32)
354 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 436 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
355 os=-sysv32 437 os=-sysv32
363 os=-sysv 445 os=-sysv
364 ;; 446 ;;
365 i[34567]86sol2) 447 i[34567]86sol2)
366 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 448 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
367 os=-solaris2 449 os=-solaris2
450 ;;
451 i386mach)
452 basic_machine=i386-mach
453 os=-mach
454 ;;
455 i386-vsta | vsta)
456 basic_machine=i386-unknown
457 os=-vsta
458 ;;
459 i386-go32 | go32)
460 basic_machine=i386-unknown
461 os=-go32
462 ;;
463 i386-mingw32 | mingw32)
464 basic_machine=i386-unknown
465 os=-mingw32
466 ;;
467 i386-qnx | qnx)
468 basic_machine=i386-qnx
368 ;; 469 ;;
369 iris | iris4d) 470 iris | iris4d)
370 basic_machine=mips-sgi 471 basic_machine=mips-sgi
371 case $os in 472 case $os in
372 -irix*) 473 -irix*)
392 os=-sysv 493 os=-sysv
393 ;; 494 ;;
394 miniframe) 495 miniframe)
395 basic_machine=m68000-convergent 496 basic_machine=m68000-convergent
396 ;; 497 ;;
498 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
499 basic_machine=m68k-atari
500 os=-mint
501 ;;
397 mipsel*-linux*) 502 mipsel*-linux*)
398 basic_machine=mipsel-unknown 503 basic_machine=mipsel-unknown
399 os=-linux-gnu 504 os=-linux-gnu
400 ;; 505 ;;
401 mips*-linux*) 506 mips*-linux*)
406 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 511 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
407 ;; 512 ;;
408 mips3*) 513 mips3*)
409 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 514 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
410 ;; 515 ;;
516 monitor)
517 basic_machine=m68k-rom68k
518 os=-coff
519 ;;
520 msdos)
521 basic_machine=i386-unknown
522 os=-msdos
523 ;;
524 mvs)
525 basic_machine=i370-ibm
526 os=-mvs
527 ;;
411 ncr3000) 528 ncr3000)
412 basic_machine=i486-ncr 529 basic_machine=i486-ncr
413 os=-sysv4 530 os=-sysv4
414 ;; 531 ;;
532 netbsd386)
533 basic_machine=i386-unknown
534 os=-netbsd
535 ;;
536 netwinder)
537 basic_machine=armv4l-rebel
538 os=-linux
539 ;;
415 news | news700 | news800 | news900) 540 news | news700 | news800 | news900)
416 basic_machine=m68k-sony 541 basic_machine=m68k-sony
417 os=-newsos 542 os=-newsos
418 ;; 543 ;;
419 news1000) 544 news1000)
421 os=-newsos 546 os=-newsos
422 ;; 547 ;;
423 news-3600 | risc-news) 548 news-3600 | risc-news)
424 basic_machine=mips-sony 549 basic_machine=mips-sony
425 os=-newsos 550 os=-newsos
551 ;;
552 necv70)
553 basic_machine=v70-nec
554 os=-sysv
426 ;; 555 ;;
427 next | m*-next ) 556 next | m*-next )
428 basic_machine=m68k-next 557 basic_machine=m68k-next
429 case $os in 558 case $os in
430 -nextstep* ) 559 -nextstep* )
447 ;; 576 ;;
448 nindy960) 577 nindy960)
449 basic_machine=i960-intel 578 basic_machine=i960-intel
450 os=-nindy 579 os=-nindy
451 ;; 580 ;;
581 mon960)
582 basic_machine=i960-intel
583 os=-mon960
584 ;;
452 np1) 585 np1)
453 basic_machine=np1-gould 586 basic_machine=np1-gould
587 ;;
588 op50n-* | op60c-*)
589 basic_machine=hppa1.1-oki
590 os=-proelf
591 ;;
592 OSE68000 | ose68000)
593 basic_machine=m68000-ericsson
594 os=-ose
595 ;;
596 os68k)
597 basic_machine=m68k-none
598 os=-os68k
454 ;; 599 ;;
455 pa-hitachi) 600 pa-hitachi)
456 basic_machine=hppa1.1-hitachi 601 basic_machine=hppa1.1-hitachi
457 os=-hiuxwe2 602 os=-hiuxwe2
458 ;; 603 ;;
467 basic_machine=m68k-tti 612 basic_machine=m68k-tti
468 ;; 613 ;;
469 pc532 | pc532-*) 614 pc532 | pc532-*)
470 basic_machine=ns32k-pc532 615 basic_machine=ns32k-pc532
471 ;; 616 ;;
472 pentium | p5 | k5 | nexen) 617 pentium | p5 | k5 | k6 | nexen)
473 basic_machine=i586-pc 618 basic_machine=i586-pc
474 ;; 619 ;;
475 pentiumpro | p6 | k6 | 6x86) 620 pentiumpro | p6 | 6x86)
476 basic_machine=i686-pc 621 basic_machine=i686-pc
477 ;; 622 ;;
478 pentiumii | pentium2) 623 pentiumii | pentium2)
479 basic_machine=i786-pc 624 basic_machine=i786-pc
480 ;; 625 ;;
481 pentium-* | p5-* | k5-* | nexen-*) 626 pentium-* | p5-* | k5-* | k6-* | nexen-*)
482 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 627 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
483 ;; 628 ;;
484 pentiumpro-* | p6-* | k6-* | 6x86-*) 629 pentiumpro-* | p6-* | 6x86-*)
485 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 630 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
486 ;; 631 ;;
487 pentiumii-* | pentium2-*) 632 pentiumii-* | pentium2-*)
488 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 633 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
489 ;; 634 ;;
503 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 648 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
504 ;; 649 ;;
505 ps2) 650 ps2)
506 basic_machine=i386-ibm 651 basic_machine=i386-ibm
507 ;; 652 ;;
653 rom68k)
654 basic_machine=m68k-rom68k
655 os=-coff
656 ;;
508 rm[46]00) 657 rm[46]00)
509 basic_machine=mips-siemens 658 basic_machine=mips-siemens
510 ;; 659 ;;
511 rtpc | rtpc-*) 660 rtpc | rtpc-*)
512 basic_machine=romp-ibm 661 basic_machine=romp-ibm
662 ;;
663 sa29200)
664 basic_machine=a29k-amd
665 os=-udi
513 ;; 666 ;;
514 sequent) 667 sequent)
515 basic_machine=i386-sequent 668 basic_machine=i386-sequent
516 ;; 669 ;;
517 sh) 670 sh)
518 basic_machine=sh-hitachi 671 basic_machine=sh-hitachi
519 os=-hms 672 os=-hms
520 ;; 673 ;;
674 sparclite-wrs)
675 basic_machine=sparclite-wrs
676 os=-vxworks
677 ;;
521 sps7) 678 sps7)
522 basic_machine=m68k-bull 679 basic_machine=m68k-bull
523 os=-sysv2 680 os=-sysv2
524 ;; 681 ;;
525 spur) 682 spur)
526 basic_machine=spur-unknown 683 basic_machine=spur-unknown
527 ;; 684 ;;
685 st2000)
686 basic_machine=m68k-tandem
687 ;;
688 stratus)
689 basic_machine=i860-stratus
690 os=-sysv4
691 ;;
528 sun2) 692 sun2)
529 basic_machine=m68000-sun 693 basic_machine=m68000-sun
530 ;; 694 ;;
531 sun2os3) 695 sun2os3)
532 basic_machine=m68000-sun 696 basic_machine=m68000-sun
567 ;; 731 ;;
568 symmetry) 732 symmetry)
569 basic_machine=i386-sequent 733 basic_machine=i386-sequent
570 os=-dynix 734 os=-dynix
571 ;; 735 ;;
736 t3e)
737 basic_machine=t3e-cray
738 os=-unicos
739 ;;
572 tx39) 740 tx39)
573 basic_machine=mipstx39-unknown 741 basic_machine=mipstx39-unknown
574 ;; 742 ;;
575 tx39el) 743 tx39el)
576 basic_machine=mipstx39el-unknown 744 basic_machine=mipstx39el-unknown
583 os=-udi 751 os=-udi
584 ;; 752 ;;
585 ultra3) 753 ultra3)
586 basic_machine=a29k-nyu 754 basic_machine=a29k-nyu
587 os=-sym1 755 os=-sym1
756 ;;
757 v810 | necv810)
758 basic_machine=v810-nec
759 os=-none
588 ;; 760 ;;
589 vaxv) 761 vaxv)
590 basic_machine=vax-dec 762 basic_machine=vax-dec
591 os=-sysv 763 os=-sysv
592 ;; 764 ;;
607 ;; 779 ;;
608 vxworks29k) 780 vxworks29k)
609 basic_machine=a29k-wrs 781 basic_machine=a29k-wrs
610 os=-vxworks 782 os=-vxworks
611 ;; 783 ;;
784 w65*)
785 basic_machine=w65-wdc
786 os=-none
787 ;;
788 w89k-*)
789 basic_machine=hppa1.1-winbond
790 os=-proelf
791 ;;
612 xmp) 792 xmp)
613 basic_machine=xmp-cray 793 basic_machine=xmp-cray
614 os=-unicos 794 os=-unicos
615 ;; 795 ;;
616 xps | xps100) 796 xps | xps100)
617 basic_machine=xps100-honeywell 797 basic_machine=xps100-honeywell
618 ;; 798 ;;
799 z8k-*-coff)
800 basic_machine=z8k-unknown
801 os=-sim
802 ;;
619 none) 803 none)
620 basic_machine=none-none 804 basic_machine=none-none
621 os=-none 805 os=-none
622 ;; 806 ;;
623 807
624 # Here we handle the default manufacturer of certain CPU types. It is in 808 # Here we handle the default manufacturer of certain CPU types. It is in
625 # some cases the only manufacturer, in others, it is the most popular. 809 # some cases the only manufacturer, in others, it is the most popular.
810 w89k)
811 basic_machine=hppa1.1-winbond
812 ;;
813 op50n)
814 basic_machine=hppa1.1-oki
815 ;;
816 op60c)
817 basic_machine=hppa1.1-oki
818 ;;
626 mips) 819 mips)
627 if [ x$os = x-linux-gnu ]; then 820 if [ x$os = x-linux-gnu ]; then
628 basic_machine=mips-unknown 821 basic_machine=mips-unknown
629 else 822 else
630 basic_machine=mips-mips 823 basic_machine=mips-mips
643 basic_machine=pdp11-dec 836 basic_machine=pdp11-dec
644 ;; 837 ;;
645 we32k) 838 we32k)
646 basic_machine=we32k-att 839 basic_machine=we32k-att
647 ;; 840 ;;
648 sparc) 841 sparc | sparcv9)
649 basic_machine=sparc-sun 842 basic_machine=sparc-sun
650 ;; 843 ;;
651 cydra) 844 cydra)
652 basic_machine=cydra-cydrome 845 basic_machine=cydra-cydrome
653 ;; 846 ;;
654 orion) 847 orion)
655 basic_machine=orion-highlevel 848 basic_machine=orion-highlevel
656 ;; 849 ;;
657 orion105) 850 orion105)
658 basic_machine=clipper-highlevel 851 basic_machine=clipper-highlevel
852 ;;
853 mac | mpw | mac-mpw)
854 basic_machine=m68k-apple
855 ;;
856 pmac | pmac-mpw)
857 basic_machine=powerpc-apple
858 ;;
859 c4x*)
860 basic_machine=c4x-none
861 os=-coff
659 ;; 862 ;;
660 *) 863 *)
661 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 864 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
662 exit 1 865 exit 1
663 ;; 866 ;;
708 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 911 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
709 | -aos* \ 912 | -aos* \
710 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 913 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
711 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 914 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
712 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 915 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
713 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ 916 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
714 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 917 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
715 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 918 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
716 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 919 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
717 | -mingw32* | -linux-gnu* | -uxpv* | -beos*) 920 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
921 | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
718 # Remember, each alternative MUST END IN *, to match a version number. 922 # Remember, each alternative MUST END IN *, to match a version number.
923 ;;
924 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
925 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
926 | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
927 ;;
928 -mac*)
929 os=`echo $os | sed -e 's|mac|macos|'`
719 ;; 930 ;;
720 -linux*) 931 -linux*)
721 os=`echo $os | sed -e 's|linux|linux-gnu|'` 932 os=`echo $os | sed -e 's|linux|linux-gnu|'`
722 ;; 933 ;;
723 -sunos5*) 934 -sunos5*)
724 os=`echo $os | sed -e 's|sunos5|solaris2|'` 935 os=`echo $os | sed -e 's|sunos5|solaris2|'`
725 ;; 936 ;;
726 -sunos6*) 937 -sunos6*)
727 os=`echo $os | sed -e 's|sunos6|solaris3|'` 938 os=`echo $os | sed -e 's|sunos6|solaris3|'`
728 ;; 939 ;;
940 -opened*)
941 os=-openedition
942 ;;
729 -osfrose*) 943 -osfrose*)
730 os=-osfrose 944 os=-osfrose
731 ;; 945 ;;
732 -osf*) 946 -osf*)
733 os=-osf 947 os=-osf
738 -dynix*) 952 -dynix*)
739 os=-bsd 953 os=-bsd
740 ;; 954 ;;
741 -acis*) 955 -acis*)
742 os=-aos 956 os=-aos
957 ;;
958 -386bsd)
959 os=-bsd
743 ;; 960 ;;
744 -ctix* | -uts*) 961 -ctix* | -uts*)
745 os=-sysv 962 os=-sysv
746 ;; 963 ;;
747 -ns2 ) 964 -ns2 )
758 os=-sysv3 975 os=-sysv3
759 ;; 976 ;;
760 -oss*) 977 -oss*)
761 os=-sysv3 978 os=-sysv3
762 ;; 979 ;;
980 -qnx)
981 os=-qnx4
982 ;;
763 -svr4) 983 -svr4)
764 os=-sysv4 984 os=-sysv4
765 ;; 985 ;;
766 -svr3) 986 -svr3)
767 os=-sysv3 987 os=-sysv3
770 os=-sysv4 990 os=-sysv4
771 ;; 991 ;;
772 # This must come after -sysvr4. 992 # This must come after -sysvr4.
773 -sysv*) 993 -sysv*)
774 ;; 994 ;;
995 -ose*)
996 os=-ose
997 ;;
998 -es1800*)
999 os=-ose
1000 ;;
775 -xenix) 1001 -xenix)
776 os=-xenix 1002 os=-xenix
1003 ;;
1004 -*mint | -*MiNT)
1005 os=-mint
777 ;; 1006 ;;
778 -none) 1007 -none)
779 ;; 1008 ;;
780 *) 1009 *)
781 # Get rid of the `-' at the beginning of $os. 1010 # Get rid of the `-' at the beginning of $os.
798 1027
799 case $basic_machine in 1028 case $basic_machine in
800 *-acorn) 1029 *-acorn)
801 os=-riscix1.2 1030 os=-riscix1.2
802 ;; 1031 ;;
1032 arm*-rebel)
1033 os=-linux
1034 ;;
803 arm*-semi) 1035 arm*-semi)
804 os=-aout 1036 os=-aout
805 ;; 1037 ;;
806 pdp11-*) 1038 pdp11-*)
807 os=-none 1039 os=-none
819 os=-sunos3 1051 os=-sunos3
820 # This also exists in the configure program, but was not the 1052 # This also exists in the configure program, but was not the
821 # default. 1053 # default.
822 # os=-sunos4 1054 # os=-sunos4
823 ;; 1055 ;;
1056 m68*-cisco)
1057 os=-aout
1058 ;;
1059 mips*-cisco)
1060 os=-elf
1061 ;;
1062 mips*-*)
1063 os=-elf
1064 ;;
824 *-tti) # must be before sparc entry or we get the wrong os. 1065 *-tti) # must be before sparc entry or we get the wrong os.
825 os=-sysv3 1066 os=-sysv3
826 ;; 1067 ;;
827 sparc-* | *-sun) 1068 sparc-* | *-sun)
828 os=-sunos4.1.1 1069 os=-sunos4.1.1
831 os=-beos 1072 os=-beos
832 ;; 1073 ;;
833 *-ibm) 1074 *-ibm)
834 os=-aix 1075 os=-aix
835 ;; 1076 ;;
1077 *-wec)
1078 os=-proelf
1079 ;;
1080 *-winbond)
1081 os=-proelf
1082 ;;
1083 *-oki)
1084 os=-proelf
1085 ;;
836 *-hp) 1086 *-hp)
837 os=-hpux 1087 os=-hpux
838 ;; 1088 ;;
839 *-hitachi) 1089 *-hitachi)
840 os=-hiux 1090 os=-hiux
893 *-masscomp) 1143 *-masscomp)
894 os=-rtu 1144 os=-rtu
895 ;; 1145 ;;
896 f301-fujitsu) 1146 f301-fujitsu)
897 os=-uxpv 1147 os=-uxpv
1148 ;;
1149 *-rom68k)
1150 os=-coff
1151 ;;
1152 *-*bug)
1153 os=-coff
1154 ;;
1155 *-apple)
1156 os=-macos
1157 ;;
1158 *-atari*)
1159 os=-mint
898 ;; 1160 ;;
899 *) 1161 *)
900 os=-none 1162 os=-none
901 ;; 1163 ;;
902 esac 1164 esac
915 vendor=sun 1177 vendor=sun
916 ;; 1178 ;;
917 -aix*) 1179 -aix*)
918 vendor=ibm 1180 vendor=ibm
919 ;; 1181 ;;
1182 -beos*)
1183 vendor=be
1184 ;;
920 -hpux*) 1185 -hpux*)
921 vendor=hp 1186 vendor=hp
922 ;; 1187 ;;
1188 -mpeix*)
1189 vendor=hp
1190 ;;
923 -hiux*) 1191 -hiux*)
924 vendor=hitachi 1192 vendor=hitachi
925 ;; 1193 ;;
926 -unos*) 1194 -unos*)
927 vendor=crds 1195 vendor=crds
933 vendor=omron 1201 vendor=omron
934 ;; 1202 ;;
935 -genix*) 1203 -genix*)
936 vendor=ns 1204 vendor=ns
937 ;; 1205 ;;
938 -mvs*) 1206 -mvs* | -opened*)
939 vendor=ibm 1207 vendor=ibm
940 ;; 1208 ;;
941 -ptx*) 1209 -ptx*)
942 vendor=sequent 1210 vendor=sequent
943 ;; 1211 ;;
945 vendor=wrs 1213 vendor=wrs
946 ;; 1214 ;;
947 -aux*) 1215 -aux*)
948 vendor=apple 1216 vendor=apple
949 ;; 1217 ;;
1218 -hms*)
1219 vendor=hitachi
1220 ;;
1221 -mpw* | -macos*)
1222 vendor=apple
1223 ;;
1224 -*mint | -*MiNT)
1225 vendor=atari
1226 ;;
950 esac 1227 esac
951 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1228 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
952 ;; 1229 ;;
953 esac 1230 esac
954 1231