comparison config.sub @ 28:6e53ad1f461e

Updated config.guess and config.sub
author Sam Lantinga <slouken@lokigames.com>
date Thu, 10 May 2001 22:58:10 +0000
parents 74212992fb08
children 25dfe480c75e
comparison
equal deleted inserted replaced
27:a7e598a8d8be 28:6e53ad1f461e
1 #! /bin/sh 1 #! /bin/sh
2 # Configuration validation subroutine script. 2 # Configuration validation subroutine script, version 1.1.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 3 # Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
4 # Free Software Foundation, Inc.
5
6 timestamp='2001-03-19'
7
8 # This file is (in principle) common to ALL GNU software. 4 # This file is (in principle) common to ALL GNU software.
9 # 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
10 # 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.
11 # 7 #
12 # 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
27 # As a special exception to the GNU General Public License, if you 23 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a 24 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under 25 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program. 26 # the same distribution terms that you use for the rest of that program.
31 27
32 # Please send patches to <config-patches@gnu.org>.
33 #
34 # Configuration subroutine to validate and canonicalize a configuration type. 28 # Configuration subroutine to validate and canonicalize a configuration type.
35 # Supply the specified configuration type as an argument. 29 # Supply the specified configuration type as an argument.
36 # If it is invalid, we print an error message on stderr and exit with code 1. 30 # If it is invalid, we print an error message on stderr and exit with code 1.
37 # Otherwise, we print the canonical config type on stdout and succeed. 31 # Otherwise, we print the canonical config type on stdout and succeed.
38 32
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50 # or in some cases, the newer four-part form: 44 # or in some cases, the newer four-part form:
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52 # It is wrong to echo any other type of specification. 46 # It is wrong to echo any other type of specification.
53 47
54 me=`echo "$0" | sed -e 's,.*/,,'` 48 if [ x$1 = x ]
55 49 then
56 usage="\ 50 echo Configuration name missing. 1>&2
57 Usage: $0 [OPTION] CPU-MFR-OPSYS 51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
58 $0 [OPTION] ALIAS 52 echo "or $0 ALIAS" 1>&2
59 53 echo where ALIAS is a recognized configuration type. 1>&2
60 Canonicalize a configuration name. 54 exit 1
61 55 fi
62 Operation modes: 56
63 -h, --help print this help, then exit 57 # First pass through any local machine types.
64 -t, --time-stamp print date of last modification, then exit 58 case $1 in
65 -v, --version print version number, then exit 59 *local*)
66 60 echo $1
67 Report bugs and patches to <config-patches@gnu.org>." 61 exit 0
68 62 ;;
69 version="\ 63 *)
70 GNU config.sub ($timestamp) 64 ;;
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."
77
78 help="
79 Try \`$me --help' for more information."
80
81 # Parse command line
82 while test $# -gt 0 ; do
83 case $1 in
84 --time-stamp | --time* | -t )
85 echo "$timestamp" ; exit 0 ;;
86 --version | -v )
87 echo "$version" ; exit 0 ;;
88 --help | --h* | -h )
89 echo "$usage"; exit 0 ;;
90 -- ) # Stop option processing
91 shift; break ;;
92 - ) # Use stdin as input.
93 break ;;
94 -* )
95 echo "$me: invalid option $1$help"
96 exit 1 ;;
97
98 *local*)
99 # First pass through any local machine types.
100 echo $1
101 exit 0;;
102
103 * )
104 break ;;
105 esac
106 done
107
108 case $# in
109 0) echo "$me: missing argument$help" >&2
110 exit 1;;
111 1) ;;
112 *) echo "$me: too many arguments$help" >&2
113 exit 1;;
114 esac 65 esac
115 66
116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 67 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
117 # Here we must recognize all the valid KERNEL-OS combinations. 68 # Here we must recognize all the valid KERNEL-OS combinations.
118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 69 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119 case $maybe_os in 70 case $maybe_os in
120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) 71 linux-gnu*)
121 os=-$maybe_os 72 os=-$maybe_os
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;; 74 ;;
124 *) 75 *)
125 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 76 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
141 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 92 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
142 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 93 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 94 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 95 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
146 -apple | -axis) 97 -apple)
147 os= 98 os=
148 basic_machine=$1 99 basic_machine=$1
149 ;; 100 ;;
150 -sim | -cisco | -oki | -wec | -winbond) 101 -sim | -cisco | -oki | -wec | -winbond)
151 os= 102 os=
152 basic_machine=$1 103 basic_machine=$1
153 ;; 104 ;;
154 -scout) 105 -scout)
155 ;; 106 ;;
156 -wrs) 107 -wrs)
157 os=-vxworks 108 os=vxworks
158 basic_machine=$1 109 basic_machine=$1
159 ;; 110 ;;
160 -hiux*) 111 -hiux*)
161 os=-hiuxwe2 112 os=-hiuxwe2
162 ;; 113 ;;
202 -windowsnt*) 153 -windowsnt*)
203 os=`echo $os | sed -e 's/windowsnt/winnt/'` 154 os=`echo $os | sed -e 's/windowsnt/winnt/'`
204 ;; 155 ;;
205 -psos*) 156 -psos*)
206 os=-psos 157 os=-psos
207 ;;
208 -mint | -mint[0-9]*)
209 basic_machine=m68k-atari
210 os=-mint
211 ;; 158 ;;
212 esac 159 esac
213 160
214 # Decode aliases for certain CPU-COMPANY combinations. 161 # Decode aliases for certain CPU-COMPANY combinations.
215 case $basic_machine in 162 case $basic_machine in
216 # Recognize the basic CPU types without company name. 163 # Recognize the basic CPU types without company name.
217 # Some are omitted here because they have special meanings below. 164 # Some are omitted here because they have special meanings below.
218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ 165 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ 166 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
220 | pyramid | mn10200 | mn10300 | tron | a29k \
221 | 580 | i960 | h8300 \ 167 | 580 | i960 | h8300 \
222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 168 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
224 | hppa64 \ 169 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ 170 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
226 | alphaev6[78] \ 171 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
227 | we32k | ns16k | clipper | i370 | sh | sh[34] \
228 | powerpc | powerpcle \
229 | 1750a | dsp16xx | pdp10 | pdp11 \
230 | mips16 | mips64 | mipsel | mips64el \
231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 172 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 173 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
233 | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ 174 | mips64vr5000 | miprs64vr5000el \
234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ 175 | armv[34][lb] | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
235 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ 176 | thumb | d10v)
236 | pj | pjl | h8500)
237 basic_machine=$basic_machine-unknown 177 basic_machine=$basic_machine-unknown
238 ;; 178 ;;
239 m6811 | m68hc11 | m6812 | m68hc12) 179 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65)
240 # Motorola 68HC11/12.
241 basic_machine=$basic_machine-unknown
242 os=-none
243 ;;
244 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
245 ;; 180 ;;
246 181
247 # We use `pc' rather than `unknown' 182 # We use `pc' rather than `unknown'
248 # because (1) that's what they normally are, and 183 # because (1) that's what they normally are, and
249 # (2) the word "unknown" tends to confuse beginning users. 184 # (2) the word "unknown" tends to confuse beginning users.
250 i[234567]86 | x86_64) 185 i[34567]86)
251 basic_machine=$basic_machine-pc 186 basic_machine=$basic_machine-pc
252 ;; 187 ;;
253 # Object if more than one company name word. 188 # Object if more than one company name word.
254 *-*-*) 189 *-*-*)
255 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 190 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
256 exit 1 191 exit 1
257 ;; 192 ;;
258 # Recognize the basic CPU types with company name. 193 # Recognize the basic CPU types with company name.
259 # FIXME: clean up the formatting here. 194 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
260 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 195 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
261 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
262 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
263 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 196 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
264 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 197 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
265 | xmp-* | ymp-* \ 198 | xmp-* | ymp-* \
266 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ 199 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
267 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ 200 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
268 | hppa2.0n-* | hppa64-* \
269 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
270 | alphaev6[78]-* \
271 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 201 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
272 | clipper-* | orion-* \ 202 | clipper-* | orion-* \
273 | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 203 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
274 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ 204 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
275 | mips64el-* | mips64orion-* | mips64orionel-* \ 205 | mips64el-* | mips64orion-* | mips64orionel-* \
276 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 206 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
277 | mipstx39-* | mipstx39el-* | mcore-* \ 207 | mipstx39-* | mipstx39el-* \
278 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ 208 | armv[34][lb]-* \
279 | [cjt]90-* \ 209 | f301-* | armv*-* | t3e-* \
280 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 210 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
281 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ 211 | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
282 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
283 ;; 212 ;;
284 # Recognize the various machine names and aliases which stand 213 # Recognize the various machine names and aliases which stand
285 # for a CPU type and a company and sometimes even an OS. 214 # for a CPU type and a company and sometimes even an OS.
286 386bsd) 215 386bsd)
287 basic_machine=i386-unknown 216 basic_machine=i386-unknown
314 amdahl) 243 amdahl)
315 basic_machine=580-amdahl 244 basic_machine=580-amdahl
316 os=-sysv 245 os=-sysv
317 ;; 246 ;;
318 amiga | amiga-*) 247 amiga | amiga-*)
319 basic_machine=m68k-unknown 248 basic_machine=m68k-cbm
320 ;; 249 ;;
321 amigaos | amigados) 250 amigaos | amigados)
322 basic_machine=m68k-unknown 251 basic_machine=m68k-cbm
323 os=-amigaos 252 os=-amigaos
324 ;; 253 ;;
325 amigaunix | amix) 254 amigaunix | amix)
326 basic_machine=m68k-unknown 255 basic_machine=m68k-cbm
327 os=-sysv4 256 os=-sysv4
328 ;; 257 ;;
329 apollo68) 258 apollo68)
330 basic_machine=m68k-apollo 259 basic_machine=m68k-apollo
331 os=-sysv 260 os=-sysv
368 ;; 297 ;;
369 cray2) 298 cray2)
370 basic_machine=cray2-cray 299 basic_machine=cray2-cray
371 os=-unicos 300 os=-unicos
372 ;; 301 ;;
373 [cjt]90) 302 [ctj]90-cray)
374 basic_machine=${basic_machine}-cray 303 basic_machine=c90-cray
375 os=-unicos 304 os=-unicos
376 ;; 305 ;;
377 crds | unos) 306 crds | unos)
378 basic_machine=m68k-crds 307 basic_machine=m68k-crds
379 ;;
380 cris | cris-* | etrax*)
381 basic_machine=cris-axis
382 ;; 308 ;;
383 da30 | da30-*) 309 da30 | da30-*)
384 basic_machine=m68k-da30 310 basic_machine=m68k-da30
385 ;; 311 ;;
386 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 312 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
425 ;; 351 ;;
426 gmicro) 352 gmicro)
427 basic_machine=tron-gmicro 353 basic_machine=tron-gmicro
428 os=-sysv 354 os=-sysv
429 ;; 355 ;;
430 go32)
431 basic_machine=i386-pc
432 os=-go32
433 ;;
434 h3050r* | hiux*) 356 h3050r* | hiux*)
435 basic_machine=hppa1.1-hitachi 357 basic_machine=hppa1.1-hitachi
436 os=-hiuxwe2 358 os=-hiuxwe2
437 ;; 359 ;;
438 h8300hms) 360 h8300hms)
502 basic_machine=hppa1.1-hp 424 basic_machine=hppa1.1-hp
503 os=-proelf 425 os=-proelf
504 ;; 426 ;;
505 i370-ibm* | ibm*) 427 i370-ibm* | ibm*)
506 basic_machine=i370-ibm 428 basic_machine=i370-ibm
429 os=-mvs
507 ;; 430 ;;
508 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 431 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
509 i[34567]86v32) 432 i[34567]86v32)
510 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 433 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
511 os=-sysv32 434 os=-sysv32
527 os=-mach 450 os=-mach
528 ;; 451 ;;
529 i386-vsta | vsta) 452 i386-vsta | vsta)
530 basic_machine=i386-unknown 453 basic_machine=i386-unknown
531 os=-vsta 454 os=-vsta
455 ;;
456 i386-go32 | go32)
457 basic_machine=i386-unknown
458 os=-go32
459 ;;
460 i386-mingw32 | mingw32)
461 basic_machine=i386-unknown
462 os=-mingw32
532 ;; 463 ;;
533 iris | iris4d) 464 iris | iris4d)
534 basic_machine=mips-sgi 465 basic_machine=mips-sgi
535 case $os in 466 case $os in
536 -irix*) 467 -irix*)
553 ;; 484 ;;
554 merlin) 485 merlin)
555 basic_machine=ns32k-utek 486 basic_machine=ns32k-utek
556 os=-sysv 487 os=-sysv
557 ;; 488 ;;
558 mingw32)
559 basic_machine=i386-pc
560 os=-mingw32
561 ;;
562 miniframe) 489 miniframe)
563 basic_machine=m68000-convergent 490 basic_machine=m68000-convergent
564 ;; 491 ;;
565 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 492 *mint | *MiNT)
566 basic_machine=m68k-atari 493 basic_machine=m68k-atari
567 os=-mint 494 os=-mint
568 ;; 495 ;;
569 mipsel*-linux*) 496 mipsel*-linux*)
570 basic_machine=mipsel-unknown 497 basic_machine=mipsel-unknown
578 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 505 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
579 ;; 506 ;;
580 mips3*) 507 mips3*)
581 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 508 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
582 ;; 509 ;;
583 mmix*)
584 basic_machine=mmix-knuth
585 os=-mmixware
586 ;;
587 monitor) 510 monitor)
588 basic_machine=m68k-rom68k 511 basic_machine=m68k-rom68k
589 os=-coff 512 os=-coff
590 ;; 513 ;;
591 msdos) 514 msdos)
592 basic_machine=i386-pc 515 basic_machine=i386-unknown
593 os=-msdos 516 os=-msdos
594 ;;
595 mvs)
596 basic_machine=i370-ibm
597 os=-mvs
598 ;; 517 ;;
599 ncr3000) 518 ncr3000)
600 basic_machine=i486-ncr 519 basic_machine=i486-ncr
601 os=-sysv4 520 os=-sysv4
602 ;; 521 ;;
603 netbsd386) 522 netbsd386)
604 basic_machine=i386-unknown 523 basic_machine=i386-unknown
605 os=-netbsd 524 os=-netbsd
606 ;; 525 ;;
607 netwinder) 526 netwinder)
608 basic_machine=armv4l-rebel 527 basic_machine=armv4l-corel
609 os=-linux 528 os=-linux
610 ;; 529 ;;
611 news | news700 | news800 | news900) 530 news | news700 | news800 | news900)
612 basic_machine=m68k-sony 531 basic_machine=m68k-sony
613 os=-newsos 532 os=-newsos
651 ;; 570 ;;
652 mon960) 571 mon960)
653 basic_machine=i960-intel 572 basic_machine=i960-intel
654 os=-mon960 573 os=-mon960
655 ;; 574 ;;
656 nonstopux)
657 basic_machine=mips-compaq
658 os=-nonstopux
659 ;;
660 np1) 575 np1)
661 basic_machine=np1-gould 576 basic_machine=np1-gould
662 ;;
663 nsr-tandem)
664 basic_machine=nsr-tandem
665 ;; 577 ;;
666 op50n-* | op60c-*) 578 op50n-* | op60c-*)
667 basic_machine=hppa1.1-oki 579 basic_machine=hppa1.1-oki
668 os=-proelf 580 os=-proelf
669 ;; 581 ;;
690 basic_machine=m68k-tti 602 basic_machine=m68k-tti
691 ;; 603 ;;
692 pc532 | pc532-*) 604 pc532 | pc532-*)
693 basic_machine=ns32k-pc532 605 basic_machine=ns32k-pc532
694 ;; 606 ;;
695 pentium | p5 | k5 | k6 | nexgen) 607 pentium | p5 | k5 | k6 | nexen)
696 basic_machine=i586-pc 608 basic_machine=i586-pc
697 ;; 609 ;;
698 pentiumpro | p6 | 6x86 | athlon) 610 pentiumpro | p6 | 6x86)
699 basic_machine=i686-pc 611 basic_machine=i686-pc
700 ;; 612 ;;
701 pentiumii | pentium2) 613 pentiumii | pentium2)
702 basic_machine=i686-pc 614 basic_machine=i786-pc
703 ;; 615 ;;
704 pentium-* | p5-* | k5-* | k6-* | nexgen-*) 616 pentium-* | p5-* | k5-* | k6-* | nexen-*)
705 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 617 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
706 ;; 618 ;;
707 pentiumpro-* | p6-* | 6x86-* | athlon-*) 619 pentiumpro-* | p6-* | 6x86-*)
708 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 620 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
709 ;; 621 ;;
710 pentiumii-* | pentium2-*) 622 pentiumii-* | pentium2-*)
711 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 623 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
712 ;; 624 ;;
713 pn) 625 pn)
714 basic_machine=pn-gould 626 basic_machine=pn-gould
715 ;; 627 ;;
716 power) basic_machine=power-ibm 628 power) basic_machine=rs6000-ibm
717 ;; 629 ;;
718 ppc) basic_machine=powerpc-unknown 630 ppc) basic_machine=powerpc-unknown
719 ;; 631 ;;
720 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 632 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
721 ;; 633 ;;
726 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 638 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
727 ;; 639 ;;
728 ps2) 640 ps2)
729 basic_machine=i386-ibm 641 basic_machine=i386-ibm
730 ;; 642 ;;
731 pw32)
732 basic_machine=i586-unknown
733 os=-pw32
734 ;;
735 rom68k) 643 rom68k)
736 basic_machine=m68k-rom68k 644 basic_machine=m68k-rom68k
737 os=-coff 645 os=-coff
738 ;; 646 ;;
739 rm[46]00) 647 rm[46]00)
809 basic_machine=sparc-sun 717 basic_machine=sparc-sun
810 ;; 718 ;;
811 sun386 | sun386i | roadrunner) 719 sun386 | sun386i | roadrunner)
812 basic_machine=i386-sun 720 basic_machine=i386-sun
813 ;; 721 ;;
814 sv1)
815 basic_machine=sv1-cray
816 os=-unicos
817 ;;
818 symmetry) 722 symmetry)
819 basic_machine=i386-sequent 723 basic_machine=i386-sequent
820 os=-dynix 724 os=-dynix
821 ;; 725 ;;
822 t3e) 726 t3e)
823 basic_machine=t3e-cray 727 basic_machine=t3e-cray
824 os=-unicos 728 os=-unicos
825 ;;
826 tic54x | c54x*)
827 basic_machine=tic54x-unknown
828 os=-coff
829 ;; 729 ;;
830 tx39) 730 tx39)
831 basic_machine=mipstx39-unknown 731 basic_machine=mipstx39-unknown
832 ;; 732 ;;
833 tx39el) 733 tx39el)
920 basic_machine=rs6000-ibm 820 basic_machine=rs6000-ibm
921 ;; 821 ;;
922 vax) 822 vax)
923 basic_machine=vax-dec 823 basic_machine=vax-dec
924 ;; 824 ;;
925 pdp10)
926 # there are many clones, so DEC is not a safe bet
927 basic_machine=pdp10-unknown
928 ;;
929 pdp11) 825 pdp11)
930 basic_machine=pdp11-dec 826 basic_machine=pdp11-dec
931 ;; 827 ;;
932 we32k) 828 we32k)
933 basic_machine=we32k-att 829 basic_machine=we32k-att
934 ;;
935 sh3 | sh4)
936 basic_machine=sh-unknown
937 ;; 830 ;;
938 sparc | sparcv9) 831 sparc | sparcv9)
939 basic_machine=sparc-sun 832 basic_machine=sparc-sun
940 ;; 833 ;;
941 cydra) 834 cydra)
1013 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 906 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1014 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 907 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1015 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 908 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1016 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 909 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1017 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 910 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1018 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 911 | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
1019 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1020 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1021 # Remember, each alternative MUST END IN *, to match a version number. 912 # Remember, each alternative MUST END IN *, to match a version number.
1022 ;;
1023 -qnx*)
1024 case $basic_machine in
1025 x86-* | i[34567]86-*)
1026 ;;
1027 *)
1028 os=-nto$os
1029 ;;
1030 esac
1031 ;;
1032 -nto*)
1033 os=-nto-qnx
1034 ;; 913 ;;
1035 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 914 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1036 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 915 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1037 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 916 | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
1038 ;; 917 ;;
1039 -mac*) 918 -mac*)
1040 os=`echo $os | sed -e 's|mac|macos|'` 919 os=`echo $os | sed -e 's|mac|macos|'`
1041 ;; 920 ;;
1042 -linux*) 921 -linux*)
1046 os=`echo $os | sed -e 's|sunos5|solaris2|'` 925 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1047 ;; 926 ;;
1048 -sunos6*) 927 -sunos6*)
1049 os=`echo $os | sed -e 's|sunos6|solaris3|'` 928 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1050 ;; 929 ;;
1051 -opened*)
1052 os=-openedition
1053 ;;
1054 -wince*)
1055 os=-wince
1056 ;;
1057 -osfrose*) 930 -osfrose*)
1058 os=-osfrose 931 os=-osfrose
1059 ;; 932 ;;
1060 -osf*) 933 -osf*)
1061 os=-osf 934 os=-osf
1075 -ctix* | -uts*) 948 -ctix* | -uts*)
1076 os=-sysv 949 os=-sysv
1077 ;; 950 ;;
1078 -ns2 ) 951 -ns2 )
1079 os=-nextstep2 952 os=-nextstep2
1080 ;;
1081 -nsk*)
1082 os=-nsk
1083 ;; 953 ;;
1084 # Preserve the version number of sinix5. 954 # Preserve the version number of sinix5.
1085 -sinix5.*) 955 -sinix5.*)
1086 os=`echo $os | sed -e 's|sinix|sysv|'` 956 os=`echo $os | sed -e 's|sinix|sysv|'`
1087 ;; 957 ;;
1113 os=-ose 983 os=-ose
1114 ;; 984 ;;
1115 -xenix) 985 -xenix)
1116 os=-xenix 986 os=-xenix
1117 ;; 987 ;;
1118 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 988 -*mint | -*MiNT)
1119 os=-mint 989 os=-mint
1120 ;; 990 ;;
1121 -none) 991 -none)
1122 ;; 992 ;;
1123 *) 993 *)
1141 1011
1142 case $basic_machine in 1012 case $basic_machine in
1143 *-acorn) 1013 *-acorn)
1144 os=-riscix1.2 1014 os=-riscix1.2
1145 ;; 1015 ;;
1146 arm*-rebel) 1016 arm*-corel)
1147 os=-linux 1017 os=-linux
1148 ;; 1018 ;;
1149 arm*-semi) 1019 arm*-semi)
1150 os=-aout 1020 os=-aout
1151 ;;
1152 pdp10-*)
1153 os=-tops20
1154 ;; 1021 ;;
1155 pdp11-*) 1022 pdp11-*)
1156 os=-none 1023 os=-none
1157 ;; 1024 ;;
1158 *-dec | vax-*) 1025 *-dec | vax-*)
1258 os=-sysv4 1125 os=-sysv4
1259 ;; 1126 ;;
1260 *-masscomp) 1127 *-masscomp)
1261 os=-rtu 1128 os=-rtu
1262 ;; 1129 ;;
1263 f30[01]-fujitsu | f700-fujitsu) 1130 f301-fujitsu)
1264 os=-uxpv 1131 os=-uxpv
1265 ;; 1132 ;;
1266 *-rom68k) 1133 *-rom68k)
1267 os=-coff 1134 os=-coff
1268 ;; 1135 ;;
1318 vendor=omron 1185 vendor=omron
1319 ;; 1186 ;;
1320 -genix*) 1187 -genix*)
1321 vendor=ns 1188 vendor=ns
1322 ;; 1189 ;;
1323 -mvs* | -opened*) 1190 -mvs*)
1324 vendor=ibm 1191 vendor=ibm
1325 ;; 1192 ;;
1326 -ptx*) 1193 -ptx*)
1327 vendor=sequent 1194 vendor=sequent
1328 ;; 1195 ;;
1336 vendor=hitachi 1203 vendor=hitachi
1337 ;; 1204 ;;
1338 -mpw* | -macos*) 1205 -mpw* | -macos*)
1339 vendor=apple 1206 vendor=apple
1340 ;; 1207 ;;
1341 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1208 -*mint | -*MiNT)
1342 vendor=atari 1209 vendor=atari
1343 ;; 1210 ;;
1344 esac 1211 esac
1345 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1212 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1346 ;; 1213 ;;
1347 esac 1214 esac
1348 1215
1349 echo $basic_machine$os 1216 echo $basic_machine$os
1350 exit 0
1351
1352 # Local variables:
1353 # eval: (add-hook 'write-file-hooks 'time-stamp)
1354 # time-stamp-start: "timestamp='"
1355 # time-stamp-format: "%:y-%02m-%02d"
1356 # time-stamp-end: "'"
1357 # End: