build-scripts/config.guess
changeset 2294 386ebf50dd91
parent 1361 19418e4422cb
child 3086 0102ed19c21a
child 4282 4909c960832e
     1.1 --- a/build-scripts/config.guess	Tue Jan 01 15:26:11 2008 +0000
     1.2 +++ b/build-scripts/config.guess	Thu Jan 03 06:07:30 2008 +0000
     1.3 @@ -1,9 +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 Free Software Foundation, Inc.
     1.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     1.9 +#   Inc.
    1.10  
    1.11 -timestamp='2006-01-02'
    1.12 +timestamp='2007-12-12'
    1.13  
    1.14  # This file is free software; you can redistribute it and/or modify it
    1.15  # under the terms of the GNU General Public License as published by
    1.16 @@ -106,7 +107,7 @@
    1.17  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
    1.18  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    1.19  : ${TMPDIR=/tmp} ;
    1.20 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    1.21 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    1.22   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    1.23   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    1.24   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    1.25 @@ -160,6 +161,7 @@
    1.26  	    arm*) machine=arm-unknown ;;
    1.27  	    sh3el) machine=shl-unknown ;;
    1.28  	    sh3eb) machine=sh-unknown ;;
    1.29 +	    sh5el) machine=sh5le-unknown ;;
    1.30  	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    1.31  	esac
    1.32  	# The Operating System including object format, if it has switched
    1.33 @@ -210,7 +212,7 @@
    1.34  	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
    1.35  	exit ;;
    1.36      macppc:MirBSD:*:*)
    1.37 -	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    1.38 +	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
    1.39  	exit ;;
    1.40      *:MirBSD:*:*)
    1.41  	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    1.42 @@ -328,7 +330,7 @@
    1.43      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    1.44  	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    1.45  	exit ;;
    1.46 -    i86pc:SunOS:5.*:*)
    1.47 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    1.48  	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    1.49  	exit ;;
    1.50      sun4*:SunOS:6*:*)
    1.51 @@ -770,6 +772,8 @@
    1.52  	case ${UNAME_MACHINE} in
    1.53  	    pc98)
    1.54  		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    1.55 +	    amd64)
    1.56 +		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    1.57  	    *)
    1.58  		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    1.59  	esac
    1.60 @@ -777,7 +781,7 @@
    1.61      i*:CYGWIN*:*)
    1.62  	echo ${UNAME_MACHINE}-pc-cygwin
    1.63  	exit ;;
    1.64 -    i*:MINGW*:*)
    1.65 +    *:MINGW*:*)
    1.66  	echo ${UNAME_MACHINE}-pc-mingw32
    1.67  	exit ;;
    1.68      i*:windows32*:*)
    1.69 @@ -787,9 +791,18 @@
    1.70      i*:PW*:*)
    1.71  	echo ${UNAME_MACHINE}-pc-pw32
    1.72  	exit ;;
    1.73 -    x86:Interix*:[345]*)
    1.74 -	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    1.75 -	exit ;;
    1.76 +    *:Interix*:[3456]*)
    1.77 +    	case ${UNAME_MACHINE} in
    1.78 +	    x86)
    1.79 +		echo i586-pc-interix${UNAME_RELEASE}
    1.80 +		exit ;;
    1.81 +	    EM64T | authenticamd)
    1.82 +		echo x86_64-unknown-interix${UNAME_RELEASE}
    1.83 +		exit ;;
    1.84 +	    IA64)
    1.85 +		echo ia64-unknown-interix${UNAME_RELEASE}
    1.86 +		exit ;;
    1.87 +	esac ;;
    1.88      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    1.89  	echo i${UNAME_MACHINE}-pc-mks
    1.90  	exit ;;
    1.91 @@ -823,6 +836,16 @@
    1.92  	echo ${UNAME_MACHINE}-pc-minix
    1.93  	exit ;;
    1.94      arm*:Linux:*:*)
    1.95 +	eval $set_cc_for_build
    1.96 +	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
    1.97 +	    | grep -q __ARM_EABI__
    1.98 +	then
    1.99 +	    echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.100 +	else
   1.101 +	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
   1.102 +	fi
   1.103 +	exit ;;
   1.104 +    avr32*:Linux:*:*)
   1.105  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.106  	exit ;;
   1.107      cris:Linux:*:*)
   1.108 @@ -859,7 +882,11 @@
   1.109  	#endif
   1.110  	#endif
   1.111  EOF
   1.112 -	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
   1.113 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   1.114 +	    /^CPU/{
   1.115 +		s: ::g
   1.116 +		p
   1.117 +	    }'`"
   1.118  	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   1.119  	;;
   1.120      mips64:Linux:*:*)
   1.121 @@ -878,7 +905,11 @@
   1.122  	#endif
   1.123  	#endif
   1.124  EOF
   1.125 -	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
   1.126 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   1.127 +	    /^CPU/{
   1.128 +		s: ::g
   1.129 +		p
   1.130 +	    }'`"
   1.131  	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   1.132  	;;
   1.133      or32:Linux:*:*)
   1.134 @@ -933,6 +964,9 @@
   1.135      x86_64:Linux:*:*)
   1.136  	echo x86_64-unknown-linux-gnu
   1.137  	exit ;;
   1.138 +    xtensa*:Linux:*:*)
   1.139 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.140 +	exit ;;
   1.141      i*86:Linux:*:*)
   1.142  	# The BFD linker knows what the default object file format is, so
   1.143  	# first see if it will tell us. cd to the root directory to prevent
   1.144 @@ -975,7 +1009,7 @@
   1.145  	LIBC=gnulibc1
   1.146  	# endif
   1.147  	#else
   1.148 -	#if defined(__INTEL_COMPILER) || defined(__PGI)
   1.149 +	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
   1.150  	LIBC=gnu
   1.151  	#else
   1.152  	LIBC=gnuaout
   1.153 @@ -985,7 +1019,11 @@
   1.154  	LIBC=dietlibc
   1.155  	#endif
   1.156  EOF
   1.157 -	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
   1.158 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   1.159 +	    /^LIBC/{
   1.160 +		s: ::g
   1.161 +		p
   1.162 +	    }'`"
   1.163  	test x"${LIBC}" != x && {
   1.164  		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
   1.165  		exit
   1.166 @@ -1187,6 +1225,15 @@
   1.167      SX-6:SUPER-UX:*:*)
   1.168  	echo sx6-nec-superux${UNAME_RELEASE}
   1.169  	exit ;;
   1.170 +    SX-7:SUPER-UX:*:*)
   1.171 +	echo sx7-nec-superux${UNAME_RELEASE}
   1.172 +	exit ;;
   1.173 +    SX-8:SUPER-UX:*:*)
   1.174 +	echo sx8-nec-superux${UNAME_RELEASE}
   1.175 +	exit ;;
   1.176 +    SX-8R:SUPER-UX:*:*)
   1.177 +	echo sx8r-nec-superux${UNAME_RELEASE}
   1.178 +	exit ;;
   1.179      Power*:Rhapsody:*:*)
   1.180  	echo powerpc-apple-rhapsody${UNAME_RELEASE}
   1.181  	exit ;;