scripts: update config.{sub,guess}
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Nov 22 11:36:41 2009 +0100 (2009-11-22)
changeset 16520803f1cf3f72
parent 1643 19205498184e
child 1653 496eeb7effad
scripts: update config.{sub,guess}
scripts/config.guess
scripts/config.sub
     1.1 --- a/scripts/config.guess	Tue Nov 17 10:01:22 2009 -0800
     1.2 +++ b/scripts/config.guess	Sun Nov 22 11:36:41 2009 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
     1.5  #   Free Software Foundation, Inc.
     1.6  
     1.7 -timestamp='2009-09-18'
     1.8 +timestamp='2009-11-19'
     1.9  
    1.10  # This file is free software; you can redistribute it and/or modify it
    1.11  # under the terms of the GNU General Public License as published by
    1.12 @@ -807,12 +807,12 @@
    1.13      i*:PW*:*)
    1.14  	echo ${UNAME_MACHINE}-pc-pw32
    1.15  	exit ;;
    1.16 -    *:Interix*:[3456]*)
    1.17 +    *:Interix*:*)
    1.18      	case ${UNAME_MACHINE} in
    1.19  	    x86)
    1.20  		echo i586-pc-interix${UNAME_RELEASE}
    1.21  		exit ;;
    1.22 -	    EM64T | authenticamd | genuineintel)
    1.23 +	    authenticamd | genuineintel | EM64T)
    1.24  		echo x86_64-unknown-interix${UNAME_RELEASE}
    1.25  		exit ;;
    1.26  	    IA64)
    1.27 @@ -891,7 +891,15 @@
    1.28      	echo frv-unknown-linux-gnu
    1.29  	exit ;;
    1.30      i*86:Linux:*:*)
    1.31 -	echo ${UNAME_MACHINE}-pc-linux-gnu
    1.32 +	LIBC=gnu
    1.33 +	eval $set_cc_for_build
    1.34 +	sed 's/^	//' << EOF >$dummy.c
    1.35 +	#ifdef __dietlibc__
    1.36 +	LIBC=dietlibc
    1.37 +	#endif
    1.38 +EOF
    1.39 +	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
    1.40 +	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
    1.41  	exit ;;
    1.42      ia64:Linux:*:*)
    1.43  	echo ${UNAME_MACHINE}-unknown-linux-gnu
    1.44 @@ -918,11 +926,7 @@
    1.45  	#endif
    1.46  	#endif
    1.47  EOF
    1.48 -	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
    1.49 -	    /^CPU/{
    1.50 -		s: ::g
    1.51 -		p
    1.52 -	    }'`"
    1.53 +	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
    1.54  	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    1.55  	;;
    1.56      or32:Linux:*:*)
     2.1 --- a/scripts/config.sub	Tue Nov 17 10:01:22 2009 -0800
     2.2 +++ b/scripts/config.sub	Sun Nov 22 11:36:41 2009 +0100
     2.3 @@ -4,7 +4,7 @@
     2.4  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
     2.5  #   Free Software Foundation, Inc.
     2.6  
     2.7 -timestamp='2009-10-07'
     2.8 +timestamp='2009-11-07'
     2.9  
    2.10  # This file is (in principle) common to ALL GNU software.
    2.11  # The presence of a machine in this file suggests that SOME GNU software
    2.12 @@ -295,6 +295,7 @@
    2.13  	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
    2.14  	| spu | strongarm \
    2.15  	| tahoe | thumb | tic4x | tic80 | tron \
    2.16 +	| ubicom32 \
    2.17  	| v850 | v850e \
    2.18  	| we32k \
    2.19  	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
    2.20 @@ -381,6 +382,7 @@
    2.21  	| tahoe-* | thumb-* \
    2.22  	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
    2.23  	| tron-* \
    2.24 +	| ubicom32-* \
    2.25  	| v850-* | v850e-* | vax-* \
    2.26  	| we32k-* \
    2.27  	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \