Mercurial > hg > xemacs-beta
comparison config.sub @ 458:c33ae14dd6d0 r21-2-44
Import from CVS: tag r21-2-44
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:42:25 +0200 |
parents | abe6d1db359e |
children | 3580ae2ce979 |
comparison
equal
deleted
inserted
replaced
457:4b9290a33024 | 458:c33ae14dd6d0 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script, version 1.1. | 2 # Configuration validation subroutine script. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
4 # Free Software Foundation, Inc. | 4 # Free Software Foundation, Inc. |
5 | 5 |
6 version='2000-05-31' | 6 timestamp='2001-01-12' |
7 | 7 |
8 # This file is (in principle) common to ALL GNU software. | 8 # This file is (in principle) common to ALL GNU software. |
9 # The presence of a machine in this file suggests that SOME GNU software | 9 # The presence of a machine in this file suggests that SOME GNU software |
10 # can handle that machine. It does not imply ALL GNU software can. | 10 # can handle that machine. It does not imply ALL GNU software can. |
11 # | 11 # |
27 # As a special exception to the GNU General Public License, if you | 27 # As a special exception to the GNU General Public License, if you |
28 # distribute this file as part of a program that contains a | 28 # distribute this file as part of a program that contains a |
29 # configuration script generated by Autoconf, you may include it under | 29 # configuration script generated by Autoconf, you may include it under |
30 # the same distribution terms that you use for the rest of that program. | 30 # the same distribution terms that you use for the rest of that program. |
31 | 31 |
32 # Written by Per Bothner <bothner@cygnus.com>. | |
33 # Please send patches to <config-patches@gnu.org>. | 32 # Please send patches to <config-patches@gnu.org>. |
34 # | 33 # |
35 # Configuration subroutine to validate and canonicalize a configuration type. | 34 # Configuration subroutine to validate and canonicalize a configuration type. |
36 # Supply the specified configuration type as an argument. | 35 # Supply the specified configuration type as an argument. |
37 # If it is invalid, we print an error message on stderr and exit with code 1. | 36 # If it is invalid, we print an error message on stderr and exit with code 1. |
59 $0 [OPTION] ALIAS | 58 $0 [OPTION] ALIAS |
60 | 59 |
61 Canonicalize a configuration name. | 60 Canonicalize a configuration name. |
62 | 61 |
63 Operation modes: | 62 Operation modes: |
64 -h, --help print this help, then exit | 63 -h, --help print this help, then exit |
65 -V, --version print version number, then exit" | 64 -t, --time-stamp print date of last modification, then exit |
65 -v, --version print version number, then exit | |
66 | |
67 Report bugs and patches to <config-patches@gnu.org>." | |
68 | |
69 version="\ | |
70 GNU config.sub ($timestamp) | |
71 | |
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 | |
73 Free Software Foundation, Inc. | |
74 | |
75 This is free software; see the source for copying conditions. There is NO | |
76 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
66 | 77 |
67 help=" | 78 help=" |
68 Try \`$me --help' for more information." | 79 Try \`$me --help' for more information." |
69 | 80 |
70 # Parse command line | 81 # Parse command line |
71 while test $# -gt 0 ; do | 82 while test $# -gt 0 ; do |
72 case "$1" in | 83 case $1 in |
73 --version | --vers* | -V ) | 84 --time-stamp | --time* | -t ) |
85 echo "$timestamp" ; exit 0 ;; | |
86 --version | -v ) | |
74 echo "$version" ; exit 0 ;; | 87 echo "$version" ; exit 0 ;; |
75 --help | --h* | -h ) | 88 --help | --h* | -h ) |
76 echo "$usage"; exit 0 ;; | 89 echo "$usage"; exit 0 ;; |
77 -- ) # Stop option processing | 90 -- ) # Stop option processing |
78 shift; break ;; | 91 shift; break ;; |
79 - ) # Use stdin as input. | 92 - ) # Use stdin as input. |
80 break ;; | 93 break ;; |
81 -* ) | 94 -* ) |
82 exec >&2 | 95 echo "$me: invalid option $1$help" |
83 echo "$me: invalid option $1" | |
84 echo "$help" | |
85 exit 1 ;; | 96 exit 1 ;; |
86 | 97 |
87 *local*) | 98 *local*) |
88 # First pass through any local machine types. | 99 # First pass through any local machine types. |
89 echo $1 | 100 echo $1 |
104 | 115 |
105 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
106 # Here we must recognize all the valid KERNEL-OS combinations. | 117 # Here we must recognize all the valid KERNEL-OS combinations. |
107 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
108 case $maybe_os in | 119 case $maybe_os in |
109 nto-qnx* | linux-gnu*) | 120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) |
110 os=-$maybe_os | 121 os=-$maybe_os |
111 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
112 ;; | 123 ;; |
113 *) | 124 *) |
114 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 125 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
130 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | 141 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
131 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | 142 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
132 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | 143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
133 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | 144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
134 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
135 -apple) | 146 -apple | -axis) |
136 os= | 147 os= |
137 basic_machine=$1 | 148 basic_machine=$1 |
138 ;; | 149 ;; |
139 -sim | -cisco | -oki | -wec | -winbond) | 150 -sim | -cisco | -oki | -wec | -winbond) |
140 os= | 151 os= |
202 | 213 |
203 # Decode aliases for certain CPU-COMPANY combinations. | 214 # Decode aliases for certain CPU-COMPANY combinations. |
204 case $basic_machine in | 215 case $basic_machine in |
205 # Recognize the basic CPU types without company name. | 216 # Recognize the basic CPU types without company name. |
206 # Some are omitted here because they have special meanings below. | 217 # Some are omitted here because they have special meanings below. |
207 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | 218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ |
208 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | 219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ |
220 | pyramid | mn10200 | mn10300 | tron | a29k \ | |
209 | 580 | i960 | h8300 \ | 221 | 580 | i960 | h8300 \ |
210 | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ | 222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ |
211 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ | 223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
212 | hppa64 \ | 224 | hppa64 \ |
213 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ | 225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
214 | alphaev6[78] \ | 226 | alphaev6[78] \ |
215 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ | 227 | we32k | ns16k | clipper | i370 | sh | sh[34] \ |
216 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ | 228 | powerpc | powerpcle \ |
229 | 1750a | dsp16xx | pdp10 | pdp11 \ | |
230 | mips16 | mips64 | mipsel | mips64el \ | |
217 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | 231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
218 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ | 232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
219 | mips64vr5000 | miprs64vr5000el | mcore \ | 233 | mips64vr5000 | miprs64vr5000el | mcore \ |
220 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ | 234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
221 | thumb | d10v | fr30 | avr) | 235 | thumb | d10v | d30v | fr30 | avr | openrisc) |
222 basic_machine=$basic_machine-unknown | 236 basic_machine=$basic_machine-unknown |
237 ;; | |
238 m6811 | m68hc11 | m6812 | m68hc12) | |
239 # Motorola 68HC11/12. | |
240 basic_machine=$basic_machine-unknown | |
241 os=-none | |
223 ;; | 242 ;; |
224 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) | 243 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
225 ;; | 244 ;; |
226 | 245 |
227 # We use `pc' rather than `unknown' | 246 # We use `pc' rather than `unknown' |
228 # because (1) that's what they normally are, and | 247 # because (1) that's what they normally are, and |
229 # (2) the word "unknown" tends to confuse beginning users. | 248 # (2) the word "unknown" tends to confuse beginning users. |
230 i[34567]86) | 249 i[234567]86 | x86_64) |
231 basic_machine=$basic_machine-pc | 250 basic_machine=$basic_machine-pc |
232 ;; | 251 ;; |
233 # Object if more than one company name word. | 252 # Object if more than one company name word. |
234 *-*-*) | 253 *-*-*) |
235 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 254 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
236 exit 1 | 255 exit 1 |
237 ;; | 256 ;; |
238 # Recognize the basic CPU types with company name. | 257 # Recognize the basic CPU types with company name. |
239 # FIXME: clean up the formatting here. | 258 # FIXME: clean up the formatting here. |
240 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | 259 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
241 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | 260 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ |
261 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ | |
242 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | 262 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
243 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ | 263 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
244 | xmp-* | ymp-* \ | 264 | xmp-* | ymp-* \ |
245 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ | 265 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ |
246 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ | 266 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
247 | hppa2.0n-* | hppa64-* \ | 267 | hppa2.0n-* | hppa64-* \ |
248 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ | 268 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
249 | alphaev6[78]-* \ | 269 | alphaev6[78]-* \ |
250 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | 270 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
251 | clipper-* | orion-* \ | 271 | clipper-* | orion-* \ |
252 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | 272 | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
253 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ | 273 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
254 | mips64el-* | mips64orion-* | mips64orionel-* \ | 274 | mips64el-* | mips64orion-* | mips64orionel-* \ |
255 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ | 275 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
256 | mipstx39-* | mipstx39el-* | mcore-* \ | 276 | mipstx39-* | mipstx39el-* | mcore-* \ |
257 | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ | 277 | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \ |
258 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ | 278 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
259 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ | 279 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ |
260 | bs2000-*) | 280 | bs2000-* | tic54x-* | c54x-* | x86_64-*) |
261 ;; | 281 ;; |
262 # Recognize the various machine names and aliases which stand | 282 # Recognize the various machine names and aliases which stand |
263 # for a CPU type and a company and sometimes even an OS. | 283 # for a CPU type and a company and sometimes even an OS. |
264 386bsd) | 284 386bsd) |
265 basic_machine=i386-unknown | 285 basic_machine=i386-unknown |
292 amdahl) | 312 amdahl) |
293 basic_machine=580-amdahl | 313 basic_machine=580-amdahl |
294 os=-sysv | 314 os=-sysv |
295 ;; | 315 ;; |
296 amiga | amiga-*) | 316 amiga | amiga-*) |
297 basic_machine=m68k-cbm | 317 basic_machine=m68k-unknown |
298 ;; | 318 ;; |
299 amigaos | amigados) | 319 amigaos | amigados) |
300 basic_machine=m68k-cbm | 320 basic_machine=m68k-unknown |
301 os=-amigaos | 321 os=-amigaos |
302 ;; | 322 ;; |
303 amigaunix | amix) | 323 amigaunix | amix) |
304 basic_machine=m68k-cbm | 324 basic_machine=m68k-unknown |
305 os=-sysv4 | 325 os=-sysv4 |
306 ;; | 326 ;; |
307 apollo68) | 327 apollo68) |
308 basic_machine=m68k-apollo | 328 basic_machine=m68k-apollo |
309 os=-sysv | 329 os=-sysv |
353 os=-unicos | 373 os=-unicos |
354 ;; | 374 ;; |
355 crds | unos) | 375 crds | unos) |
356 basic_machine=m68k-crds | 376 basic_machine=m68k-crds |
357 ;; | 377 ;; |
378 cris | cris-* | etrax*) | |
379 basic_machine=cris-axis | |
380 ;; | |
358 da30 | da30-*) | 381 da30 | da30-*) |
359 basic_machine=m68k-da30 | 382 basic_machine=m68k-da30 |
360 ;; | 383 ;; |
361 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | 384 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
362 basic_machine=mips-dec | 385 basic_machine=mips-dec |
399 basic_machine=ns32k-ns | 422 basic_machine=ns32k-ns |
400 ;; | 423 ;; |
401 gmicro) | 424 gmicro) |
402 basic_machine=tron-gmicro | 425 basic_machine=tron-gmicro |
403 os=-sysv | 426 os=-sysv |
427 ;; | |
428 go32) | |
429 basic_machine=i386-pc | |
430 os=-go32 | |
404 ;; | 431 ;; |
405 h3050r* | hiux*) | 432 h3050r* | hiux*) |
406 basic_machine=hppa1.1-hitachi | 433 basic_machine=hppa1.1-hitachi |
407 os=-hiuxwe2 | 434 os=-hiuxwe2 |
408 ;; | 435 ;; |
498 os=-mach | 525 os=-mach |
499 ;; | 526 ;; |
500 i386-vsta | vsta) | 527 i386-vsta | vsta) |
501 basic_machine=i386-unknown | 528 basic_machine=i386-unknown |
502 os=-vsta | 529 os=-vsta |
503 ;; | |
504 i386-go32 | go32) | |
505 basic_machine=i386-unknown | |
506 os=-go32 | |
507 ;; | |
508 i386-mingw32 | mingw32) | |
509 basic_machine=i386-unknown | |
510 os=-mingw32 | |
511 ;; | 530 ;; |
512 iris | iris4d) | 531 iris | iris4d) |
513 basic_machine=mips-sgi | 532 basic_machine=mips-sgi |
514 case $os in | 533 case $os in |
515 -irix*) | 534 -irix*) |
532 ;; | 551 ;; |
533 merlin) | 552 merlin) |
534 basic_machine=ns32k-utek | 553 basic_machine=ns32k-utek |
535 os=-sysv | 554 os=-sysv |
536 ;; | 555 ;; |
556 mingw32) | |
557 basic_machine=i386-pc | |
558 os=-mingw32 | |
559 ;; | |
537 miniframe) | 560 miniframe) |
538 basic_machine=m68000-convergent | 561 basic_machine=m68000-convergent |
539 ;; | 562 ;; |
540 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | 563 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
541 basic_machine=m68k-atari | 564 basic_machine=m68k-atari |
562 monitor) | 585 monitor) |
563 basic_machine=m68k-rom68k | 586 basic_machine=m68k-rom68k |
564 os=-coff | 587 os=-coff |
565 ;; | 588 ;; |
566 msdos) | 589 msdos) |
567 basic_machine=i386-unknown | 590 basic_machine=i386-pc |
568 os=-msdos | 591 os=-msdos |
569 ;; | 592 ;; |
570 mvs) | 593 mvs) |
571 basic_machine=i370-ibm | 594 basic_machine=i370-ibm |
572 os=-mvs | 595 os=-mvs |
626 ;; | 649 ;; |
627 mon960) | 650 mon960) |
628 basic_machine=i960-intel | 651 basic_machine=i960-intel |
629 os=-mon960 | 652 os=-mon960 |
630 ;; | 653 ;; |
654 nonstopux) | |
655 basic_machine=mips-compaq | |
656 os=-nonstopux | |
657 ;; | |
631 np1) | 658 np1) |
632 basic_machine=np1-gould | 659 basic_machine=np1-gould |
633 ;; | 660 ;; |
634 nsr-tandem) | 661 nsr-tandem) |
635 basic_machine=nsr-tandem | 662 basic_machine=nsr-tandem |
661 basic_machine=m68k-tti | 688 basic_machine=m68k-tti |
662 ;; | 689 ;; |
663 pc532 | pc532-*) | 690 pc532 | pc532-*) |
664 basic_machine=ns32k-pc532 | 691 basic_machine=ns32k-pc532 |
665 ;; | 692 ;; |
666 pentium | p5 | k5 | k6 | nexen) | 693 pentium | p5 | k5 | k6 | nexgen) |
667 basic_machine=i586-pc | 694 basic_machine=i586-pc |
668 ;; | 695 ;; |
669 pentiumpro | p6 | 6x86 | athlon) | 696 pentiumpro | p6 | 6x86 | athlon) |
670 basic_machine=i686-pc | 697 basic_machine=i686-pc |
671 ;; | 698 ;; |
672 pentiumii | pentium2) | 699 pentiumii | pentium2) |
673 basic_machine=i786-pc | 700 basic_machine=i686-pc |
674 ;; | 701 ;; |
675 pentium-* | p5-* | k5-* | k6-* | nexen-*) | 702 pentium-* | p5-* | k5-* | k6-* | nexgen-*) |
676 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | 703 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
677 ;; | 704 ;; |
678 pentiumpro-* | p6-* | 6x86-* | athlon-*) | 705 pentiumpro-* | p6-* | 6x86-* | athlon-*) |
679 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 706 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
680 ;; | 707 ;; |
681 pentiumii-* | pentium2-*) | 708 pentiumii-* | pentium2-*) |
682 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | 709 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
683 ;; | 710 ;; |
684 pn) | 711 pn) |
685 basic_machine=pn-gould | 712 basic_machine=pn-gould |
686 ;; | 713 ;; |
687 power) basic_machine=rs6000-ibm | 714 power) basic_machine=power-ibm |
688 ;; | 715 ;; |
689 ppc) basic_machine=powerpc-unknown | 716 ppc) basic_machine=powerpc-unknown |
690 ;; | 717 ;; |
691 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 718 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
692 ;; | 719 ;; |
697 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | 724 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
698 ;; | 725 ;; |
699 ps2) | 726 ps2) |
700 basic_machine=i386-ibm | 727 basic_machine=i386-ibm |
701 ;; | 728 ;; |
729 pw32) | |
730 basic_machine=i586-unknown | |
731 os=-pw32 | |
732 ;; | |
702 rom68k) | 733 rom68k) |
703 basic_machine=m68k-rom68k | 734 basic_machine=m68k-rom68k |
704 os=-coff | 735 os=-coff |
705 ;; | 736 ;; |
706 rm[46]00) | 737 rm[46]00) |
787 os=-dynix | 818 os=-dynix |
788 ;; | 819 ;; |
789 t3e) | 820 t3e) |
790 basic_machine=t3e-cray | 821 basic_machine=t3e-cray |
791 os=-unicos | 822 os=-unicos |
823 ;; | |
824 tic54x | c54x*) | |
825 basic_machine=tic54x-unknown | |
826 os=-coff | |
792 ;; | 827 ;; |
793 tx39) | 828 tx39) |
794 basic_machine=mipstx39-unknown | 829 basic_machine=mipstx39-unknown |
795 ;; | 830 ;; |
796 tx39el) | 831 tx39el) |
883 basic_machine=rs6000-ibm | 918 basic_machine=rs6000-ibm |
884 ;; | 919 ;; |
885 vax) | 920 vax) |
886 basic_machine=vax-dec | 921 basic_machine=vax-dec |
887 ;; | 922 ;; |
923 pdp10) | |
924 # there are many clones, so DEC is not a safe bet | |
925 basic_machine=pdp10-unknown | |
926 ;; | |
888 pdp11) | 927 pdp11) |
889 basic_machine=pdp11-dec | 928 basic_machine=pdp11-dec |
890 ;; | 929 ;; |
891 we32k) | 930 we32k) |
892 basic_machine=we32k-att | 931 basic_machine=we32k-att |
932 ;; | |
933 sh3 | sh4) | |
934 basic_machine=sh-unknown | |
893 ;; | 935 ;; |
894 sparc | sparcv9) | 936 sparc | sparcv9) |
895 basic_machine=sparc-sun | 937 basic_machine=sparc-sun |
896 ;; | 938 ;; |
897 cydra) | 939 cydra) |
970 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1012 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
971 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1013 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
972 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1014 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
973 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | 1015 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
974 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | 1016 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
975 | -openstep* | -oskit*) | 1017 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1018 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) | |
976 # Remember, each alternative MUST END IN *, to match a version number. | 1019 # Remember, each alternative MUST END IN *, to match a version number. |
977 ;; | 1020 ;; |
978 -qnx*) | 1021 -qnx*) |
979 case $basic_machine in | 1022 case $basic_machine in |
980 x86-* | i[34567]86-*) | 1023 x86-* | i[34567]86-*) |
1031 os=-sysv | 1074 os=-sysv |
1032 ;; | 1075 ;; |
1033 -ns2 ) | 1076 -ns2 ) |
1034 os=-nextstep2 | 1077 os=-nextstep2 |
1035 ;; | 1078 ;; |
1036 -nsk) | 1079 -nsk*) |
1037 os=-nsk | 1080 os=-nsk |
1038 ;; | 1081 ;; |
1039 # Preserve the version number of sinix5. | 1082 # Preserve the version number of sinix5. |
1040 -sinix5.*) | 1083 -sinix5.*) |
1041 os=`echo $os | sed -e 's|sinix|sysv|'` | 1084 os=`echo $os | sed -e 's|sinix|sysv|'` |
1068 os=-ose | 1111 os=-ose |
1069 ;; | 1112 ;; |
1070 -xenix) | 1113 -xenix) |
1071 os=-xenix | 1114 os=-xenix |
1072 ;; | 1115 ;; |
1073 -*mint | -*MiNT) | 1116 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1074 os=-mint | 1117 os=-mint |
1075 ;; | 1118 ;; |
1076 -none) | 1119 -none) |
1077 ;; | 1120 ;; |
1078 *) | 1121 *) |
1102 os=-linux | 1145 os=-linux |
1103 ;; | 1146 ;; |
1104 arm*-semi) | 1147 arm*-semi) |
1105 os=-aout | 1148 os=-aout |
1106 ;; | 1149 ;; |
1150 pdp10-*) | |
1151 os=-tops20 | |
1152 ;; | |
1107 pdp11-*) | 1153 pdp11-*) |
1108 os=-none | 1154 os=-none |
1109 ;; | 1155 ;; |
1110 *-dec | vax-*) | 1156 *-dec | vax-*) |
1111 os=-ultrix4.2 | 1157 os=-ultrix4.2 |
1210 os=-sysv4 | 1256 os=-sysv4 |
1211 ;; | 1257 ;; |
1212 *-masscomp) | 1258 *-masscomp) |
1213 os=-rtu | 1259 os=-rtu |
1214 ;; | 1260 ;; |
1215 f301-fujitsu) | 1261 f30[01]-fujitsu | f700-fujitsu) |
1216 os=-uxpv | 1262 os=-uxpv |
1217 ;; | 1263 ;; |
1218 *-rom68k) | 1264 *-rom68k) |
1219 os=-coff | 1265 os=-coff |
1220 ;; | 1266 ;; |
1288 vendor=hitachi | 1334 vendor=hitachi |
1289 ;; | 1335 ;; |
1290 -mpw* | -macos*) | 1336 -mpw* | -macos*) |
1291 vendor=apple | 1337 vendor=apple |
1292 ;; | 1338 ;; |
1293 -*mint | -*MiNT) | 1339 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1294 vendor=atari | 1340 vendor=atari |
1295 ;; | 1341 ;; |
1296 esac | 1342 esac |
1297 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 1343 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1298 ;; | 1344 ;; |
1301 echo $basic_machine$os | 1347 echo $basic_machine$os |
1302 exit 0 | 1348 exit 0 |
1303 | 1349 |
1304 # Local variables: | 1350 # Local variables: |
1305 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1351 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1306 # time-stamp-start: "version='" | 1352 # time-stamp-start: "timestamp='" |
1307 # time-stamp-format: "%:y-%02m-%02d" | 1353 # time-stamp-format: "%:y-%02m-%02d" |
1308 # time-stamp-end: "'" | 1354 # time-stamp-end: "'" |
1309 # End: | 1355 # End: |