Changeset 3765 for trunk/psLib/config.guess
- Timestamp:
- Apr 22, 2005, 4:07:27 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/config.guess (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/config.guess
r3764 r3765 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, 2003 Free Software Foundation, Inc.5 6 timestamp='200 3-02-22'4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 6 timestamp='2004-08-11' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 54 54 55 55 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 57 57 Free Software Foundation, Inc. 58 58 … … 107 107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 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 ; } || 109 110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 110 111 dummy=$tmp/dummy ; … … 135 136 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 136 137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 139 case "${UNAME_MACHINE}" in 140 i?86) 141 test -z "$VENDOR" && VENDOR=pc 142 ;; 143 *) 144 test -z "$VENDOR" && VENDOR=unknown 145 ;; 146 esac 147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse 137 148 138 149 # Note: order is significant - the case branches are not exclusive. … … 197 208 echo "${machine}-${os}${release}" 198 209 exit 0 ;; 210 amd64:OpenBSD:*:*) 211 echo x86_64-unknown-openbsd${UNAME_RELEASE} 212 exit 0 ;; 199 213 amiga:OpenBSD:*:*) 200 214 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 203 217 echo mipsel-unknown-openbsd${UNAME_RELEASE} 204 218 exit 0 ;; 219 cats:OpenBSD:*:*) 220 echo arm-unknown-openbsd${UNAME_RELEASE} 221 exit 0 ;; 205 222 hp300:OpenBSD:*:*) 206 223 echo m68k-unknown-openbsd${UNAME_RELEASE} 207 224 exit 0 ;; 225 luna88k:OpenBSD:*:*) 226 echo m88k-unknown-openbsd${UNAME_RELEASE} 227 exit 0 ;; 208 228 mac68k:OpenBSD:*:*) 209 229 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 236 256 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 237 257 exit 0 ;; 258 *:ekkoBSD:*:*) 259 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 260 exit 0 ;; 261 macppc:MirBSD:*:*) 262 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 263 exit 0 ;; 264 *:MirBSD:*:*) 265 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 266 exit 0 ;; 238 267 alpha:OSF1:*:*) 239 if test $UNAME_RELEASE = "V4.0"; then 268 case $UNAME_RELEASE in 269 *4.0) 240 270 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 241 fi 271 ;; 272 *5.*) 273 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 274 ;; 275 esac 242 276 # According to Compaq, /usr/sbin/psrinfo has been available on 243 277 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 277 311 UNAME_MACHINE="alphaev79" ;; 278 312 esac 313 # A Pn.n version is a patched version. 279 314 # A Vn.n version is a released version. 280 315 # A Tn.n version is a released field test version. 281 316 # A Xn.n version is an unreleased experimental baselevel. 282 317 # 1.2 uses "1.2" for uname -r. 283 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[ VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`318 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 284 319 exit 0 ;; 285 320 Alpha\ *:Windows_NT*:*) … … 303 338 *:OS/390:*:*) 304 339 echo i370-ibm-openedition 340 exit 0 ;; 341 *:OS400:*:*) 342 echo powerpc-ibm-os400 305 343 exit 0 ;; 306 344 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 321 359 echo pyramid-pyramid-svr4 322 360 exit 0 ;; 361 DRS?6000:unix:4.0:6*) 362 echo sparc-icl-nx6 363 exit 0 ;; 323 364 DRS?6000:UNIX_SV:4.2*:7*) 324 365 case `/usr/bin/uname -p` in … … 393 434 echo m68k-unknown-mint${UNAME_RELEASE} 394 435 exit 0 ;; 436 m68k:machten:*:*) 437 echo m68k-apple-machten${UNAME_RELEASE} 438 exit 0 ;; 395 439 powerpc:machten:*:*) 396 440 echo powerpc-apple-machten${UNAME_RELEASE} … … 728 772 exit 0 ;; 729 773 *:UNICOS/mp:*:*) 730 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'774 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 731 775 exit 0 ;; 732 776 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) … … 736 780 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 737 781 exit 0 ;; 782 5000:UNIX_System_V:4.*:*) 783 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 784 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 785 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 786 exit 0 ;; 738 787 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 739 788 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} … … 746 795 exit 0 ;; 747 796 *:FreeBSD:*:*) 748 # Determine whether the default compiler uses glibc. 749 eval $set_cc_for_build 750 sed 's/^ //' << EOF >$dummy.c 751 #include <features.h> 752 #if __GLIBC__ >= 2 753 LIBC=gnu 754 #else 755 LIBC= 756 #endif 757 EOF 758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 759 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 760 798 exit 0 ;; 761 799 i*:CYGWIN*:*) … … 768 806 echo ${UNAME_MACHINE}-pc-pw32 769 807 exit 0 ;; 770 x86:Interix*: 3*)771 echo i586-pc-interix 3808 x86:Interix*:[34]*) 809 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 772 810 exit 0 ;; 773 811 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) … … 790 828 exit 0 ;; 791 829 *:GNU:*:*) 830 # the GNU system 792 831 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 832 exit 0 ;; 833 *:GNU/*:*:*) 834 # other systems with GNU libc and userland 835 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 793 836 exit 0 ;; 794 837 i*86:Minix:*:*) … … 796 839 exit 0 ;; 797 840 arm*:Linux:*:*) 798 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 echo ${UNAME_MACHINE}-${VENDOR}-linux 842 exit 0 ;; 843 cris:Linux:*:*) 844 echo cris-axis-linux 799 845 exit 0 ;; 800 846 ia64:Linux:*:*) 801 echo ${UNAME_MACHINE}-unknown-linux-gnu 847 echo ${UNAME_MACHINE}-${VENDOR}-linux 848 exit 0 ;; 849 m32r*:Linux:*:*) 850 echo ${UNAME_MACHINE}-${VENDOR}-linux 802 851 exit 0 ;; 803 852 m68*:Linux:*:*) 804 echo ${UNAME_MACHINE}- unknown-linux-gnu853 echo ${UNAME_MACHINE}-${VENDOR}-linux 805 854 exit 0 ;; 806 855 mips:Linux:*:*) … … 821 870 EOF 822 871 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 823 test x"${CPU}" != x && echo "${CPU}- unknown-linux-gnu" && exit 0872 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 824 873 ;; 825 874 mips64:Linux:*:*) … … 840 889 EOF 841 890 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 842 test x"${CPU}" != x && echo "${CPU}- unknown-linux-gnu" && exit 0891 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 843 892 ;; 844 893 ppc:Linux:*:*) 845 echo powerpc- unknown-linux-gnu894 echo powerpc-${VENDOR}-linux 846 895 exit 0 ;; 847 896 ppc64:Linux:*:*) 848 echo powerpc64- unknown-linux-gnu897 echo powerpc64-${VENDOR}-linux 849 898 exit 0 ;; 850 899 alpha:Linux:*:*) … … 859 908 esac 860 909 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 861 if test "$?" = 0 ; then LIBC=" libc1" ; else LIBC="" ; fi862 echo ${UNAME_MACHINE}- unknown-linux-gnu${LIBC}910 if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi 911 echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} 863 912 exit 0 ;; 864 913 parisc:Linux:*:* | hppa:Linux:*:*) 865 914 # Look for CPU level 866 915 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 867 PA7*) echo hppa1.1- unknown-linux-gnu;;868 PA8*) echo hppa2.0- unknown-linux-gnu;;869 *) echo hppa- unknown-linux-gnu;;916 PA7*) echo hppa1.1-${VENDOR}-linux ;; 917 PA8*) echo hppa2.0-${VENDOR}-linux ;; 918 *) echo hppa-${VENDOR}-linux ;; 870 919 esac 871 920 exit 0 ;; 872 921 parisc64:Linux:*:* | hppa64:Linux:*:*) 873 echo hppa64- unknown-linux-gnu922 echo hppa64-${VENDOR}-linux 874 923 exit 0 ;; 875 924 s390:Linux:*:* | s390x:Linux:*:*) 876 925 echo ${UNAME_MACHINE}-ibm-linux 877 926 exit 0 ;; 927 sh64*:Linux:*:*) 928 echo ${UNAME_MACHINE}-${VENDOR}-linux 929 exit 0 ;; 878 930 sh*:Linux:*:*) 879 echo ${UNAME_MACHINE}- unknown-linux-gnu931 echo ${UNAME_MACHINE}-${VENDOR}-linux 880 932 exit 0 ;; 881 933 sparc:Linux:*:* | sparc64:Linux:*:*) 882 echo ${UNAME_MACHINE}- unknown-linux-gnu934 echo ${UNAME_MACHINE}-${VENDOR}-linux 883 935 exit 0 ;; 884 936 x86_64:Linux:*:*) 885 echo x86_64- unknown-linux-gnu937 echo x86_64-${VENDOR}-linux 886 938 exit 0 ;; 887 939 i*86:Linux:*:*) … … 898 950 case "$ld_supported_targets" in 899 951 elf32-i386) 900 TENTATIVE="${UNAME_MACHINE}- pc-linux-gnu"952 TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux" 901 953 ;; 902 954 a.out-i386-linux) 903 echo "${UNAME_MACHINE}- pc-linux-gnuaout"955 echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" 904 956 exit 0 ;; 905 957 coff-i386) 906 echo "${UNAME_MACHINE}- pc-linux-gnucoff"958 echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" 907 959 exit 0 ;; 908 960 "") 909 # Either a pre-BFD a.out linker (linux -gnuoldld) or961 # Either a pre-BFD a.out linker (linuxoldld) or 910 962 # one that does not give us useful --help. 911 echo "${UNAME_MACHINE}- pc-linux-gnuoldld"963 echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld" 912 964 exit 0 ;; 913 965 esac … … 933 985 #endif 934 986 #endif 987 #ifdef __dietlibc__ 988 LIBC=dietlibc 989 #endif 935 990 EOF 936 991 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 937 test x"${LIBC}" != x && echo "${UNAME_MACHINE}- pc-linux-${LIBC}"&& exit 0992 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0 938 993 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 939 994 ;; … … 962 1017 i*86:atheos:*:*) 963 1018 echo ${UNAME_MACHINE}-unknown-atheos 1019 exit 0 ;; 1020 i*86:syllable:*:*) 1021 echo ${UNAME_MACHINE}-pc-syllable 964 1022 exit 0 ;; 965 1023 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) … … 1032 1090 echo m68k-diab-dnix 1033 1091 exit 0 ;; 1034 M68*:*:R3V[567 ]*:*)1092 M68*:*:R3V[5678]*:*) 1035 1093 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1036 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 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0)1094 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 | S7501*:*:4.0:3.0) 1037 1095 OS_REL='' 1038 1096 test -r /etc/.relid \ … … 1132 1190 exit 0 ;; 1133 1191 *:Darwin:*:*) 1134 case `uname -p` in 1192 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1193 case $UNAME_PROCESSOR in 1135 1194 *86) UNAME_PROCESSOR=i686 ;; 1136 powerpc) UNAME_PROCESSOR=powerpc ;;1195 unknown) UNAME_PROCESSOR=powerpc ;; 1137 1196 esac 1138 1197 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} … … 1149 1208 echo i386-pc-qnx 1150 1209 exit 0 ;; 1151 NSR- [DGKLNPTVW]:NONSTOP_KERNEL:*:*)1210 NSR-?:NONSTOP_KERNEL:*:*) 1152 1211 echo nsr-tandem-nsk${UNAME_RELEASE} 1153 1212 exit 0 ;; … … 1190 1249 echo pdp10-unknown-its 1191 1250 exit 0 ;; 1251 SEI:*:*:SEIUX) 1252 echo mips-sei-seiux${UNAME_RELEASE} 1253 exit 0 ;; 1254 *:DragonFly:*:*) 1255 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1256 exit 0 ;; 1257 *:*VMS:*:*) 1258 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1259 case "${UNAME_MACHINE}" in 1260 A*) echo alpha-dec-vms && exit 0 ;; 1261 I*) echo ia64-dec-vms && exit 0 ;; 1262 V*) echo vax-dec-vms && exit 0 ;; 1263 esac 1192 1264 esac 1193 1265
Note:
See TracChangeset
for help on using the changeset viewer.
