Changeset 539266 in git
- Timestamp:
- Jun 13, 2000, 1:21:33 PM (23 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 85d57c1753d2dd2eaff863e318ce184c3b664f8b
- Parents:
- 72541b3aca5d1e3a1c0fa1b395ea23c7948ab0cd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
config.guess
r72541b r539266 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc. 3 # 4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 5 # Free Software Foundation, Inc. 4 6 # 5 7 # This file is free software; you can redistribute it and/or modify it … … 49 51 trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 50 52 53 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 54 i?86:*:*:*) 55 echo 'xwqilkn(){}' >dummy.c 56 ${CC-cc} dummy.c -S 2>/dev/null 57 if test "$?" = 0 ; then 58 u=`grep xwqilkn dummy.s | head -1 | sed 's;[^_]*\([_]*\)xwqilkn;\1;'` 59 cat <<EOF >dummy1.s 60 .globl ${u}cpuid 61 ${u}cpuid: 62 pushl %esi 63 pushl %ebx 64 movl 16(%esp),%eax 65 .word 0xa20f 66 movl 12(%esp),%esi 67 movl %ebx,(%esi) 68 movl %edx,4(%esi) 69 movl %ecx,8(%esi) 70 popl %ebx 71 popl %esi 72 ret 73 EOF 74 cat <<EOF >dummy2.c 75 main () 76 { 77 char vendor_string[13]; 78 char dummy_string[12]; 79 long fms; 80 int family, model; 81 char *modelstr; 82 83 cpuid (vendor_string, 0); 84 vendor_string[12] = 0; 85 86 fms = cpuid (dummy_string, 1); 87 88 family = (fms >> 8) & 15; 89 model = (fms >> 4) & 15; 90 91 modelstr = "i486"; 92 if (strcmp (vendor_string, "GenuineIntel") == 0) 93 { 94 switch (family) 95 { 96 case 5: 97 if (model <= 2) 98 modelstr = "pentium"; 99 else if (model >= 4) 100 modelstr = "pentiummmx"; 101 break; 102 case 6: 103 if (model == 1) 104 modelstr = "pentiumpro"; 105 else if (model <= 5) 106 modelstr = "pentium2"; 107 else 108 modelstr = "pentium3"; 109 break; 110 } 111 } 112 else if (strcmp (vendor_string, "AuthenticAMD") == 0) 113 { 114 switch (family) 115 { 116 case 5: 117 if (model <= 3) 118 modelstr = "k5"; 119 else if (model <= 7) 120 modelstr = "k6"; 121 else if (model <= 8) 122 modelstr = "k62"; 123 else if (model <= 9) 124 modelstr = "k63"; 125 break; 126 case 6: 127 modelstr = "athlon"; 128 break; 129 } 130 } 131 else if (strcmp (vendor_string, "CyrixInstead") == 0) 132 { 133 /* Should recognize Cyrix' processors too. */ 134 } 135 136 printf ("%s\n", modelstr); 137 return 0; 138 } 139 EOF 140 ${CC-cc} dummy1.s dummy2.c -o dummy 2>/dev/null 141 if test "$?" = 0 ; then 142 X86CPU=`./dummy` 143 fi 144 fi 145 146 # Default to believing uname -m if the program fails to compile or 147 # run. Will fail to run on 386 since cpuid was only added on 486. 148 if test -z "$X86CPU" 149 then 150 X86CPU="$UNAME_MACHINE" 151 fi 152 rm -f dummy.c dummy.s dummy1.s dummy2.c dummy 153 ;; 154 esac 155 51 156 # Note: order is significant - the case branches are not exclusive. 52 53 157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 54 alpha:OSF1:[VX]*:*)55 # After 1.2, OSF1 uses "V1.3" for uname -r.56 # After 4.x, OSF1 uses "X4.x" for uname -r.57 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VX]//'`58 exit 0 ;;59 158 alpha:OSF1:*:*) 159 if test $UNAME_RELEASE = "V4.0"; then 160 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 161 fi 162 # A Vn.n version is a released version. 163 # A Tn.n version is a released field test version. 164 # A Xn.n version is an unreleased experimental baselevel. 60 165 # 1.2 uses "1.2" for uname -r. 61 echo alpha-dec-osf${UNAME_RELEASE} 62 exit 0 ;; 166 cat <<EOF >dummy.s 167 .globl main 168 .ent main 169 main: 170 .frame \$30,0,\$26,0 171 .prologue 0 172 .long 0x47e03d80 # implver $0 173 lda \$2,259 174 .long 0x47e20c21 # amask $2,$1 175 srl \$1,8,\$2 176 sll \$2,2,\$2 177 sll \$0,3,\$0 178 addl \$1,\$0,\$0 179 addl \$2,\$0,\$0 180 ret \$31,(\$26),1 181 .end main 182 EOF 183 ${CC-cc} dummy.s -o dummy 2>/dev/null 184 if test "$?" = 0 ; then 185 ./dummy 186 case "$?" in 187 7) 188 UNAME_MACHINE="alpha" 189 ;; 190 15) 191 UNAME_MACHINE="alphaev5" 192 ;; 193 14) 194 UNAME_MACHINE="alphaev56" 195 ;; 196 10) 197 UNAME_MACHINE="alphapca56" 198 ;; 199 16) 200 UNAME_MACHINE="alphaev6" 201 ;; 202 esac 203 fi 204 rm -f dummy.s dummy 205 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` 206 exit 0 ;; 207 alpha:NetBSD:*:* | alpha:FreeBSD:*:*) 208 cat <<EOF >dummy.s 209 .globl main 210 .ent main 211 main: 212 .frame \$30,0,\$26,0 213 .prologue 0 214 .long 0x47e03d80 # implver $0 215 lda \$2,259 216 .long 0x47e20c21 # amask $2,$1 217 srl \$1,8,\$2 218 sll \$2,2,\$2 219 sll \$0,3,\$0 220 addl \$1,\$0,\$0 221 addl \$2,\$0,\$0 222 ret \$31,(\$26),1 223 .end main 224 EOF 225 ${CC-cc} dummy.s -o dummy 2>/dev/null 226 if test "$?" = 0 ; then 227 ./dummy 228 case "$?" in 229 7) 230 UNAME_MACHINE="alpha" 231 ;; 232 15) 233 UNAME_MACHINE="alphaev5" 234 ;; 235 14) 236 UNAME_MACHINE="alphaev56" 237 ;; 238 10) 239 UNAME_MACHINE="alphapca56" 240 ;; 241 16) 242 UNAME_MACHINE="alphaev6" 243 ;; 244 esac 245 fi 246 rm -f dummy.s dummy 247 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM}${UNAME_RELEASE} | sed -e 's/^[VTX]//' -e 's/[-(].*//' | tr [[A-Z]] [[a-z]]` 248 exit 0 ;; 63 249 21064:Windows_NT:50:3) 64 250 echo alpha-dec-winnt3.5 … … 70 256 echo m68k-cbm-netbsd${UNAME_RELEASE} 71 257 exit 0 ;; 258 amiga:OpenBSD:*:*) 259 echo m68k-unknown-openbsd${UNAME_RELEASE} 260 exit 0 ;; 261 arc64:OpenBSD:*:*) 262 echo mips64el-unknown-openbsd${UNAME_RELEASE} 263 exit 0 ;; 264 arc:OpenBSD:*:*) 265 echo mipsel-unknown-openbsd${UNAME_RELEASE} 266 exit 0 ;; 267 hkmips:OpenBSD:*:*) 268 echo mips-unknown-openbsd${UNAME_RELEASE} 269 exit 0 ;; 270 pmax:OpenBSD:*:*) 271 echo mipsel-unknown-openbsd${UNAME_RELEASE} 272 exit 0 ;; 273 sgi:OpenBSD:*:*) 274 echo mips-unknown-openbsd${UNAME_RELEASE} 275 exit 0 ;; 276 wgrisc:OpenBSD:*:*) 277 echo mipsel-unknown-openbsd${UNAME_RELEASE} 278 exit 0 ;; 72 279 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 73 280 echo arm-acorn-riscix${UNAME_RELEASE} 74 281 exit 0;; 75 Pyramid*:OSx*:*:*) 282 arm32:NetBSD:*:*) 283 echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 284 exit 0 ;; 285 SR2?01:HI-UX/MPP:*:*) 286 echo hppa1.1-hitachi-hiuxmpp 287 exit 0;; 288 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) 289 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 76 290 if test "`(/bin/universe) 2>/dev/null`" = att ; then 77 291 echo pyramid-pyramid-sysv3 … … 80 294 fi 81 295 exit 0 ;; 82 sun4*:SunOS:5.*:*) 296 NILE:*:*:dcosx) 297 echo pyramid-pyramid-svr4 298 exit 0 ;; 299 sun4[md]:SunOS:5.*:*) 300 echo sparcv8-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 301 exit 0 ;; 302 sun4u:SunOS:5.*:*) 303 echo sparcv9-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 304 exit 0 ;; 305 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 83 306 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 84 307 exit 0 ;; 85 308 i86pc:SunOS:5.*:*) 86 echo i386-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 87 exit 0 ;; 88 sun4*:SunOS:6*:*) 89 # According to config.sub, this is the proper way to canonicalize 90 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 91 # it's likely to be more like Solaris than SunOS4. 92 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 309 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 310 exit 0 ;; 311 sun4[md]:SunOS:*:*) 312 case "`/usr/bin/arch -k`" in 313 Series*|S4*) 314 UNAME_RELEASE=`uname -v` 315 ;; 316 esac 317 # Japanese Language versions have a version number like `4.1.3-JL'. 318 echo sparcv8-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 93 319 exit 0 ;; 94 320 sun4*:SunOS:*:*) … … 104 330 echo m68k-sun-sunos${UNAME_RELEASE} 105 331 exit 0 ;; 332 sun*:*:4.2BSD:*) 333 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 334 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 335 case "`/bin/arch`" in 336 sun3) 337 echo m68k-sun-sunos${UNAME_RELEASE} 338 ;; 339 sun4) 340 echo sparc-sun-sunos${UNAME_RELEASE} 341 ;; 342 esac 343 exit 0 ;; 344 aushp:SunOS:*:*) 345 echo sparc-auspex-sunos${UNAME_RELEASE} 346 exit 0 ;; 106 347 atari*:NetBSD:*:*) 107 348 echo m68k-atari-netbsd${UNAME_RELEASE} 108 349 exit 0 ;; 350 atari*:OpenBSD:*:*) 351 echo m68k-unknown-openbsd${UNAME_RELEASE} 352 exit 0 ;; 109 353 sun3*:NetBSD:*:*) 110 354 echo m68k-sun-netbsd${UNAME_RELEASE} 111 355 exit 0 ;; 356 sun3*:OpenBSD:*:*) 357 echo m68k-unknown-openbsd${UNAME_RELEASE} 358 exit 0 ;; 112 359 mac68k:NetBSD:*:*) 113 360 echo m68k-apple-netbsd${UNAME_RELEASE} 114 361 exit 0 ;; 362 mac68k:OpenBSD:*:*) 363 echo m68k-unknown-openbsd${UNAME_RELEASE} 364 exit 0 ;; 365 macppc:NetBSD:*:*) 366 echo powerpc-apple-netbsd${UNAME_RELEASE} 367 exit 0 ;; 368 mvme68k:OpenBSD:*:*) 369 echo m68k-unknown-openbsd${UNAME_RELEASE} 370 exit 0 ;; 371 mvme88k:OpenBSD:*:*) 372 echo m88k-unknown-openbsd${UNAME_RELEASE} 373 exit 0 ;; 374 powerpc:machten:*:*) 375 echo powerpc-apple-machten${UNAME_RELEASE} 376 exit 0 ;; 377 RISC*:Mach:*:*) 378 echo mips-dec-mach_bsd4.3 379 exit 0 ;; 115 380 RISC*:ULTRIX:*:*) 116 381 echo mips-dec-ultrix${UNAME_RELEASE} … … 119 384 echo vax-dec-ultrix${UNAME_RELEASE} 120 385 exit 0 ;; 121 mips:*:4*:UMIPS) 122 echo mips-mips-riscos4sysv 123 exit 0 ;; 124 mips:*:5*:RISCos) 386 2020:CLIX:*:*) 387 echo clipper-intergraph-clix${UNAME_RELEASE} 388 exit 0 ;; 389 mips:*:*:UMIPS | mips:*:*:RISCos) 390 sed 's/^ //' << EOF >dummy.c 391 int main (argc, argv) int argc; char **argv; { 392 #if defined (host_mips) && defined (MIPSEB) 393 #if defined (SYSTYPE_SYSV) 394 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 395 #endif 396 #if defined (SYSTYPE_SVR4) 397 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 398 #endif 399 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 400 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 401 #endif 402 #endif 403 exit (-1); 404 } 405 EOF 406 ${CC-cc} dummy.c -o dummy \ 407 && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 408 && rm dummy.c dummy && exit 0 409 rm -f dummy.c dummy 125 410 echo mips-mips-riscos${UNAME_RELEASE} 126 411 exit 0 ;; … … 139 424 AViiON:dgux:*:*) 140 425 # DG/UX returns AViiON for all architectures 141 UNAME_PROCESSOR=` uname -p`142 if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc881 00 ] ; then426 UNAME_PROCESSOR=`/usr/bin/uname -p` 427 if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then 143 428 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ 144 429 -o ${TARGET_BINARY_INTERFACE}x = x ] ; then … … 166 451 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 167 452 exit 0 ;; 168 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.453 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 169 454 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 170 455 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 171 i [34]86:AIX:*:*)456 i?86:AIX:*:*) 172 457 echo i386-ibm-aix 173 458 exit 0 ;; … … 195 480 exit 0 ;; 196 481 *:AIX:*:4) 197 if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then 198 IBM_ARCH=rs6000 199 else 200 IBM_ARCH=powerpc 201 fi 482 sed 's/^ //' << EOF >dummy.c 483 #include <stdio.h> 484 #include <sys/systemcfg.h> 485 main () 486 { 487 if (_system_configuration.architecture == POWER_RS 488 || _system_configuration.implementation == POWER_601) 489 puts ("power"); 490 else 491 { 492 if (_system_configuration.width == 64) 493 puts ("powerpc64"); 494 else 495 puts ("powerpc"); 496 } 497 exit (0); 498 } 499 EOF 500 ${CC-cc} dummy.c -o dummy 501 IBM_ARCH=`./dummy` 502 rm -f dummy.c dummy 202 503 if [ -x /usr/bin/oslevel ] ; then 203 504 IBM_REV=`/usr/bin/oslevel` … … 214 515 exit 0 ;; 215 516 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and 216 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 517 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 217 518 exit 0 ;; # report: romp-ibm BSD 4.3 218 519 *:BOSX:*:*) … … 232 533 9000/31? ) HP_ARCH=m68000 ;; 233 534 9000/[34]?? ) HP_ARCH=m68k ;; 234 9000/7?? | 9000/8?[679] ) HP_ARCH=hppa1.1 ;; 535 9000/6?? ) HP_ARCH=hppa1.0 ;; 536 9000/78? ) HP_ARCH=hppa2.0 ;; 537 9000/7?? ) HP_ARCH=hppa1.1 ;; 538 9000/8[67]1 | 9000/80[24] | 9000/8[10]0 | 9000/8[78]9 | 9000/893 ) 539 HP_ARCH=hppa2.0 ;; 540 9000/8?[13679] ) HP_ARCH=hppa1.1 ;; 235 541 9000/8?? ) HP_ARCH=hppa1.0 ;; 236 542 esac … … 280 586 echo hppa1.0-hp-osf 281 587 exit 0 ;; 588 i?86:OSF1:*:*) 589 if [ -x /usr/sbin/sysversion ] ; then 590 echo ${UNAME_MACHINE}-unknown-osf1mk 591 else 592 echo ${UNAME_MACHINE}-unknown-osf1 593 fi 594 exit 0 ;; 282 595 parisc*:Lites*:*:*) 283 596 echo hppa1.1-hp-lites … … 307 620 echo ymp-cray-unicos${UNAME_RELEASE} 308 621 exit 0 ;; 309 CRAY*C90:*:*:*) 310 echo c90-cray-unicos${UNAME_RELEASE} 622 CRAY*[A-Z]90:*:*:*) 623 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 624 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 625 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ 626 exit 0 ;; 627 CRAY*TS:*:*:*) 628 echo t90-cray-unicos${UNAME_RELEASE} 311 629 exit 0 ;; 312 630 CRAY-2:*:*:*) 313 631 echo cray2-cray-unicos 314 632 exit 0 ;; 633 CRAY*T3D:*:*) 634 echo alpha-cray-unicos 635 exit 0 ;; 636 CRAY*T3E:*:*) 637 echo alphaev5-cray-unicos 638 exit 0 ;; 639 F300:UNIX_System_V:*:*) 640 FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` 641 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 642 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 643 exit 0 ;; 644 F301:UNIX_System_V:*:*) 645 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` 646 exit 0 ;; 315 647 hp3[0-9][05]:NetBSD:*:*) 316 648 echo m68k-hp-netbsd${UNAME_RELEASE} 317 649 exit 0 ;; 318 i[34]86:BSD/386:*:* | *:BSD/OS:*:*) 319 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 650 hp300:OpenBSD:*:*) 651 echo m68k-unknown-openbsd${UNAME_RELEASE} 652 exit 0 ;; 653 i?86:BSD/386:*:* | *:BSD/OS:*:*) 654 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 655 exit 0 ;; 656 i386:FreeBSD:*:*) 657 echo ${X86CPU}-pc-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 320 658 exit 0 ;; 321 659 *:FreeBSD:*:*) 322 660 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 323 661 exit 0 ;; 662 i386:NetBSD:*:*) 663 echo ${X86CPU}-pc-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 664 exit 0 ;; 324 665 *:NetBSD:*:*) 325 666 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 326 667 exit 0 ;; 668 i386:OpenBSD:*:*) 669 echo ${X86CPU}-pc-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 670 exit 0 ;; 671 *:OpenBSD:*:*) 672 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 673 exit 0 ;; 327 674 i*:CYGWIN*:*) 328 echo i386-unknown-cygwin32 675 echo ${UNAME_MACHINE}-pc-cygwin32 676 exit 0 ;; 677 i*:MINGW*:*) 678 echo ${UNAME_MACHINE}-pc-mingw32 329 679 exit 0 ;; 330 680 p*:CYGWIN*:*) 331 681 echo powerpcle-unknown-cygwin32 332 682 exit 0 ;; 683 prep*:SunOS:5.*:*) 684 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 685 exit 0 ;; 333 686 *:GNU:*:*) 334 echo `echo ${UNAME_MACHINE}|sed -e 's, /.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`687 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 335 688 exit 0 ;; 336 689 *:Linux:*:*) 690 # uname on the ARM produces all sorts of strangeness, and we need to 691 # filter it out. 692 case "$UNAME_MACHINE" in 693 arm* | sa110*) UNAME_MACHINE="arm" ;; 694 esac 695 337 696 # The BFD linker knows what the default object file format is, so 338 697 # first see if it will tell us. 339 698 ld_help_string=`ld --help 2>&1` 340 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then 341 echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 342 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then 343 echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0 344 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then 345 echo "${UNAME_MACHINE}-unknown-linuxcoff" ; exit 0 346 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then 347 echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 348 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then 349 echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0 350 elif test "${UNAME_MACHINE}" = "alpha" ; then 351 echo alpha-unknown-linux ; exit 0 699 ld_supported_emulations=`echo $ld_help_string \ 700 | sed -ne '/supported emulations:/!d 701 s/[ ][ ]*/ /g 702 s/.*supported emulations: *// 703 s/ .*// 704 p'` 705 case "$ld_supported_emulations" in 706 i?86linux) echo "${X86CPU}-pc-linux-gnuaout" ; exit 0 ;; 707 i?86coff) echo "${X86CPU}-pc-linux-gnucoff" ; exit 0 ;; 708 sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 709 armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 710 m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 711 elf32ppc) 712 # Determine Lib Version 713 cat >dummy.c <<EOF 714 #include <features.h> 715 #if defined(__GLIBC__) 716 extern char __libc_version[]; 717 extern char __libc_release[]; 718 #endif 719 main(argc, argv) 720 int argc; 721 char *argv[]; 722 { 723 #if defined(__GLIBC__) 724 printf("%s %s\n", __libc_version, __libc_release); 725 #else 726 printf("unkown\n"); 727 #endif 728 return 0; 729 } 730 EOF 731 LIBC="" 732 ${CC-cc} dummy.c -o dummy 2>/dev/null 733 if test "$?" = 0 ; then 734 ./dummy | grep 1\.99 > /dev/null 735 if test "$?" = 0 ; then 736 LIBC="libc1" 737 fi 738 fi 739 rm -f dummy.c dummy 740 echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; 741 esac 742 743 if test "${UNAME_MACHINE}" = "alpha" ; then 744 sed 's/^ //' <<EOF >dummy.s 745 .globl main 746 .ent main 747 main: 748 .frame \$30,0,\$26,0 749 .prologue 0 750 .long 0x47e03d80 # implver $0 751 lda \$2,259 752 .long 0x47e20c21 # amask $2,$1 753 srl \$1,8,\$2 754 sll \$2,2,\$2 755 sll \$0,3,\$0 756 addl \$1,\$0,\$0 757 addl \$2,\$0,\$0 758 ret \$31,(\$26),1 759 .end main 760 EOF 761 LIBC="" 762 ${CC-cc} dummy.s -o dummy 2>/dev/null 763 if test "$?" = 0 ; then 764 ./dummy 765 case "$?" in 766 7) 767 UNAME_MACHINE="alpha" 768 ;; 769 15) 770 UNAME_MACHINE="alphaev5" 771 ;; 772 14) 773 UNAME_MACHINE="alphaev56" 774 ;; 775 10) 776 UNAME_MACHINE="alphapca56" 777 ;; 778 16) 779 UNAME_MACHINE="alphaev6" 780 ;; 781 esac 782 783 objdump --private-headers dummy | \ 784 grep ld.so.1 > /dev/null 785 if test "$?" = 0 ; then 786 LIBC="libc1" 787 fi 788 fi 789 rm -f dummy.s dummy 790 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 791 elif test "${UNAME_MACHINE}" = "mips" ; then 792 cat >dummy.c <<EOF 793 main(argc, argv) 794 int argc; 795 char *argv[]; 796 { 797 #ifdef __MIPSEB__ 798 printf ("%s-unknown-linux-gnu\n", argv[1]); 799 #endif 800 #ifdef __MIPSEL__ 801 printf ("%sel-unknown-linux-gnu\n", argv[1]); 802 #endif 803 return 0; 804 } 805 EOF 806 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 807 rm -f dummy.c dummy 352 808 else 353 # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us 354 # useful --help. Gcc wants to distinguish between linuxoldld and linuxaout. 355 test ! -d /usr/lib/ldscripts/. \ 356 && echo "${UNAME_MACHINE}-unknown-linuxoldld" && exit 0 809 # Either a pre-BFD a.out linker (linux-gnuoldld) 810 # or one that does not give us useful --help. 811 # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. 812 # If ld does not provide *any* "supported emulations:" 813 # that means it is gnuoldld. 814 echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" 815 test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 816 817 case "${UNAME_MACHINE}" in 818 i?86) 819 VENDOR=pc; 820 UNAME_MACHINE=${X86CPU} 821 ;; 822 *) 823 VENDOR=unknown; 824 ;; 825 esac 357 826 # Determine whether the default compiler is a.out or elf 358 827 cat >dummy.c <<EOF 828 #include <features.h> 359 829 main(argc, argv) 360 int argc;361 char *argv[];830 int argc; 831 char *argv[]; 362 832 { 363 833 #ifdef __ELF__ 364 printf ("%s-unknown-linux\n", argv[1]); 834 # ifdef __GLIBC__ 835 # if __GLIBC__ >= 2 836 printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); 837 # else 838 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); 839 # endif 840 # else 841 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); 842 # endif 365 843 #else 366 printf ("%s- unknown-linuxaout\n", argv[1]);844 printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); 367 845 #endif 368 846 return 0; … … 374 852 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions 375 853 # are messed up and put the nodename in both sysname and nodename. 376 i [34]86:DYNIX/ptx:4*:*)854 i?86:DYNIX/ptx:4*:*) 377 855 echo i386-sequent-sysv4 378 856 exit 0 ;; 379 i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*) 857 i?86:UNIX_SV:4.2MP:2.*) 858 # Unixware is an offshoot of SVR4, but it has its own version 859 # number series starting with 2... 860 # I am not positive that other SVR4 systems won't match this, 861 # I just have to hope. -- rms. 862 # Use sysv4.2uw... so that sysv4* matches it. 863 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 864 exit 0 ;; 865 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) 380 866 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 381 867 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} 382 868 else 383 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE} 384 fi 385 exit 0 ;; 386 i[34]86:*:3.2:*) 869 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} 870 fi 871 exit 0 ;; 872 i?86:*:5:7) 873 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 874 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 875 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 876 && UNAME_MACHINE=i586 877 (/bin/uname -X|egrep '^Machine.*PentII' >/dev/null) \ 878 && UNAME_MACHINE=i686 879 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 880 && UNAME_MACHINE=i686 881 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE} 882 exit 0 ;; 883 i?86:*:3.2:*) 387 884 if test -f /usr/options/cb.name; then 388 885 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 389 echo ${UNAME_MACHINE}- unknown-isc$UNAME_REL886 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 390 887 elif /bin/uname -X 2>/dev/null >/dev/null ; then 391 888 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` … … 393 890 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 394 891 && UNAME_MACHINE=i586 395 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL 892 (/bin/uname -X|egrep '^Machine.*PentII' >/dev/null) \ 893 && UNAME_MACHINE=i686 894 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 895 && UNAME_MACHINE=i686 896 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 396 897 else 397 echo ${UNAME_MACHINE}-unknown-sysv32 398 fi 399 exit 0 ;; 898 echo ${UNAME_MACHINE}-pc-sysv32 899 fi 900 exit 0 ;; 901 pc:*:*:*) 902 # uname -m prints for DJGPP always 'pc', but it prints nothing about 903 # the processor, so we play safe by assuming i386. 904 echo i386-pc-msdosdjgpp 905 exit 0 ;; 400 906 Intel:Mach:3*:*) 401 echo i386- unknown-mach3907 echo i386-pc-mach3 402 908 exit 0 ;; 403 909 paragon:*:*:*) … … 415 921 echo m68010-convergent-sysv 416 922 exit 0 ;; 417 M68 0[234]0:*:R3V[567]*:*)923 M68*:*:R3V[567]*:*) 418 924 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 419 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0) 420 uname -p 2>/dev/null | grep 86 >/dev/null \ 421 && echo i486-ncr-sysv4.3 && exit 0 ;; 925 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) 926 OS_REL='' 927 test -r /etc/.relid \ 928 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 929 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 930 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 931 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 932 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 422 933 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 423 uname -p 2>/dev/null | grep 86 >/dev/null \934 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 424 935 && echo i486-ncr-sysv4 && exit 0 ;; 425 m68 0[234]0:LynxOS:2.[23]*:*)426 echo m68k- lynx-lynxos${UNAME_RELEASE}936 m68*:LynxOS:2.*:*) 937 echo m68k-unknown-lynxos${UNAME_RELEASE} 427 938 exit 0 ;; 428 939 mc68030:UNIX_System_V:4.*:*) 429 940 echo m68k-atari-sysv4 430 941 exit 0 ;; 431 i[34]86:LynxOS:2.[23]*:*) 432 echo i386-lynx-lynxos${UNAME_RELEASE} 433 exit 0 ;; 434 TSUNAMI:LynxOS:2.[23]*:*) 435 echo sparc-lynx-lynxos${UNAME_RELEASE} 436 exit 0 ;; 437 rs6000:LynxOS:2.[23]*:*) 438 echo rs6000-lynx-lynxos${UNAME_RELEASE} 942 i?86:LynxOS:2.*:*) 943 echo i386-unknown-lynxos${UNAME_RELEASE} 944 exit 0 ;; 945 TSUNAMI:LynxOS:2.*:*) 946 echo sparc-unknown-lynxos${UNAME_RELEASE} 947 exit 0 ;; 948 rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) 949 echo rs6000-unknown-lynxos${UNAME_RELEASE} 950 exit 0 ;; 951 SM[BE]S:UNIX_SV:*:*) 952 echo mips-dde-sysv${UNAME_RELEASE} 439 953 exit 0 ;; 440 954 RM*:SINIX-*:*:*) … … 449 963 fi 450 964 exit 0 ;; 965 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 966 # says <Richard.M.Bartel@ccMail.Census.GOV> 967 echo i586-unisys-sysv4 968 exit 0 ;; 969 *:UNIX_System_V:4*:FTX*) 970 # From Gerald Hewes <hewes@openmarket.com>. 971 # How about differentiating between stratus architectures? -djm 972 echo hppa1.1-stratus-sysv4 973 exit 0 ;; 974 *:*:*:FTX*) 975 # From seanf@swdc.stratus.com. 976 echo i860-stratus-sysv4 977 exit 0 ;; 451 978 mc68*:A/UX:*:*) 452 979 echo m68k-apple-aux${UNAME_RELEASE} 980 exit 0 ;; 981 news*:NEWS-OS:*:6*) 982 echo mips-sony-newsos6 983 exit 0 ;; 984 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) 985 if [ -d /usr/nec ]; then 986 echo mips-nec-sysv${UNAME_RELEASE} 987 else 988 echo mips-unknown-sysv${UNAME_RELEASE} 989 fi 990 exit 0 ;; 991 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 992 echo powerpc-be-beos 993 exit 0 ;; 994 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 995 echo powerpc-apple-beos 453 996 exit 0 ;; 454 997 esac … … 495 1038 int version; 496 1039 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 497 printf ("%s-next-nextstep% s\n", __ARCHITECTURE__, version==2 ? "2" : "3");1040 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 498 1041 exit (0); 499 1042 #endif … … 512 1055 513 1056 #if defined (__386BSD__) 514 printf ("i386- unknown-bsd\n"); exit (0);1057 printf ("i386-pc-bsd\n"); exit (0); 515 1058 #endif 516 1059 -
config.sub
r72541b r539266 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script, version 1.1. 3 # Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. 3 # 4 # Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000 5 # Free Software Foundation, Inc. 6 # 4 7 # This file is (in principle) common to ALL GNU software. 5 8 # 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. 9 # can handle that machine. It does not imply ALL GNU software can. 7 10 # 8 11 # This file is free software; you can redistribute it and/or modify … … 42 45 # machine specification into a single specification in the form: 43 46 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 47 # or in some cases, the newer four-part form: 48 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 44 49 # It is wrong to echo any other type of specification. 45 50 … … 63 68 esac 64 69 65 # Separate what the user gave into CPU-COMPANY and OS (if any). 66 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 67 if [ $basic_machine != $1 ] 68 then os=`echo $1 | sed 's/.*-/-/'` 69 else os=; fi 70 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 71 # Here we must recognize all the valid KERNEL-OS combinations. 72 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 73 case $maybe_os in 74 linux-gnu*) 75 os=-$maybe_os 76 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 77 ;; 78 *) 79 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 80 if [ $basic_machine != $1 ] 81 then os=`echo $1 | sed 's/.*-/-/'` 82 else os=; fi 83 ;; 84 esac 70 85 71 86 ### Let's recognize common machines as not being operating systems so … … 82 97 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 83 98 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 84 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp ) 99 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 100 -apple) 85 101 os= 86 102 basic_machine=$1 87 103 ;; 88 -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL89 os=90 basic_machine=$191 ;;92 -apple*) # CYGNUS LOCAL93 os=94 basic_machine=$195 ;;96 -scout) # CYGNUS LOCAL97 ;;98 -wrs) # CYGNUS LOCAL99 os=vxworks100 basic_machine=$1101 ;;102 104 -hiux*) 103 105 os=-hiuxwe2 104 106 ;; 107 -sco5) 108 os=sco3.2v5 109 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 110 ;; 105 111 -sco4) 106 112 os=-sco3.2v4 107 basic_machine=`echo $1 | sed -e 's/86-.*/86- unknown/'`113 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 108 114 ;; 109 115 -sco3.2.[4-9]*) 110 116 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 111 basic_machine=`echo $1 | sed -e 's/86-.*/86- unknown/'`117 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 112 118 ;; 113 119 -sco3.2v[4-9]*) 114 120 # Don't forget version if it is 3.2v4 or newer. 115 basic_machine=`echo $1 | sed -e 's/86-.*/86- unknown/'`121 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 116 122 ;; 117 123 -sco*) 118 124 os=-sco3.2v2 119 basic_machine=`echo $1 | sed -e 's/86-.*/86- unknown/'`125 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 120 126 ;; 121 127 -isc) 122 128 os=-isc2.2 123 basic_machine=`echo $1 | sed -e 's/86-.*/86- unknown/'`129 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 124 130 ;; 125 131 -clix*) … … 127 133 ;; 128 134 -isc*) 129 basic_machine=`echo $1 | sed -e 's/86-.*/86- unknown/'`135 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 130 136 ;; 131 137 -lynx*) … … 137 143 -windowsnt*) 138 144 os=`echo $os | sed -e 's/windowsnt/winnt/'` 145 ;; 146 -psos*) 147 os=-psos 139 148 ;; 140 149 esac … … 144 153 # Recognize the basic CPU types without company name. 145 154 # Some are omitted here because they have special meanings below. 146 tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm | armeb \ 147 | armel | pyramid \ 148 | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ 149 | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \ 150 | powerpc | powerpcle | sparc64 | 1750a | dsp16xx | mips64 | mipsel \ 151 | pdp11 | mips64el | mips64orion | mips64orionel \ 152 | sparc | supersparc | microsparc | ultrasparc) 155 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 156 | arme[lb] | pyramid | mn10200 | mn10300 \ 157 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ 158 | hppa2.0 \ 159 | alpha | alphaev5 | alphaev56 | ev6 | we32k | ns16k | clipper \ 160 | i370 | sh | powerpc | powerpcle | powerpc64 | 1750a | dsp16xx | pdp11 \ 161 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ 162 | mipstx39 | mipstx39el \ 163 | sparc | sparclet | sparclite | sparc64 | v850) 153 164 basic_machine=$basic_machine-unknown 154 165 ;; 155 m88110 | m680[012346]0 | m683?2 | m68360 | z8k | v70 | h8500 | w65) # CYGNUS LOCAL166 sparcv[89] | supersparc | microsparc | ultrasparc) 156 167 basic_machine=$basic_machine-unknown 157 168 ;; 158 mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith 159 basic_machine=$basic_machine-unknown 160 ;; 169 # We use `pc' rather than `unknown' 170 # because (1) that's what they normally are, and 171 # (2) the word "unknown" tends to confuse beginning users. 172 i[34]86 | pentium[23] | k5 | k6 | k6[23] | athlon) 173 basic_machine=$basic_machine-pc 174 ;; 161 175 # Object if more than one company name word. 162 176 *-*-*) … … 165 179 ;; 166 180 # Recognize the basic CPU types with company name. 167 vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \ 168 | sparc-* | ns32k-* | fx80-* | arm-* | arme[lb]-* | c[123]* \ 169 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \ 170 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ 171 | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ 172 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ 173 | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* \ 174 | mips64-* | mipsel-* | mips64el-* | mips64orion-* \ 175 | mips64orionel-* | supersparc-* | microsparc-* | ultrasparc-*) 176 ;; 177 m88110-* | m680[012346]0-* | m683?2-* | m68360-* | z8k-* | h8500-*) # CYGNUS LOCAL 178 ;; 179 mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith 181 vax-* | tahoe-* | i[34]86-* | pentium[23]-* | i860-* | m32r-* | m68k-* | m68000-* \ 182 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 183 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 184 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ 185 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ 186 | alpha-* | alphaev5-* | alphaev56-* | alphaev6-* | we32k-* | cydra-* \ 187 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ 188 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* | powerpc64-* \ 189 | sparc64-* | mips64-* | mipsel-* \ 190 | mips64el-* | mips64orion-* | mips64orionel-* \ 191 | mipstx39-* | mipstx39el-* \ 192 | f301-* | k6-* | k6[23]-* | athlon-*) 193 ;; 194 sparcv[89]-* | supersparc-* | microsparc-* | ultrasparc-*) 180 195 ;; 181 196 # Recognize the various machine names and aliases which stand 182 197 # for a CPU type and a company and sometimes even an OS. 183 386bsd) # CYGNUS LOCAL184 basic_machine=i386-unknown185 os=-bsd186 ;;187 198 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 188 199 basic_machine=m68000-att … … 191 202 basic_machine=we32k-att 192 203 ;; 193 a29khif) # CYGNUS LOCAL194 basic_machine=a29k-amd195 os=-udi196 ;;197 adobe68k) # CYGNUS LOCAL198 basic_machine=m68010-adobe199 os=-scout200 ;;201 204 alliant | fx80) 202 205 basic_machine=fx80-alliant … … 216 219 basic_machine=m68k-cbm 217 220 ;; 218 amiga dos)221 amigaos | amigados) 219 222 basic_machine=m68k-cbm 220 os=-amiga dos223 os=-amigaos 221 224 ;; 222 225 amigaunix | amix) … … 228 231 os=-sysv 229 232 ;; 230 apollo68bsd) # CYGNUS LOCAL 231 basic_machine=m68k-apollo 232 os=-bsd 233 ;; 234 arm | armel | armeb) 235 basic_machine=arm-arm 236 os=-aout 233 aux) 234 basic_machine=m68k-apple 235 os=-aux 237 236 ;; 238 237 balance) … … 240 239 os=-dynix 241 240 ;; 241 convex-c1) 242 basic_machine=c1-convex 243 os=-bsd 244 ;; 245 convex-c2) 246 basic_machine=c2-convex 247 os=-bsd 248 ;; 249 convex-c32) 250 basic_machine=c32-convex 251 os=-bsd 252 ;; 253 convex-c34) 254 basic_machine=c34-convex 255 os=-bsd 256 ;; 257 convex-c38) 258 basic_machine=c38-convex 259 os=-bsd 260 ;; 261 cray | ymp) 262 basic_machine=ymp-cray 263 os=-unicos 264 ;; 265 cray2) 266 basic_machine=cray2-cray 267 os=-unicos 268 ;; 242 269 [ctj]90-cray) 243 270 basic_machine=c90-cray 244 271 os=-unicos 245 272 ;; 246 convex-c1)247 basic_machine=c1-convex248 os=-bsd249 ;;250 convex-c2)251 basic_machine=c2-convex252 os=-bsd253 ;;254 convex-c32)255 basic_machine=c32-convex256 os=-bsd257 ;;258 convex-c34)259 basic_machine=c34-convex260 os=-bsd261 ;;262 convex-c38)263 basic_machine=c38-convex264 os=-bsd265 ;;266 cray | ymp)267 basic_machine=ymp-cray268 os=-unicos269 ;;270 cray2)271 basic_machine=cray2-cray272 os=-unicos273 ;;274 273 crds | unos) 275 274 basic_machine=m68k-crds … … 308 307 basic_machine=ns32k-encore 309 308 ;; 310 es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL311 basic_machine=m68k-ericsson312 os=-ose313 ;;314 309 fx2800) 315 310 basic_machine=i860-alliant … … 330 325 os=-hms 331 326 ;; 332 h8300xray) # CYGNUS LOCAL333 basic_machine=h8300-hitachi334 os=-xray335 ;;336 h8500hms) # CYGNUS LOCAL337 basic_machine=h8500-hitachi338 os=-hms339 ;;340 327 harris) 341 328 basic_machine=m88k-harris … … 353 340 os=-hpux 354 341 ;; 355 w89k-*) # CYGNUS LOCAL356 basic_machine=hppa1.1-winbond357 os=-proelf358 ;;359 op50n-*) # CYGNUS LOCAL360 basic_machine=hppa1.1-oki361 os=-proelf362 ;;363 op60c-*) # CYGNUS LOCAL364 basic_machine=hppa1.1-oki365 os=-proelf366 ;;367 hppro) # CYGNUS LOCAL368 basic_machine=hppa1.1-hp369 os=-proelf370 ;;371 342 hp9k2[0-9][0-9] | hp9k31[0-9]) 372 343 basic_machine=m68000-hp … … 381 352 basic_machine=hppa1.0-hp 382 353 ;; 383 hppaosf) # CYGNUS LOCAL 384 basic_machine=hppa1.1-hp 385 os=-osf 354 hppa-next) 355 os=-nextstep3 386 356 ;; 387 357 i370-ibm* | ibm*) … … 391 361 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 392 362 i[3456]86v32) 393 basic_machine=`echo $1 | sed -e 's/86.*/86- unknown/'`363 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 394 364 os=-sysv32 395 365 ;; 396 366 i[3456]86v4*) 397 basic_machine=`echo $1 | sed -e 's/86.*/86- unknown/'`367 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 398 368 os=-sysv4 399 369 ;; 400 370 i[3456]86v) 401 basic_machine=`echo $1 | sed -e 's/86.*/86- unknown/'`371 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 402 372 os=-sysv 403 373 ;; 404 374 i[3456]86sol2) 405 basic_machine=`echo $1 | sed -e 's/86.*/86- unknown/'`375 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 406 376 os=-solaris2 407 ;;408 i386mach) # CYGNUS LOCAL409 basic_machine=i386-mach410 os=-mach411 ;;412 i386-vsta | vsta) # CYGNUS LOCAL413 basic_machine=i386-unknown414 os=-vsta415 ;;416 i386-go32 | go32) # CYGNUS LOCAL417 basic_machine=i386-unknown418 os=-go32419 377 ;; 420 378 iris | iris4d) … … 432 390 os=-sysv 433 391 ;; 392 macppc*) 393 basic_machine=powerpc-apple 394 ;; 434 395 m88k-omron*) 435 396 basic_machine=m88k-omron … … 446 407 basic_machine=m68000-convergent 447 408 ;; 409 mipsel*-linux*) 410 basic_machine=mipsel-unknown 411 os=-linux-gnu 412 ;; 413 mips*-linux*) 414 basic_machine=mips-unknown 415 os=-linux-gnu 416 ;; 448 417 mips3*-*) 449 418 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` … … 451 420 mips3*) 452 421 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 453 ;;454 monitor) # CYGNUS LOCAL455 basic_machine=m68k-rom68k456 os=-coff457 ;;458 msdos) # CYGNUS LOCAL459 basic_machine=i386-unknown460 os=-msdos461 422 ;; 462 423 ncr3000) … … 464 425 os=-sysv4 465 426 ;; 466 netbsd386)467 basic_machine=i386-unknown # CYGNUS LOCAL468 os=-netbsd469 ;;470 427 news | news700 | news800 | news900) 471 428 basic_machine=m68k-sony … … 479 436 basic_machine=mips-sony 480 437 os=-newsos 481 ;;482 necv70) # CYGNUS LOCAL483 basic_machine=v70-nec484 os=-sysv485 438 ;; 486 439 next | m*-next ) … … 512 465 basic_machine=np1-gould 513 466 ;; 514 OSE68000 | ose68000) # CYGNUS LOCAL515 basic_machine=m68000-ericsson516 os=-ose517 ;;518 os68k) # CYGNUS LOCAL519 basic_machine=m68k-none520 os=-os68k521 ;;522 467 pa-hitachi) 523 468 basic_machine=hppa1.1-hitachi … … 537 482 basic_machine=ns32k-pc532 538 483 ;; 539 pentium | p5) 540 basic_machine=i586-intel 484 pentiummmx | p55) 485 basic_machine=pentiummmx-pc 486 ;; 487 pentium | p5 | i586) 488 basic_machine=pentium-pc 541 489 ;; 542 490 pentiumpro | p6) 543 basic_machine=i686-intel 544 ;; 545 pentium-* | p5-*) 546 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 491 basic_machine=pentiumpro-pc 492 ;; 493 pentiummmx-* | p55-*) 494 basic_machine=pentiummmx-`echo $basic_machine | sed 's/^[^-]*-//'` 495 ;; 496 pentium-* | p5-* | i586-*) 497 basic_machine=pentium-`echo $basic_machine | sed 's/^[^-]*-//'` 547 498 ;; 548 499 pentiumpro-* | p6-*) 549 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 550 ;; 551 k5) 552 # We don't have specific support for AMD's K5 yet, so just call it a Pentium 553 basic_machine=i586-amd 554 ;; 555 nexgen) 500 basic_machine=pentiumpro-`echo $basic_machine | sed 's/^[^-]*-//'` 501 ;; 502 nexen) 556 503 # We don't have specific support for Nexgen yet, so just call it a Pentium 557 504 basic_machine=i586-nexgen … … 565 512 ;; 566 513 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 514 ;; 515 ppc64) basic_machine=powerpc64-unknown 516 ;; 517 ppc64-*) 518 basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 567 519 ;; 568 520 ppcle | powerpclittle | ppc-le | powerpc-little) … … 575 527 basic_machine=i386-ibm 576 528 ;; 577 rom68k) # CYGNUS LOCAL578 basic_machine=m68k-rom68k579 os=-coff580 ;;581 529 rm[46]00) 582 530 basic_machine=mips-siemens … … 584 532 rtpc | rtpc-*) 585 533 basic_machine=romp-ibm 586 ;;587 sa29200) # CYGNUS LOCAL588 basic_machine=a29k-amd589 os=-udi590 534 ;; 591 535 sequent) … … 596 540 os=-hms 597 541 ;; 598 sparclite-wrs) # CYGNUS LOCAL599 basic_machine=sparclite-wrs600 os=-vxworks601 ;;602 sparcfrw) # CYGNUS LOCAL603 basic_machine=sparcfrw-sun604 os=-sunos4605 ;;606 sparcfrwcompat) # CYGNUS LOCAL607 basic_machine=sparcfrwcompat-sun608 os=-sunos4609 ;;610 sparclitefrw) # CYGNUS LOCAL611 basic_machine=sparclitefrw-fujitsu612 ;;613 sparclitefrwcompat) # CYGNUS LOCAL614 basic_machine=sparclitefrwcompat-fujitsu615 ;;616 542 sps7) 617 543 basic_machine=m68k-bull … … 621 547 basic_machine=spur-unknown 622 548 ;; 623 st2000) # CYGNUS LOCAL624 basic_machine=m68k-tandem625 ;;626 stratus) # CYGNUS LOCAL627 basic_machine=i860-stratus628 os=-sysv4629 ;;630 549 sun2) 631 550 basic_machine=m68000-sun … … 672 591 os=-dynix 673 592 ;; 593 tx39) 594 basic_machine=mipstx39-unknown 595 ;; 596 tx39el) 597 basic_machine=mipstx39el-unknown 598 ;; 674 599 tower | tower-32) 675 600 basic_machine=m68k-ncr … … 683 608 os=-sym1 684 609 ;; 685 v810 | necv810) # CYGNUS LOCAL686 basic_machine=v810-nec687 os=-none688 ;;689 610 vaxv) 690 611 basic_machine=vax-dec … … 695 616 os=-vms 696 617 ;; 618 vpp*|vx|vx-*) 619 basic_machine=f301-fujitsu 620 ;; 697 621 vxworks960) 698 622 basic_machine=i960-wrs … … 703 627 os=-vxworks 704 628 ;; 705 vxworks29k) # CYGNUS LOCAL 706 basic_machine=a29k-wrs 707 os=-vxworks 708 ;; 709 w65*) # CYGNUS LOCAL 710 basic_machine=w65-wdc 711 os=-none 629 vxworks29k) 630 basic_machine=a29k-wrs 631 os=-vxworks 712 632 ;; 713 633 xmp) … … 718 638 basic_machine=xps100-honeywell 719 639 ;; 720 z8k-*-coff) # CYGNUS LOCAL721 basic_machine=z8k-unknown722 os=-sim723 ;;724 640 none) 725 641 basic_machine=none-none … … 729 645 # Here we handle the default manufacturer of certain CPU types. It is in 730 646 # some cases the only manufacturer, in others, it is the most popular. 731 w89k) # CYGNUS LOCAL732 basic_machine=hppa1.1-winbond733 ;;734 op50n) # CYGNUS LOCAL735 basic_machine=hppa1.1-oki736 ;;737 op60c) # CYGNUS LOCAL738 basic_machine=hppa1.1-oki739 ;;740 647 mips) 741 basic_machine=mips-mips 648 if [ x$os = x-linux-gnu ]; then 649 basic_machine=mips-unknown 650 else 651 basic_machine=mips-mips 652 fi 742 653 ;; 743 654 romp) … … 767 678 orion105) 768 679 basic_machine=clipper-highlevel 769 ;;770 mac | mpw | mac-mpw) # CYGNUS LOCAL771 basic_machine=m68k-apple772 ;;773 pmac | pmac-mpw) # CYGNUS LOCAL774 basic_machine=powerpc-apple775 680 ;; 776 681 *) … … 797 702 then 798 703 case $os in 704 # First match some system type aliases 705 # that might get confused with valid system types. 799 706 # -solaris* is a basic system type, with this one exception. 800 707 -solaris1 | -solaris1.*) … … 804 711 os=-solaris2 805 712 ;; 806 - unixware* |svr4*)713 -svr4*) 807 714 os=-sysv4 808 715 ;; 716 -unixware*) 717 os=-sysv4.2uw 718 ;; 809 719 -gnu/linux*) 810 os=`echo $os | sed -e 's|gnu/linux|linux |'`720 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 811 721 ;; 812 722 # First accept the basic system types. 813 723 # The portable systems comes first. 814 # Each alternative must end in a*, to match a version number.724 # Each alternative MUST END IN A *, to match a version number. 815 725 # -sysv* is not here because it comes later, after sysvr4. 816 -gnu* | -bsd* | -mach* | - lites* | -minix* | -genix* | -ultrix* | -irix* \817 | - vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[3456]*\726 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 727 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 818 728 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 819 | -amigados* | -msdos* | -moss* | -newsos* | -unicos* | -aos* \ 820 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ 821 | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ 822 | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* | -lites* \ 729 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 730 | -aos* \ 731 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 732 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 733 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 823 734 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ 824 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta | -udi \ 825 | -eabi* | -ieee*) 826 ;; 827 # CYGNUS LOCAL 828 -go32 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 829 | -windows* | -osx | -abug | -netware* | -proelf | -os9* \ 830 | -macos* | -mpw* | -magic* | -pe* | -win32) 831 ;; 832 -mac*) # CYGNUS LOCAL 833 os=`echo $os | sed -e 's|mac|macos|'` 735 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 736 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 737 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 738 | -mingw32* | -linux-gnu* | -uxpv*) 739 # Remember, each alternative MUST END IN *, to match a version number. 740 ;; 741 -linux*) 742 os=`echo $os | sed -e 's|linux|linux-gnu|'` 834 743 ;; 835 744 -sunos5*) … … 854 763 os=-aos 855 764 ;; 856 -386bsd) # CYGNUS LOCAL857 os=-bsd858 ;;859 765 -ctix* | -uts*) 860 766 os=-sysv 767 ;; 768 -ns2 ) 769 os=-nextstep2 861 770 ;; 862 771 # Preserve the version number of sinix5. … … 884 793 # This must come after -sysvr4. 885 794 -sysv*) 886 ;;887 -ose*) # CYGNUS LOCAL888 os=-ose889 ;;890 -es1800*) # CYGNUS LOCAL891 os=-ose892 795 ;; 893 796 -xenix) … … 919 822 os=-riscix1.2 920 823 ;; 824 arm*-semi) 825 os=-aout 826 ;; 921 827 pdp11-*) 922 828 os=-none … … 937 843 # os=-sunos4 938 844 ;; 939 m68*-cisco) # CYGNUS LOCAL940 os=-aout941 ;;942 mips*-cisco) # CYGNUS LOCAL943 os=-elf944 ;;945 845 *-tti) # must be before sparc entry or we get the wrong os. 946 846 os=-sysv3 … … 952 852 os=-aix 953 853 ;; 954 *-wec) # CYGNUS LOCAL955 os=-proelf956 ;;957 *-winbond) # CYGNUS LOCAL958 os=-proelf959 ;;960 *-oki) # CYGNUS LOCAL961 os=-proelf962 ;;963 854 *-hp) 964 855 os=-hpux … … 971 862 ;; 972 863 *-cbm) 973 os=-amiga dos864 os=-amigaos 974 865 ;; 975 866 *-dg) … … 985 876 os=-luna 986 877 ;; 878 *-next ) 879 os=-nextstep 880 ;; 987 881 *-sequent) 988 882 os=-ptx … … 1018 912 os=-rtu 1019 913 ;; 1020 *-rom68k) # CYGNUS LOCAL 1021 os=-coff 1022 ;; 1023 *-*bug) # CYGNUS LOCAL 1024 os=-coff 1025 ;; 1026 *-apple) # CYGNUS LOCAL 1027 os=-macos 914 f301-fujitsu) 915 os=-uxpv 1028 916 ;; 1029 917 *) … … 1045 933 vendor=sun 1046 934 ;; 1047 -bosx*) # CYGNUS LOCAL1048 vendor=bull1049 ;;1050 -lynxos*)1051 vendor=lynx1052 ;;1053 935 -aix*) 1054 936 vendor=ibm … … 1078 960 vendor=sequent 1079 961 ;; 1080 -vx works*)962 -vxsim* | -vxworks*) 1081 963 vendor=wrs 1082 964 ;; 1083 -hms*) # CYGNUS LOCAL 1084 vendor=hitachi 1085 ;; 1086 -mpw* | -macos*) # CYGNUS LOCAL 965 -aux*) 1087 966 vendor=apple 1088 967 ;;
Note: See TracChangeset
for help on using the changeset viewer.