config.guess
changeset 192 cee9f4af8db0
parent 182 be2f2fcde889
child 220 e59707061bde
     1.1 --- a/config.guess	Wed Jan 14 08:47:20 2009 +0000
     1.2 +++ b/config.guess	Wed Mar 04 09:35:32 2009 +0000
     1.3 @@ -1,10 +1,10 @@
     1.4  #! /bin/sh
     1.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
    1.10 +#   Free Software Foundation, Inc.
    1.11  
    1.12 -timestamp='2007-12-12'
    1.13 +timestamp='2009-02-03'
    1.14  
    1.15  # This file is free software; you can redistribute it and/or modify it
    1.16  # under the terms of the GNU General Public License as published by
    1.17 @@ -56,8 +56,8 @@
    1.18  GNU config.guess ($timestamp)
    1.19  
    1.20  Originally written by Per Bothner.
    1.21 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    1.22 -Free Software Foundation, Inc.
    1.23 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    1.24 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    1.25  
    1.26  This is free software; see the source for copying conditions.  There is NO
    1.27  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.28 @@ -331,7 +331,20 @@
    1.29  	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    1.30  	exit ;;
    1.31      i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    1.32 -	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    1.33 +	eval $set_cc_for_build
    1.34 +	SUN_ARCH="i386"
    1.35 +	# If there is a compiler, see if it is configured for 64-bit objects.
    1.36 +	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
    1.37 +	# This test works for both compilers.
    1.38 +	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
    1.39 +	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
    1.40 +		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
    1.41 +		grep IS_64BIT_ARCH >/dev/null
    1.42 +	    then
    1.43 +		SUN_ARCH="x86_64"
    1.44 +	    fi
    1.45 +	fi
    1.46 +	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    1.47  	exit ;;
    1.48      sun4*:SunOS:6*:*)
    1.49  	# According to config.sub, this is the proper way to canonicalize
    1.50 @@ -532,7 +545,7 @@
    1.51  		echo rs6000-ibm-aix3.2
    1.52  	fi
    1.53  	exit ;;
    1.54 -    *:AIX:*:[45])
    1.55 +    *:AIX:*:[456])
    1.56  	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    1.57  	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    1.58  		IBM_ARCH=rs6000
    1.59 @@ -796,7 +809,7 @@
    1.60  	    x86)
    1.61  		echo i586-pc-interix${UNAME_RELEASE}
    1.62  		exit ;;
    1.63 -	    EM64T | authenticamd)
    1.64 +	    EM64T | authenticamd | genuineintel)
    1.65  		echo x86_64-unknown-interix${UNAME_RELEASE}
    1.66  		exit ;;
    1.67  	    IA64)
    1.68 @@ -935,6 +948,9 @@
    1.69  	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    1.70  	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    1.71  	exit ;;
    1.72 +    padre:Linux:*:*)
    1.73 +	echo sparc-unknown-linux-gnu
    1.74 +	exit ;;
    1.75      parisc:Linux:*:* | hppa:Linux:*:*)
    1.76  	# Look for CPU level
    1.77  	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    1.78 @@ -985,9 +1001,6 @@
    1.79  	  a.out-i386-linux)
    1.80  		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    1.81  		exit ;;
    1.82 -	  coff-i386)
    1.83 -		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    1.84 -		exit ;;
    1.85  	  "")
    1.86  		# Either a pre-BFD a.out linker (linux-gnuoldld) or
    1.87  		# one that does not give us useful --help.
    1.88 @@ -1141,6 +1154,16 @@
    1.89      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    1.90          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1.91            && { echo i486-ncr-sysv4; exit; } ;;
    1.92 +    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
    1.93 +	OS_REL='.3'
    1.94 +	test -r /etc/.relid \
    1.95 +	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    1.96 +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1.97 +	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    1.98 +	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1.99 +	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
   1.100 +	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
   1.101 +	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
   1.102      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
   1.103  	echo m68k-unknown-lynxos${UNAME_RELEASE}
   1.104  	exit ;;
   1.105 @@ -1216,6 +1239,9 @@
   1.106      BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
   1.107  	echo i586-pc-beos
   1.108  	exit ;;
   1.109 +    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
   1.110 +	echo i586-pc-haiku
   1.111 +	exit ;;
   1.112      SX-4:SUPER-UX:*:*)
   1.113  	echo sx4-nec-superux${UNAME_RELEASE}
   1.114  	exit ;;
   1.115 @@ -1324,6 +1350,9 @@
   1.116      i*86:rdos:*:*)
   1.117  	echo ${UNAME_MACHINE}-pc-rdos
   1.118  	exit ;;
   1.119 +    i*86:AROS:*:*)
   1.120 +	echo ${UNAME_MACHINE}-pc-aros
   1.121 +	exit ;;
   1.122  esac
   1.123  
   1.124  #echo '(No uname command or uname output not recognized.)' 1>&2
   1.125 @@ -1484,9 +1513,9 @@
   1.126  the operating system you are using. It is advised that you
   1.127  download the most up to date version of the config scripts from
   1.128  
   1.129 -  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
   1.130 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
   1.131  and
   1.132 -  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
   1.133 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
   1.134  
   1.135  If the version you run ($0) is already up to date, please
   1.136  send the following data and any information you think might be