/[public]/psiconv/trunk/config.sub
ViewVC logotype

Diff of /psiconv/trunk/config.sub

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.2  
changed lines
  Added in v.116

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26