Changeset 1f3696b for config.guess
- Timestamp:
- 08/11/04 14:44:20 (18 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- ffe76f8
- Parents:
- e619d90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
config.guess
r7957e84 r1f3696b 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002 Free Software Foundation, Inc.5 6 timestamp='200 2-03-20'4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2004-01-24' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 89 89 fi 90 90 91 92 dummy=dummy-$$ 93 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 94 95 # CC_FOR_BUILD -- compiler used by this script. 91 trap 'exit 1' 1 2 15 92 93 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a 94 # compiler to aid in system detection is discouraged as it requires 95 # temporary files to be created and, as you can see below, it is a 96 # headache to deal with in a portable fashion. 97 96 98 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 97 99 # use `HOST_CC' if defined, but it is deprecated. 98 100 99 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 100 ,,) echo "int dummy(){}" > $dummy.c ; 101 # Portable tmp directory creation inspired by the Autoconf team. 102 103 set_cc_for_build=' 104 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 105 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 111 dummy=$tmp/dummy ; 112 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 113 case $CC_FOR_BUILD,$HOST_CC,$CC in 114 ,,) echo "int x;" > $dummy.c ; 101 115 for c in cc gcc c89 c99 ; do 102 ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; 103 if test $? = 0 ; then 116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 104 117 CC_FOR_BUILD="$c"; break ; 105 118 fi ; 106 119 done ; 107 rm -f $dummy.c $dummy.o $dummy.rel ;108 120 if test x"$CC_FOR_BUILD" = x ; then 109 121 CC_FOR_BUILD=no_compiler_found ; … … 112 124 ,,*) CC_FOR_BUILD=$CC ;; 113 125 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 114 esac '126 esac ;' 115 127 116 128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 143 155 /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 144 156 case "${UNAME_MACHINE_ARCH}" in 157 armeb) machine=armeb-unknown ;; 145 158 arm*) machine=arm-unknown ;; 146 159 sh3el) machine=shl-unknown ;; … … 168 181 esac 169 182 # The OS release 170 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 183 # Debian GNU/NetBSD machines have a different userland, and 184 # thus, need a distinct triplet. However, they do not need 185 # kernel version information, so it can be replaced with a 186 # suitable tag, in the style of linux-gnu. 187 case "${UNAME_VERSION}" in 188 Debian*) 189 release='-gnu' 190 ;; 191 *) 192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 193 ;; 194 esac 171 195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 172 196 # contains redundant information, the shorter form: … … 198 222 echo powerpc-unknown-openbsd${UNAME_RELEASE} 199 223 exit 0 ;; 224 pegasos:OpenBSD:*:*) 225 echo powerpc-unknown-openbsd${UNAME_RELEASE} 226 exit 0 ;; 200 227 pmax:OpenBSD:*:*) 201 228 echo mipsel-unknown-openbsd${UNAME_RELEASE} … … 217 244 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 218 245 fi 246 # According to Compaq, /usr/sbin/psrinfo has been available on 247 # OSF/1 and Tru64 systems produced since 1995. I hope that 248 # covers most systems running today. This code pipes the CPU 249 # types through head -n 1, so we only detect the type of CPU 0. 250 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 251 case "$ALPHA_CPU_TYPE" in 252 "EV4 (21064)") 253 UNAME_MACHINE="alpha" ;; 254 "EV4.5 (21064)") 255 UNAME_MACHINE="alpha" ;; 256 "LCA4 (21066/21068)") 257 UNAME_MACHINE="alpha" ;; 258 "EV5 (21164)") 259 UNAME_MACHINE="alphaev5" ;; 260 "EV5.6 (21164A)") 261 UNAME_MACHINE="alphaev56" ;; 262 "EV5.6 (21164PC)") 263 UNAME_MACHINE="alphapca56" ;; 264 "EV5.7 (21164PC)") 265 UNAME_MACHINE="alphapca57" ;; 266 "EV6 (21264)") 267 UNAME_MACHINE="alphaev6" ;; 268 "EV6.7 (21264A)") 269 UNAME_MACHINE="alphaev67" ;; 270 "EV6.8CB (21264C)") 271 UNAME_MACHINE="alphaev68" ;; 272 "EV6.8AL (21264B)") 273 UNAME_MACHINE="alphaev68" ;; 274 "EV6.8CX (21264D)") 275 UNAME_MACHINE="alphaev68" ;; 276 "EV6.9A (21264/EV69A)") 277 UNAME_MACHINE="alphaev69" ;; 278 "EV7 (21364)") 279 UNAME_MACHINE="alphaev7" ;; 280 "EV7.9 (21364A)") 281 UNAME_MACHINE="alphaev79" ;; 282 esac 219 283 # A Vn.n version is a released version. 220 284 # A Tn.n version is a released field test version. 221 285 # A Xn.n version is an unreleased experimental baselevel. 222 286 # 1.2 uses "1.2" for uname -r. 223 cat <<EOF >$dummy.s224 .data225 \$Lformat:226 .byte 37,100,45,37,120,10,0 # "%d-%x\n"227 228 .text229 .globl main230 .align 4231 .ent main232 main:233 .frame \$30,16,\$26,0234 ldgp \$29,0(\$27)235 .prologue 1236 .long 0x47e03d80 # implver \$0237 lda \$2,-1238 .long 0x47e20c21 # amask \$2,\$1239 lda \$16,\$Lformat240 mov \$0,\$17241 not \$1,\$18242 jsr \$26,printf243 ldgp \$29,0(\$26)244 mov 0,\$16245 jsr \$26,exit246 .end main247 EOF248 eval $set_cc_for_build249 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null250 if test "$?" = 0 ; then251 case `./$dummy` in252 0-0)253 UNAME_MACHINE="alpha"254 ;;255 1-0)256 UNAME_MACHINE="alphaev5"257 ;;258 1-1)259 UNAME_MACHINE="alphaev56"260 ;;261 1-101)262 UNAME_MACHINE="alphapca56"263 ;;264 2-303)265 UNAME_MACHINE="alphaev6"266 ;;267 2-307)268 UNAME_MACHINE="alphaev67"269 ;;270 2-1307)271 UNAME_MACHINE="alphaev68"272 ;;273 esac274 fi275 rm -f $dummy.s $dummy276 287 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 288 exit 0 ;; 289 Alpha*:OpenVMS:*:*) 290 echo alpha-hp-vms 277 291 exit 0 ;; 278 292 Alpha\ *:Windows_NT*:*) … … 296 310 *:OS/390:*:*) 297 311 echo i370-ibm-openedition 312 exit 0 ;; 313 *:OS400:*:*) 314 echo powerpc-ibm-os400 298 315 exit 0 ;; 299 316 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 314 331 echo pyramid-pyramid-svr4 315 332 exit 0 ;; 333 DRS?6000:unix:4.0:6*) 334 echo sparc-icl-nx6 335 exit 0 ;; 336 DRS?6000:UNIX_SV:4.2*:7*) 337 case `/usr/bin/uname -p` in 338 sparc) echo sparc-icl-nx7 && exit 0 ;; 339 esac ;; 316 340 sun4H:SunOS:5.*:*) 317 341 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` … … 382 406 echo m68k-unknown-mint${UNAME_RELEASE} 383 407 exit 0 ;; 408 m68k:machten:*:*) 409 echo m68k-apple-machten${UNAME_RELEASE} 410 exit 0 ;; 384 411 powerpc:machten:*:*) 385 412 echo powerpc-apple-machten${UNAME_RELEASE} … … 420 447 } 421 448 EOF 422 $CC_FOR_BUILD $dummy.c -o $dummy \ 423 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 424 && rm -f $dummy.c $dummy && exit 0 425 rm -f $dummy.c $dummy 449 $CC_FOR_BUILD -o $dummy $dummy.c \ 450 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 451 && exit 0 426 452 echo mips-mips-riscos${UNAME_RELEASE} 427 453 exit 0 ;; 428 454 Motorola:PowerMAX_OS:*:*) 429 455 echo powerpc-motorola-powermax 456 exit 0 ;; 457 Motorola:*:4.3:PL8-*) 458 echo powerpc-harris-powermax 459 exit 0 ;; 460 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 461 echo powerpc-harris-powermax 430 462 exit 0 ;; 431 463 Night_Hawk:Power_UNIX:*:*) … … 501 533 } 502 534 EOF 503 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 504 rm -f $dummy.c $dummy 535 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 505 536 echo rs6000-ibm-aix3.2.5 506 537 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then … … 600 631 } 601 632 EOF 602 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` 603 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 604 rm -f $dummy.c $dummy 633 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 634 test -z "$HP_ARCH" && HP_ARCH=hppa 605 635 fi ;; 606 636 esac 637 if [ ${HP_ARCH} = "hppa2.0w" ] 638 then 639 # avoid double evaluation of $set_cc_for_build 640 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 641 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 642 then 643 HP_ARCH="hppa2.0w" 644 else 645 HP_ARCH="hppa64" 646 fi 647 fi 607 648 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 608 649 exit 0 ;; … … 638 679 } 639 680 EOF 640 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 641 rm -f $dummy.c $dummy 681 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 642 682 echo unknown-hitachi-hiuxwe2 643 683 exit 0 ;; … … 697 737 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 698 738 exit 0 ;; 699 CRAY*T3D:*:*:*)700 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'701 exit 0 ;;702 739 CRAY*T3E:*:*:*) 703 740 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' … … 705 742 CRAY*SV1:*:*:*) 706 743 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 744 exit 0 ;; 745 *:UNICOS/mp:*:*) 746 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 707 747 exit 0 ;; 708 748 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) … … 712 752 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 713 753 exit 0 ;; 754 5000:UNIX_System_V:4.*:*) 755 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 756 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 757 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 758 exit 0 ;; 714 759 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 715 760 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} … … 722 767 exit 0 ;; 723 768 *:FreeBSD:*:*) 724 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 769 # Determine whether the default compiler uses glibc. 770 eval $set_cc_for_build 771 sed 's/^ //' << EOF >$dummy.c 772 #include <features.h> 773 #if __GLIBC__ >= 2 774 LIBC=gnu 775 #else 776 LIBC= 777 #endif 778 EOF 779 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 780 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using 781 # FreeBSD's kernel, but not the complete OS. 782 case ${LIBC} in gnu) kernel_only='k' ;; esac 783 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 725 784 exit 0 ;; 726 785 i*:CYGWIN*:*) … … 733 792 echo ${UNAME_MACHINE}-pc-pw32 734 793 exit 0 ;; 735 x86:Interix*:3*) 736 echo i386-pc-interix3 794 x86:Interix*:[34]*) 795 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 796 exit 0 ;; 797 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 798 echo i${UNAME_MACHINE}-pc-mks 737 799 exit 0 ;; 738 800 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) … … 740 802 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 741 803 # UNAME_MACHINE based on the output of uname instead of i386? 742 echo i 386-pc-interix804 echo i586-pc-interix 743 805 exit 0 ;; 744 806 i*:UWIN*:*) … … 752 814 exit 0 ;; 753 815 *:GNU:*:*) 816 # the GNU system 754 817 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 818 exit 0 ;; 819 *:GNU/*:*:*) 820 # other systems with GNU libc and userland 821 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 755 822 exit 0 ;; 756 823 i*86:Minix:*:*) … … 759 826 arm*:Linux:*:*) 760 827 echo ${UNAME_MACHINE}-unknown-linux-gnu 828 exit 0 ;; 829 cris:Linux:*:*) 830 echo cris-axis-linux-gnu 761 831 exit 0 ;; 762 832 ia64:Linux:*:*) … … 783 853 EOF 784 854 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 785 rm -f $dummy.c 786 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 855 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 856 ;; 857 mips64:Linux:*:*) 858 eval $set_cc_for_build 859 sed 's/^ //' << EOF >$dummy.c 860 #undef CPU 861 #undef mips64 862 #undef mips64el 863 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 864 CPU=mips64el 865 #else 866 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 867 CPU=mips64 868 #else 869 CPU= 870 #endif 871 #endif 872 EOF 873 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 874 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 787 875 ;; 788 876 ppc:Linux:*:*) … … 819 907 s390:Linux:*:* | s390x:Linux:*:*) 820 908 echo ${UNAME_MACHINE}-ibm-linux 909 exit 0 ;; 910 sh64*:Linux:*:*) 911 echo ${UNAME_MACHINE}-unknown-linux-gnu 821 912 exit 0 ;; 822 913 sh*:Linux:*:*) … … 846 937 a.out-i386-linux) 847 938 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 848 exit 0 ;; 939 exit 0 ;; 849 940 coff-i386) 850 941 echo "${UNAME_MACHINE}-pc-linux-gnucoff" … … 877 968 #endif 878 969 #endif 970 #ifdef __dietlibc__ 971 LIBC=dietlibc 972 #endif 879 973 EOF 880 974 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 881 rm -f $dummy.c882 975 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 883 976 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 … … 897 990 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 898 991 exit 0 ;; 992 i*86:OS/2:*:*) 993 # If we were able to find `uname', then EMX Unix compatibility 994 # is probably installed. 995 echo ${UNAME_MACHINE}-pc-os2-emx 996 exit 0 ;; 997 i*86:XTS-300:*:STOP) 998 echo ${UNAME_MACHINE}-unknown-stop 999 exit 0 ;; 1000 i*86:atheos:*:*) 1001 echo ${UNAME_MACHINE}-unknown-atheos 1002 exit 0 ;; 1003 i*86:syllable:*:*) 1004 echo ${UNAME_MACHINE}-pc-syllable 1005 exit 0 ;; 1006 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1007 echo i386-unknown-lynxos${UNAME_RELEASE} 1008 exit 0 ;; 1009 i*86:*DOS:*:*) 1010 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1011 exit 0 ;; 899 1012 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 900 1013 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 918 1031 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 919 1032 elif /bin/uname -X 2>/dev/null >/dev/null ; then 920 UNAME_REL=`(/bin/uname -X| egrep Release|sed -e 's/.*= //')`921 (/bin/uname -X| egrep i80486 >/dev/null) && UNAME_MACHINE=i486922 (/bin/uname -X| egrep '^Machine.*Pentium' >/dev/null) \1033 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1034 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1035 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 923 1036 && UNAME_MACHINE=i586 924 (/bin/uname -X| egrep '^Machine.*Pent ?II' >/dev/null) \1037 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 925 1038 && UNAME_MACHINE=i686 926 (/bin/uname -X| egrep '^Machine.*Pentium Pro' >/dev/null) \1039 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 927 1040 && UNAME_MACHINE=i686 928 1041 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL … … 930 1043 echo ${UNAME_MACHINE}-pc-sysv32 931 1044 fi 932 exit 0 ;;933 i*86:*DOS:*:*)934 echo ${UNAME_MACHINE}-pc-msdosdjgpp935 1045 exit 0 ;; 936 1046 pc:*:*:*) … … 957 1067 echo m68010-convergent-sysv 958 1068 exit 0 ;; 1069 mc68k:UNIX:SYSTEM5:3.51m) 1070 echo m68k-convergent-sysv 1071 exit 0 ;; 1072 M680?0:D-NIX:5.3:*) 1073 echo m68k-diab-dnix 1074 exit 0 ;; 959 1075 M68*:*:R3V[567]*:*) 960 1076 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 961 3[34 ]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)1077 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) 962 1078 OS_REL='' 963 1079 test -r /etc/.relid \ … … 976 1092 echo m68k-atari-sysv4 977 1093 exit 0 ;; 978 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)979 echo i386-unknown-lynxos${UNAME_RELEASE}980 exit 0 ;;981 1094 TSUNAMI:LynxOS:2.*:*) 982 1095 echo sparc-unknown-lynxos${UNAME_RELEASE} … … 1050 1163 echo sx5-nec-superux${UNAME_RELEASE} 1051 1164 exit 0 ;; 1165 SX-6:SUPER-UX:*:*) 1166 echo sx6-nec-superux${UNAME_RELEASE} 1167 exit 0 ;; 1052 1168 Power*:Rhapsody:*:*) 1053 1169 echo powerpc-apple-rhapsody${UNAME_RELEASE} … … 1057 1173 exit 0 ;; 1058 1174 *:Darwin:*:*) 1059 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1175 case `uname -p` in 1176 *86) UNAME_PROCESSOR=i686 ;; 1177 powerpc) UNAME_PROCESSOR=powerpc ;; 1178 esac 1179 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1060 1180 exit 0 ;; 1061 1181 *:procnto*:*:* | *:QNX:[0123456789]*:*) … … 1070 1190 echo i386-pc-qnx 1071 1191 exit 0 ;; 1072 NSR- [GKLNPTVW]:NONSTOP_KERNEL:*:*)1192 NSR-?:NONSTOP_KERNEL:*:*) 1073 1193 echo nsr-tandem-nsk${UNAME_RELEASE} 1074 1194 exit 0 ;; … … 1093 1213 echo ${UNAME_MACHINE}-unknown-plan9 1094 1214 exit 0 ;; 1095 i*86:OS/2:*:*)1096 # If we were able to find `uname', then EMX Unix compatibility1097 # is probably installed.1098 echo ${UNAME_MACHINE}-pc-os2-emx1099 exit 0 ;;1100 1215 *:TOPS-10:*:*) 1101 1216 echo pdp10-unknown-tops10 … … 1116 1231 echo pdp10-unknown-its 1117 1232 exit 0 ;; 1118 i*86:XTS-300:*:STOP)1119 echo ${UNAME_MACHINE}-unknown-stop 1120 exit 0 ;; 1121 i*86:atheos:*:*)1122 echo ${UNAME_MACHINE}-unknown- atheos1233 SEI:*:*:SEIUX) 1234 echo mips-sei-seiux${UNAME_RELEASE} 1235 exit 0 ;; 1236 *:DragonFly:*:*) 1237 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1123 1238 exit 0 ;; 1124 1239 esac … … 1242 1357 EOF 1243 1358 1244 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1245 rm -f $dummy.c $dummy 1359 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1246 1360 1247 1361 # Apollos put the system type in the environment.
Note: See TracChangeset
for help on using the changeset viewer.