filename | config.guess |
changeset | 1199:62d0a21fac1c |
prev | 525:eec1fd69a42c |
author | nkeynes |
date | Mon Mar 05 11:41:03 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Small cleanups: Refactor the post-windowing setup into gl_init_driver() in video_gl.c Move gl_sl.c into src/drivers and tidy up a bit. Fix OS X compiling plugins with -mdynamic-no-pic |
file | annotate | diff | log | raw |
1.1 --- a/config.guess Sat Nov 17 01:30:01 2007 +00001.2 +++ b/config.guess Mon Mar 05 11:41:03 2012 +10001.3 @@ -1,10 +1,10 @@1.4 #! /bin/sh1.5 # Attempt to guess a canonical system name.1.6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,1.7 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,1.8 -# Inc.1.9 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,1.10 +# 2011 Free Software Foundation, Inc.1.12 -timestamp='2006-07-02'1.13 +timestamp='2011-06-03'1.15 # This file is free software; you can redistribute it and/or modify it1.16 # under the terms of the GNU General Public License as published by1.17 @@ -27,16 +27,16 @@1.18 # the same distribution terms that you use for the rest of that program.1.21 -# Originally written by Per Bothner <per@bothner.com>.1.22 -# Please send patches to <config-patches@gnu.org>. Submit a context1.23 -# diff and a properly formatted ChangeLog entry.1.24 +# Originally written by Per Bothner. Please send patches (context1.25 +# diff format) to <config-patches@gnu.org> and include a ChangeLog1.26 +# entry.1.27 #1.28 # This script attempts to guess a canonical system name similar to1.29 # config.sub. If it succeeds, it prints the system name on stdout, and1.30 # exits with 0. Otherwise, it exits with 1.1.31 #1.32 -# The plan is that this can be called by configure scripts if you1.33 -# don't specify an explicit build system type.1.34 +# You can get the latest version of this script from:1.35 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD1.37 me=`echo "$0" | sed -e 's,.*/,,'`1.39 @@ -56,8 +56,9 @@1.40 GNU config.guess ($timestamp)1.42 Originally written by Per Bothner.1.43 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 20051.44 -Free Software Foundation, Inc.1.45 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,1.46 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free1.47 +Software Foundation, Inc.1.49 This is free software; see the source for copying conditions. There is NO1.50 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."1.51 @@ -161,6 +162,7 @@1.52 arm*) machine=arm-unknown ;;1.53 sh3el) machine=shl-unknown ;;1.54 sh3eb) machine=sh-unknown ;;1.55 + sh5el) machine=sh5le-unknown ;;1.56 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;1.57 esac1.58 # The Operating System including object format, if it has switched1.59 @@ -169,7 +171,7 @@1.60 arm*|i386|m68k|ns32k|sh3*|sparc|vax)1.61 eval $set_cc_for_build1.62 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \1.63 - | grep __ELF__ >/dev/null1.64 + | grep -q __ELF__1.65 then1.66 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).1.67 # Return netbsd for either. FIX?1.68 @@ -179,7 +181,7 @@1.69 fi1.70 ;;1.71 *)1.72 - os=netbsd1.73 + os=netbsd1.74 ;;1.75 esac1.76 # The OS release1.77 @@ -222,7 +224,7 @@1.78 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`1.79 ;;1.80 *5.*)1.81 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`1.82 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`1.83 ;;1.84 esac1.85 # According to Compaq, /usr/sbin/psrinfo has been available on1.86 @@ -268,7 +270,10 @@1.87 # A Xn.n version is an unreleased experimental baselevel.1.88 # 1.2 uses "1.2" for uname -r.1.89 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`1.90 - exit ;;1.91 + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.1.92 + exitcode=$?1.93 + trap '' 01.94 + exit $exitcode ;;1.95 Alpha\ *:Windows_NT*:*)1.96 # How do we know it's Interix rather than the generic POSIX subsystem?1.97 # Should we change UNAME_MACHINE based on the output of uname instead1.98 @@ -294,7 +299,7 @@1.99 echo s390-ibm-zvmoe1.100 exit ;;1.101 *:OS400:*:*)1.102 - echo powerpc-ibm-os4001.103 + echo powerpc-ibm-os4001.104 exit ;;1.105 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)1.106 echo arm-acorn-riscix${UNAME_RELEASE}1.107 @@ -323,14 +328,33 @@1.108 case `/usr/bin/uname -p` in1.109 sparc) echo sparc-icl-nx7; exit ;;1.110 esac ;;1.111 + s390x:SunOS:*:*)1.112 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.113 + exit ;;1.114 sun4H:SunOS:5.*:*)1.115 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.116 exit ;;1.117 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)1.118 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.119 exit ;;1.120 - i86pc:SunOS:5.*:*)1.121 - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.122 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)1.123 + echo i386-pc-auroraux${UNAME_RELEASE}1.124 + exit ;;1.125 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)1.126 + eval $set_cc_for_build1.127 + SUN_ARCH="i386"1.128 + # If there is a compiler, see if it is configured for 64-bit objects.1.129 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.1.130 + # This test works for both compilers.1.131 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then1.132 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \1.133 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \1.134 + grep IS_64BIT_ARCH >/dev/null1.135 + then1.136 + SUN_ARCH="x86_64"1.137 + fi1.138 + fi1.139 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.140 exit ;;1.141 sun4*:SunOS:6*:*)1.142 # According to config.sub, this is the proper way to canonicalize1.143 @@ -374,23 +398,23 @@1.144 # MiNT. But MiNT is downward compatible to TOS, so this should1.145 # be no problem.1.146 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)1.147 - echo m68k-atari-mint${UNAME_RELEASE}1.148 + echo m68k-atari-mint${UNAME_RELEASE}1.149 exit ;;1.150 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)1.151 echo m68k-atari-mint${UNAME_RELEASE}1.152 - exit ;;1.153 + exit ;;1.154 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)1.155 - echo m68k-atari-mint${UNAME_RELEASE}1.156 + echo m68k-atari-mint${UNAME_RELEASE}1.157 exit ;;1.158 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)1.159 - echo m68k-milan-mint${UNAME_RELEASE}1.160 - exit ;;1.161 + echo m68k-milan-mint${UNAME_RELEASE}1.162 + exit ;;1.163 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)1.164 - echo m68k-hades-mint${UNAME_RELEASE}1.165 - exit ;;1.166 + echo m68k-hades-mint${UNAME_RELEASE}1.167 + exit ;;1.168 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)1.169 - echo m68k-unknown-mint${UNAME_RELEASE}1.170 - exit ;;1.171 + echo m68k-unknown-mint${UNAME_RELEASE}1.172 + exit ;;1.173 m68k:machten:*:*)1.174 echo m68k-apple-machten${UNAME_RELEASE}1.175 exit ;;1.176 @@ -460,8 +484,8 @@1.177 echo m88k-motorola-sysv31.178 exit ;;1.179 AViiON:dgux:*:*)1.180 - # DG/UX returns AViiON for all architectures1.181 - UNAME_PROCESSOR=`/usr/bin/uname -p`1.182 + # DG/UX returns AViiON for all architectures1.183 + UNAME_PROCESSOR=`/usr/bin/uname -p`1.184 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]1.185 then1.186 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \1.187 @@ -474,7 +498,7 @@1.188 else1.189 echo i586-dg-dgux${UNAME_RELEASE}1.190 fi1.191 - exit ;;1.192 + exit ;;1.193 M88*:DolphinOS:*:*) # DolphinOS (SVR3)1.194 echo m88k-dolphin-sysv31.195 exit ;;1.196 @@ -531,7 +555,7 @@1.197 echo rs6000-ibm-aix3.21.198 fi1.199 exit ;;1.200 - *:AIX:*:[45])1.201 + *:AIX:*:[4567])1.202 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`1.203 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then1.204 IBM_ARCH=rs60001.205 @@ -574,52 +598,52 @@1.206 9000/[678][0-9][0-9])1.207 if [ -x /usr/bin/getconf ]; then1.208 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`1.209 - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`1.210 - case "${sc_cpu_version}" in1.211 - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_01.212 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_11.213 - 532) # CPU_PA_RISC2_01.214 - case "${sc_kernel_bits}" in1.215 - 32) HP_ARCH="hppa2.0n" ;;1.216 - 64) HP_ARCH="hppa2.0w" ;;1.217 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`1.218 + case "${sc_cpu_version}" in1.219 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_01.220 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_11.221 + 532) # CPU_PA_RISC2_01.222 + case "${sc_kernel_bits}" in1.223 + 32) HP_ARCH="hppa2.0n" ;;1.224 + 64) HP_ARCH="hppa2.0w" ;;1.225 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.201.226 - esac ;;1.227 - esac1.228 + esac ;;1.229 + esac1.230 fi1.231 if [ "${HP_ARCH}" = "" ]; then1.232 eval $set_cc_for_build1.233 - sed 's/^ //' << EOF >$dummy.c1.234 + sed 's/^ //' << EOF >$dummy.c1.236 - #define _HPUX_SOURCE1.237 - #include <stdlib.h>1.238 - #include <unistd.h>1.239 + #define _HPUX_SOURCE1.240 + #include <stdlib.h>1.241 + #include <unistd.h>1.243 - int main ()1.244 - {1.245 - #if defined(_SC_KERNEL_BITS)1.246 - long bits = sysconf(_SC_KERNEL_BITS);1.247 - #endif1.248 - long cpu = sysconf (_SC_CPU_VERSION);1.249 + int main ()1.250 + {1.251 + #if defined(_SC_KERNEL_BITS)1.252 + long bits = sysconf(_SC_KERNEL_BITS);1.253 + #endif1.254 + long cpu = sysconf (_SC_CPU_VERSION);1.256 - switch (cpu)1.257 - {1.258 - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;1.259 - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;1.260 - case CPU_PA_RISC2_0:1.261 - #if defined(_SC_KERNEL_BITS)1.262 - switch (bits)1.263 - {1.264 - case 64: puts ("hppa2.0w"); break;1.265 - case 32: puts ("hppa2.0n"); break;1.266 - default: puts ("hppa2.0"); break;1.267 - } break;1.268 - #else /* !defined(_SC_KERNEL_BITS) */1.269 - puts ("hppa2.0"); break;1.270 - #endif1.271 - default: puts ("hppa1.0"); break;1.272 - }1.273 - exit (0);1.274 - }1.275 + switch (cpu)1.276 + {1.277 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;1.278 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;1.279 + case CPU_PA_RISC2_0:1.280 + #if defined(_SC_KERNEL_BITS)1.281 + switch (bits)1.282 + {1.283 + case 64: puts ("hppa2.0w"); break;1.284 + case 32: puts ("hppa2.0n"); break;1.285 + default: puts ("hppa2.0"); break;1.286 + } break;1.287 + #else /* !defined(_SC_KERNEL_BITS) */1.288 + puts ("hppa2.0"); break;1.289 + #endif1.290 + default: puts ("hppa1.0"); break;1.291 + }1.292 + exit (0);1.293 + }1.294 EOF1.295 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`1.296 test -z "$HP_ARCH" && HP_ARCH=hppa1.297 @@ -639,7 +663,7 @@1.298 # => hppa64-hp-hpux11.231.300 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |1.301 - grep __LP64__ >/dev/null1.302 + grep -q __LP64__1.303 then1.304 HP_ARCH="hppa2.0w"1.305 else1.306 @@ -710,22 +734,22 @@1.307 exit ;;1.308 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)1.309 echo c1-convex-bsd1.310 - exit ;;1.311 + exit ;;1.312 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)1.313 if getsysinfo -f scalar_acc1.314 then echo c32-convex-bsd1.315 else echo c2-convex-bsd1.316 fi1.317 - exit ;;1.318 + exit ;;1.319 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)1.320 echo c34-convex-bsd1.321 - exit ;;1.322 + exit ;;1.323 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)1.324 echo c38-convex-bsd1.325 - exit ;;1.326 + exit ;;1.327 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)1.328 echo c4-convex-bsd1.329 - exit ;;1.330 + exit ;;1.331 CRAY*Y-MP:*:*:*)1.332 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'1.333 exit ;;1.334 @@ -749,14 +773,14 @@1.335 exit ;;1.336 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)1.337 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`1.338 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`1.339 - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`1.340 - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"1.341 - exit ;;1.342 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`1.343 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`1.344 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"1.345 + exit ;;1.346 5000:UNIX_System_V:4.*:*)1.347 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`1.348 - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`1.349 - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"1.350 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`1.351 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`1.352 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"1.353 exit ;;1.354 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)1.355 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}1.356 @@ -780,25 +804,34 @@1.357 i*:CYGWIN*:*)1.358 echo ${UNAME_MACHINE}-pc-cygwin1.359 exit ;;1.360 - i*:MINGW*:*)1.361 + *:MINGW*:*)1.362 echo ${UNAME_MACHINE}-pc-mingw321.363 exit ;;1.364 i*:windows32*:*)1.365 - # uname -m includes "-pc" on this system.1.366 - echo ${UNAME_MACHINE}-mingw321.367 + # uname -m includes "-pc" on this system.1.368 + echo ${UNAME_MACHINE}-mingw321.369 exit ;;1.370 i*:PW*:*)1.371 echo ${UNAME_MACHINE}-pc-pw321.372 exit ;;1.373 - x86:Interix*:[3456]*)1.374 - echo i586-pc-interix${UNAME_RELEASE}1.375 - exit ;;1.376 - EM64T:Interix*:[3456]*)1.377 - echo x86_64-unknown-interix${UNAME_RELEASE}1.378 - exit ;;1.379 + *:Interix*:*)1.380 + case ${UNAME_MACHINE} in1.381 + x86)1.382 + echo i586-pc-interix${UNAME_RELEASE}1.383 + exit ;;1.384 + authenticamd | genuineintel | EM64T)1.385 + echo x86_64-unknown-interix${UNAME_RELEASE}1.386 + exit ;;1.387 + IA64)1.388 + echo ia64-unknown-interix${UNAME_RELEASE}1.389 + exit ;;1.390 + esac ;;1.391 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)1.392 echo i${UNAME_MACHINE}-pc-mks1.393 exit ;;1.394 + 8664:Windows_NT:*)1.395 + echo x86_64-pc-mks1.396 + exit ;;1.397 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)1.398 # How do we know it's Interix rather than the generic POSIX subsystem?1.399 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we1.400 @@ -828,8 +861,35 @@1.401 i*86:Minix:*:*)1.402 echo ${UNAME_MACHINE}-pc-minix1.403 exit ;;1.404 + alpha:Linux:*:*)1.405 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in1.406 + EV5) UNAME_MACHINE=alphaev5 ;;1.407 + EV56) UNAME_MACHINE=alphaev56 ;;1.408 + PCA56) UNAME_MACHINE=alphapca56 ;;1.409 + PCA57) UNAME_MACHINE=alphapca56 ;;1.410 + EV6) UNAME_MACHINE=alphaev6 ;;1.411 + EV67) UNAME_MACHINE=alphaev67 ;;1.412 + EV68*) UNAME_MACHINE=alphaev68 ;;1.413 + esac1.414 + objdump --private-headers /bin/sh | grep -q ld.so.11.415 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi1.416 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}1.417 + exit ;;1.418 arm*:Linux:*:*)1.419 - echo ${UNAME_MACHINE}-unknown-linux-gnu1.420 + eval $set_cc_for_build1.421 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \1.422 + | grep -q __ARM_EABI__1.423 + then1.424 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.425 + else1.426 + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \1.427 + | grep -q __ARM_PCS_VFP1.428 + then1.429 + echo ${UNAME_MACHINE}-unknown-linux-gnueabi1.430 + else1.431 + echo ${UNAME_MACHINE}-unknown-linux-gnueabihf1.432 + fi1.433 + fi1.434 exit ;;1.435 avr32*:Linux:*:*)1.436 echo ${UNAME_MACHINE}-unknown-linux-gnu1.437 @@ -841,7 +901,18 @@1.438 echo crisv32-axis-linux-gnu1.439 exit ;;1.440 frv:Linux:*:*)1.441 - echo frv-unknown-linux-gnu1.442 + echo frv-unknown-linux-gnu1.443 + exit ;;1.444 + i*86:Linux:*:*)1.445 + LIBC=gnu1.446 + eval $set_cc_for_build1.447 + sed 's/^ //' << EOF >$dummy.c1.448 + #ifdef __dietlibc__1.449 + LIBC=dietlibc1.450 + #endif1.451 +EOF1.452 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`1.453 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"1.454 exit ;;1.455 ia64:Linux:*:*)1.456 echo ${UNAME_MACHINE}-unknown-linux-gnu1.457 @@ -852,74 +923,33 @@1.458 m68*:Linux:*:*)1.459 echo ${UNAME_MACHINE}-unknown-linux-gnu1.460 exit ;;1.461 - mips:Linux:*:*)1.462 + mips:Linux:*:* | mips64:Linux:*:*)1.463 eval $set_cc_for_build1.464 sed 's/^ //' << EOF >$dummy.c1.465 #undef CPU1.466 - #undef mips1.467 - #undef mipsel1.468 + #undef ${UNAME_MACHINE}1.469 + #undef ${UNAME_MACHINE}el1.470 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)1.471 - CPU=mipsel1.472 + CPU=${UNAME_MACHINE}el1.473 #else1.474 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)1.475 - CPU=mips1.476 + CPU=${UNAME_MACHINE}1.477 #else1.478 CPU=1.479 #endif1.480 #endif1.481 EOF1.482 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '1.483 - /^CPU/{1.484 - s: ::g1.485 - p1.486 - }'`"1.487 - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }1.488 - ;;1.489 - mips64:Linux:*:*)1.490 - eval $set_cc_for_build1.491 - sed 's/^ //' << EOF >$dummy.c1.492 - #undef CPU1.493 - #undef mips641.494 - #undef mips64el1.495 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)1.496 - CPU=mips64el1.497 - #else1.498 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)1.499 - CPU=mips641.500 - #else1.501 - CPU=1.502 - #endif1.503 - #endif1.504 -EOF1.505 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '1.506 - /^CPU/{1.507 - s: ::g1.508 - p1.509 - }'`"1.510 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`1.511 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }1.512 ;;1.513 or32:Linux:*:*)1.514 echo or32-unknown-linux-gnu1.515 exit ;;1.516 - ppc:Linux:*:*)1.517 - echo powerpc-unknown-linux-gnu1.518 + padre:Linux:*:*)1.519 + echo sparc-unknown-linux-gnu1.520 exit ;;1.521 - ppc64:Linux:*:*)1.522 - echo powerpc64-unknown-linux-gnu1.523 - exit ;;1.524 - alpha:Linux:*:*)1.525 - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in1.526 - EV5) UNAME_MACHINE=alphaev5 ;;1.527 - EV56) UNAME_MACHINE=alphaev56 ;;1.528 - PCA56) UNAME_MACHINE=alphapca56 ;;1.529 - PCA57) UNAME_MACHINE=alphapca56 ;;1.530 - EV6) UNAME_MACHINE=alphaev6 ;;1.531 - EV67) UNAME_MACHINE=alphaev67 ;;1.532 - EV68*) UNAME_MACHINE=alphaev68 ;;1.533 - esac1.534 - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null1.535 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi1.536 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}1.537 + parisc64:Linux:*:* | hppa64:Linux:*:*)1.538 + echo hppa64-unknown-linux-gnu1.539 exit ;;1.540 parisc:Linux:*:* | hppa:Linux:*:*)1.541 # Look for CPU level1.542 @@ -929,14 +959,17 @@1.543 *) echo hppa-unknown-linux-gnu ;;1.544 esac1.545 exit ;;1.546 - parisc64:Linux:*:* | hppa64:Linux:*:*)1.547 - echo hppa64-unknown-linux-gnu1.548 + ppc64:Linux:*:*)1.549 + echo powerpc64-unknown-linux-gnu1.550 + exit ;;1.551 + ppc:Linux:*:*)1.552 + echo powerpc-unknown-linux-gnu1.553 exit ;;1.554 s390:Linux:*:* | s390x:Linux:*:*)1.555 echo ${UNAME_MACHINE}-ibm-linux1.556 exit ;;1.557 sh64*:Linux:*:*)1.558 - echo ${UNAME_MACHINE}-unknown-linux-gnu1.559 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.560 exit ;;1.561 sh*:Linux:*:*)1.562 echo ${UNAME_MACHINE}-unknown-linux-gnu1.563 @@ -944,75 +977,18 @@1.564 sparc:Linux:*:* | sparc64:Linux:*:*)1.565 echo ${UNAME_MACHINE}-unknown-linux-gnu1.566 exit ;;1.567 + tile*:Linux:*:*)1.568 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.569 + exit ;;1.570 vax:Linux:*:*)1.571 echo ${UNAME_MACHINE}-dec-linux-gnu1.572 exit ;;1.573 x86_64:Linux:*:*)1.574 echo x86_64-unknown-linux-gnu1.575 exit ;;1.576 - i*86:Linux:*:*)1.577 - # The BFD linker knows what the default object file format is, so1.578 - # first see if it will tell us. cd to the root directory to prevent1.579 - # problems with other programs or directories called `ld' in the path.1.580 - # Set LC_ALL=C to ensure ld outputs messages in English.1.581 - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \1.582 - | sed -ne '/supported targets:/!d1.583 - s/[ ][ ]*/ /g1.584 - s/.*supported targets: *//1.585 - s/ .*//1.586 - p'`1.587 - case "$ld_supported_targets" in1.588 - elf32-i386)1.589 - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"1.590 - ;;1.591 - a.out-i386-linux)1.592 - echo "${UNAME_MACHINE}-pc-linux-gnuaout"1.593 - exit ;;1.594 - coff-i386)1.595 - echo "${UNAME_MACHINE}-pc-linux-gnucoff"1.596 - exit ;;1.597 - "")1.598 - # Either a pre-BFD a.out linker (linux-gnuoldld) or1.599 - # one that does not give us useful --help.1.600 - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"1.601 - exit ;;1.602 - esac1.603 - # Determine whether the default compiler is a.out or elf1.604 - eval $set_cc_for_build1.605 - sed 's/^ //' << EOF >$dummy.c1.606 - #include <features.h>1.607 - #ifdef __ELF__1.608 - # ifdef __GLIBC__1.609 - # if __GLIBC__ >= 21.610 - LIBC=gnu1.611 - # else1.612 - LIBC=gnulibc11.613 - # endif1.614 - # else1.615 - LIBC=gnulibc11.616 - # endif1.617 - #else1.618 - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)1.619 - LIBC=gnu1.620 - #else1.621 - LIBC=gnuaout1.622 - #endif1.623 - #endif1.624 - #ifdef __dietlibc__1.625 - LIBC=dietlibc1.626 - #endif1.627 -EOF1.628 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '1.629 - /^LIBC/{1.630 - s: ::g1.631 - p1.632 - }'`"1.633 - test x"${LIBC}" != x && {1.634 - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"1.635 - exit1.636 - }1.637 - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }1.638 - ;;1.639 + xtensa*:Linux:*:*)1.640 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.641 + exit ;;1.642 i*86:DYNIX/ptx:4*:*)1.643 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.1.644 # earlier versions are messed up and put the nodename in both1.645 @@ -1020,11 +996,11 @@1.646 echo i386-sequent-sysv41.647 exit ;;1.648 i*86:UNIX_SV:4.2MP:2.*)1.649 - # Unixware is an offshoot of SVR4, but it has its own version1.650 - # number series starting with 2...1.651 - # I am not positive that other SVR4 systems won't match this,1.652 + # Unixware is an offshoot of SVR4, but it has its own version1.653 + # number series starting with 2...1.654 + # I am not positive that other SVR4 systems won't match this,1.655 # I just have to hope. -- rms.1.656 - # Use sysv4.2uw... so that sysv4* matches it.1.657 + # Use sysv4.2uw... so that sysv4* matches it.1.658 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}1.659 exit ;;1.660 i*86:OS/2:*:*)1.661 @@ -1041,7 +1017,7 @@1.662 i*86:syllable:*:*)1.663 echo ${UNAME_MACHINE}-pc-syllable1.664 exit ;;1.665 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)1.666 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)1.667 echo i386-unknown-lynxos${UNAME_RELEASE}1.668 exit ;;1.669 i*86:*DOS:*:*)1.670 @@ -1056,7 +1032,7 @@1.671 fi1.672 exit ;;1.673 i*86:*:5:[678]*)1.674 - # UnixWare 7.x, OpenUNIX and OpenServer 6.1.675 + # UnixWare 7.x, OpenUNIX and OpenServer 6.1.676 case `/bin/uname -X | grep "^Machine"` in1.677 *486*) UNAME_MACHINE=i486 ;;1.678 *Pentium) UNAME_MACHINE=i586 ;;1.679 @@ -1084,10 +1060,13 @@1.680 exit ;;1.681 pc:*:*:*)1.682 # Left here for compatibility:1.683 - # uname -m prints for DJGPP always 'pc', but it prints nothing about1.684 - # the processor, so we play safe by assuming i386.1.685 - echo i386-pc-msdosdjgpp1.686 - exit ;;1.687 + # uname -m prints for DJGPP always 'pc', but it prints nothing about1.688 + # the processor, so we play safe by assuming i586.1.689 + # Note: whatever this is, it MUST be the same as what config.sub1.690 + # prints for the "djgpp" host, or else GDB configury will decide that1.691 + # this is a cross-build.1.692 + echo i586-pc-msdosdjgpp1.693 + exit ;;1.694 Intel:Mach:3*:*)1.695 echo i386-pc-mach31.696 exit ;;1.697 @@ -1122,8 +1101,18 @@1.698 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1.699 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1.700 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)1.701 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1.702 - && { echo i486-ncr-sysv4; exit; } ;;1.703 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1.704 + && { echo i486-ncr-sysv4; exit; } ;;1.705 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)1.706 + OS_REL='.3'1.707 + test -r /etc/.relid \1.708 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`1.709 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1.710 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1.711 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1.712 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }1.713 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \1.714 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1.715 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1.716 echo m68k-unknown-lynxos${UNAME_RELEASE}1.717 exit ;;1.718 @@ -1136,7 +1125,7 @@1.719 rs6000:LynxOS:2.*:*)1.720 echo rs6000-unknown-lynxos${UNAME_RELEASE}1.721 exit ;;1.722 - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)1.723 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)1.724 echo powerpc-unknown-lynxos${UNAME_RELEASE}1.725 exit ;;1.726 SM[BE]S:UNIX_SV:*:*)1.727 @@ -1156,10 +1145,10 @@1.728 echo ns32k-sni-sysv1.729 fi1.730 exit ;;1.731 - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort1.732 - # says <Richard.M.Bartel@ccMail.Census.GOV>1.733 - echo i586-unisys-sysv41.734 - exit ;;1.735 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort1.736 + # says <Richard.M.Bartel@ccMail.Census.GOV>1.737 + echo i586-unisys-sysv41.738 + exit ;;1.739 *:UNIX_System_V:4*:FTX*)1.740 # From Gerald Hewes <hewes@openmarket.com>.1.741 # How about differentiating between stratus architectures? -djm1.742 @@ -1185,11 +1174,11 @@1.743 exit ;;1.744 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)1.745 if [ -d /usr/nec ]; then1.746 - echo mips-nec-sysv${UNAME_RELEASE}1.747 + echo mips-nec-sysv${UNAME_RELEASE}1.748 else1.749 - echo mips-unknown-sysv${UNAME_RELEASE}1.750 + echo mips-unknown-sysv${UNAME_RELEASE}1.751 fi1.752 - exit ;;1.753 + exit ;;1.754 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.1.755 echo powerpc-be-beos1.756 exit ;;1.757 @@ -1199,6 +1188,9 @@1.758 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.1.759 echo i586-pc-beos1.760 exit ;;1.761 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.1.762 + echo i586-pc-haiku1.763 + exit ;;1.764 SX-4:SUPER-UX:*:*)1.765 echo sx4-nec-superux${UNAME_RELEASE}1.766 exit ;;1.767 @@ -1208,6 +1200,15 @@1.768 SX-6:SUPER-UX:*:*)1.769 echo sx6-nec-superux${UNAME_RELEASE}1.770 exit ;;1.771 + SX-7:SUPER-UX:*:*)1.772 + echo sx7-nec-superux${UNAME_RELEASE}1.773 + exit ;;1.774 + SX-8:SUPER-UX:*:*)1.775 + echo sx8-nec-superux${UNAME_RELEASE}1.776 + exit ;;1.777 + SX-8R:SUPER-UX:*:*)1.778 + echo sx8r-nec-superux${UNAME_RELEASE}1.779 + exit ;;1.780 Power*:Rhapsody:*:*)1.781 echo powerpc-apple-rhapsody${UNAME_RELEASE}1.782 exit ;;1.783 @@ -1217,6 +1218,16 @@1.784 *:Darwin:*:*)1.785 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1.786 case $UNAME_PROCESSOR in1.787 + i386)1.788 + eval $set_cc_for_build1.789 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then1.790 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \1.791 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \1.792 + grep IS_64BIT_ARCH >/dev/null1.793 + then1.794 + UNAME_PROCESSOR="x86_64"1.795 + fi1.796 + fi ;;1.797 unknown) UNAME_PROCESSOR=powerpc ;;1.798 esac1.799 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}1.800 @@ -1232,6 +1243,9 @@1.801 *:QNX:*:4*)1.802 echo i386-pc-qnx1.803 exit ;;1.804 + NEO-?:NONSTOP_KERNEL:*:*)1.805 + echo neo-tandem-nsk${UNAME_RELEASE}1.806 + exit ;;1.807 NSE-?:NONSTOP_KERNEL:*:*)1.808 echo nse-tandem-nsk${UNAME_RELEASE}1.809 exit ;;1.810 @@ -1277,13 +1291,13 @@1.811 echo pdp10-unknown-its1.812 exit ;;1.813 SEI:*:*:SEIUX)1.814 - echo mips-sei-seiux${UNAME_RELEASE}1.815 + echo mips-sei-seiux${UNAME_RELEASE}1.816 exit ;;1.817 *:DragonFly:*:*)1.818 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1.819 exit ;;1.820 *:*VMS:*:*)1.821 - UNAME_MACHINE=`(uname -p) 2>/dev/null`1.822 + UNAME_MACHINE=`(uname -p) 2>/dev/null`1.823 case "${UNAME_MACHINE}" in1.824 A*) echo alpha-dec-vms ; exit ;;1.825 I*) echo ia64-dec-vms ; exit ;;1.826 @@ -1298,6 +1312,9 @@1.827 i*86:rdos:*:*)1.828 echo ${UNAME_MACHINE}-pc-rdos1.829 exit ;;1.830 + i*86:AROS:*:*)1.831 + echo ${UNAME_MACHINE}-pc-aros1.832 + exit ;;1.833 esac1.835 #echo '(No uname command or uname output not recognized.)' 1>&21.836 @@ -1320,11 +1337,11 @@1.837 #include <sys/param.h>1.838 printf ("m68k-sony-newsos%s\n",1.839 #ifdef NEWSOS41.840 - "4"1.841 + "4"1.842 #else1.843 - ""1.844 + ""1.845 #endif1.846 - ); exit (0);1.847 + ); exit (0);1.848 #endif1.849 #endif1.851 @@ -1458,9 +1475,9 @@1.852 the operating system you are using. It is advised that you1.853 download the most up to date version of the config scripts from1.855 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess1.856 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD1.857 and1.858 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub1.859 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD1.861 If the version you run ($0) is already up to date, please1.862 send the following data and any information you think might be
.