scripts/config.guess
changeset 2424 28092887b486
parent 2288 e5a0fe2dae5f
child 2538 b926c87d9339
     1.1 --- a/scripts/config.guess	Sun Jan 30 19:31:51 2011 +0100
     1.2 +++ b/scripts/config.guess	Sat Apr 30 23:13:12 2011 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
     1.5  #   2011 Free Software Foundation, Inc.
     1.6  
     1.7 -timestamp='2011-01-23'
     1.8 +timestamp='2011-02-02'
     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 @@ -181,7 +181,7 @@
    1.13  		fi
    1.14  		;;
    1.15  	    *)
    1.16 -	        os=netbsd
    1.17 +		os=netbsd
    1.18  		;;
    1.19  	esac
    1.20  	# The OS release
    1.21 @@ -224,7 +224,7 @@
    1.22  		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    1.23  		;;
    1.24  	*5.*)
    1.25 -	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    1.26 +		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    1.27  		;;
    1.28  	esac
    1.29  	# According to Compaq, /usr/sbin/psrinfo has been available on
    1.30 @@ -299,7 +299,7 @@
    1.31  	echo s390-ibm-zvmoe
    1.32  	exit ;;
    1.33      *:OS400:*:*)
    1.34 -        echo powerpc-ibm-os400
    1.35 +	echo powerpc-ibm-os400
    1.36  	exit ;;
    1.37      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    1.38  	echo arm-acorn-riscix${UNAME_RELEASE}
    1.39 @@ -398,23 +398,23 @@
    1.40      # MiNT.  But MiNT is downward compatible to TOS, so this should
    1.41      # be no problem.
    1.42      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    1.43 -        echo m68k-atari-mint${UNAME_RELEASE}
    1.44 +	echo m68k-atari-mint${UNAME_RELEASE}
    1.45  	exit ;;
    1.46      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    1.47  	echo m68k-atari-mint${UNAME_RELEASE}
    1.48 -        exit ;;
    1.49 +	exit ;;
    1.50      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    1.51 -        echo m68k-atari-mint${UNAME_RELEASE}
    1.52 +	echo m68k-atari-mint${UNAME_RELEASE}
    1.53  	exit ;;
    1.54      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    1.55 -        echo m68k-milan-mint${UNAME_RELEASE}
    1.56 -        exit ;;
    1.57 +	echo m68k-milan-mint${UNAME_RELEASE}
    1.58 +	exit ;;
    1.59      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    1.60 -        echo m68k-hades-mint${UNAME_RELEASE}
    1.61 -        exit ;;
    1.62 +	echo m68k-hades-mint${UNAME_RELEASE}
    1.63 +	exit ;;
    1.64      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    1.65 -        echo m68k-unknown-mint${UNAME_RELEASE}
    1.66 -        exit ;;
    1.67 +	echo m68k-unknown-mint${UNAME_RELEASE}
    1.68 +	exit ;;
    1.69      m68k:machten:*:*)
    1.70  	echo m68k-apple-machten${UNAME_RELEASE}
    1.71  	exit ;;
    1.72 @@ -484,8 +484,8 @@
    1.73  	echo m88k-motorola-sysv3
    1.74  	exit ;;
    1.75      AViiON:dgux:*:*)
    1.76 -        # DG/UX returns AViiON for all architectures
    1.77 -        UNAME_PROCESSOR=`/usr/bin/uname -p`
    1.78 +	# DG/UX returns AViiON for all architectures
    1.79 +	UNAME_PROCESSOR=`/usr/bin/uname -p`
    1.80  	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
    1.81  	then
    1.82  	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
    1.83 @@ -498,7 +498,7 @@
    1.84  	else
    1.85  	    echo i586-dg-dgux${UNAME_RELEASE}
    1.86  	fi
    1.87 - 	exit ;;
    1.88 +	exit ;;
    1.89      M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
    1.90  	echo m88k-dolphin-sysv3
    1.91  	exit ;;
    1.92 @@ -598,52 +598,52 @@
    1.93  	    9000/[678][0-9][0-9])
    1.94  		if [ -x /usr/bin/getconf ]; then
    1.95  		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
    1.96 -                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    1.97 -                    case "${sc_cpu_version}" in
    1.98 -                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
    1.99 -                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
   1.100 -                      532)                      # CPU_PA_RISC2_0
   1.101 -                        case "${sc_kernel_bits}" in
   1.102 -                          32) HP_ARCH="hppa2.0n" ;;
   1.103 -                          64) HP_ARCH="hppa2.0w" ;;
   1.104 +		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
   1.105 +		    case "${sc_cpu_version}" in
   1.106 +		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
   1.107 +		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
   1.108 +		      532)                      # CPU_PA_RISC2_0
   1.109 +			case "${sc_kernel_bits}" in
   1.110 +			  32) HP_ARCH="hppa2.0n" ;;
   1.111 +			  64) HP_ARCH="hppa2.0w" ;;
   1.112  			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
   1.113 -                        esac ;;
   1.114 -                    esac
   1.115 +			esac ;;
   1.116 +		    esac
   1.117  		fi
   1.118  		if [ "${HP_ARCH}" = "" ]; then
   1.119  		    eval $set_cc_for_build
   1.120 -		    sed 's/^              //' << EOF >$dummy.c
   1.121 +		    sed 's/^		//' << EOF >$dummy.c
   1.122  
   1.123 -              #define _HPUX_SOURCE
   1.124 -              #include <stdlib.h>
   1.125 -              #include <unistd.h>
   1.126 +		#define _HPUX_SOURCE
   1.127 +		#include <stdlib.h>
   1.128 +		#include <unistd.h>
   1.129  
   1.130 -              int main ()
   1.131 -              {
   1.132 -              #if defined(_SC_KERNEL_BITS)
   1.133 -                  long bits = sysconf(_SC_KERNEL_BITS);
   1.134 -              #endif
   1.135 -                  long cpu  = sysconf (_SC_CPU_VERSION);
   1.136 +		int main ()
   1.137 +		{
   1.138 +		#if defined(_SC_KERNEL_BITS)
   1.139 +		    long bits = sysconf(_SC_KERNEL_BITS);
   1.140 +		#endif
   1.141 +		    long cpu  = sysconf (_SC_CPU_VERSION);
   1.142  
   1.143 -                  switch (cpu)
   1.144 -              	{
   1.145 -              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
   1.146 -              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
   1.147 -              	case CPU_PA_RISC2_0:
   1.148 -              #if defined(_SC_KERNEL_BITS)
   1.149 -              	    switch (bits)
   1.150 -              		{
   1.151 -              		case 64: puts ("hppa2.0w"); break;
   1.152 -              		case 32: puts ("hppa2.0n"); break;
   1.153 -              		default: puts ("hppa2.0"); break;
   1.154 -              		} break;
   1.155 -              #else  /* !defined(_SC_KERNEL_BITS) */
   1.156 -              	    puts ("hppa2.0"); break;
   1.157 -              #endif
   1.158 -              	default: puts ("hppa1.0"); break;
   1.159 -              	}
   1.160 -                  exit (0);
   1.161 -              }
   1.162 +		    switch (cpu)
   1.163 +			{
   1.164 +			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
   1.165 +			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
   1.166 +			case CPU_PA_RISC2_0:
   1.167 +		#if defined(_SC_KERNEL_BITS)
   1.168 +			    switch (bits)
   1.169 +				{
   1.170 +				case 64: puts ("hppa2.0w"); break;
   1.171 +				case 32: puts ("hppa2.0n"); break;
   1.172 +				default: puts ("hppa2.0"); break;
   1.173 +				} break;
   1.174 +		#else  /* !defined(_SC_KERNEL_BITS) */
   1.175 +			    puts ("hppa2.0"); break;
   1.176 +		#endif
   1.177 +			default: puts ("hppa1.0"); break;
   1.178 +			}
   1.179 +		    exit (0);
   1.180 +		}
   1.181  EOF
   1.182  		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
   1.183  		    test -z "$HP_ARCH" && HP_ARCH=hppa
   1.184 @@ -734,22 +734,22 @@
   1.185  	exit ;;
   1.186      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   1.187  	echo c1-convex-bsd
   1.188 -        exit ;;
   1.189 +	exit ;;
   1.190      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   1.191  	if getsysinfo -f scalar_acc
   1.192  	then echo c32-convex-bsd
   1.193  	else echo c2-convex-bsd
   1.194  	fi
   1.195 -        exit ;;
   1.196 +	exit ;;
   1.197      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   1.198  	echo c34-convex-bsd
   1.199 -        exit ;;
   1.200 +	exit ;;
   1.201      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   1.202  	echo c38-convex-bsd
   1.203 -        exit ;;
   1.204 +	exit ;;
   1.205      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   1.206  	echo c4-convex-bsd
   1.207 -        exit ;;
   1.208 +	exit ;;
   1.209      CRAY*Y-MP:*:*:*)
   1.210  	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.211  	exit ;;
   1.212 @@ -773,14 +773,14 @@
   1.213  	exit ;;
   1.214      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   1.215  	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.216 -        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.217 -        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   1.218 -        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.219 -        exit ;;
   1.220 +	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.221 +	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   1.222 +	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.223 +	exit ;;
   1.224      5000:UNIX_System_V:4.*:*)
   1.225 -        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.226 -        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
   1.227 -        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.228 +	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.229 +	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
   1.230 +	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.231  	exit ;;
   1.232      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   1.233  	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   1.234 @@ -808,14 +808,14 @@
   1.235  	echo ${UNAME_MACHINE}-pc-mingw32
   1.236  	exit ;;
   1.237      i*:windows32*:*)
   1.238 -    	# uname -m includes "-pc" on this system.
   1.239 -    	echo ${UNAME_MACHINE}-mingw32
   1.240 +	# uname -m includes "-pc" on this system.
   1.241 +	echo ${UNAME_MACHINE}-mingw32
   1.242  	exit ;;
   1.243      i*:PW*:*)
   1.244  	echo ${UNAME_MACHINE}-pc-pw32
   1.245  	exit ;;
   1.246      *:Interix*:*)
   1.247 -    	case ${UNAME_MACHINE} in
   1.248 +	case ${UNAME_MACHINE} in
   1.249  	    x86)
   1.250  		echo i586-pc-interix${UNAME_RELEASE}
   1.251  		exit ;;
   1.252 @@ -870,7 +870,7 @@
   1.253  	  EV6)   UNAME_MACHINE=alphaev6 ;;
   1.254  	  EV67)  UNAME_MACHINE=alphaev67 ;;
   1.255  	  EV68*) UNAME_MACHINE=alphaev68 ;;
   1.256 -        esac
   1.257 +	esac
   1.258  	objdump --private-headers /bin/sh | grep -q ld.so.1
   1.259  	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
   1.260  	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   1.261 @@ -895,7 +895,7 @@
   1.262  	echo crisv32-axis-linux-gnu
   1.263  	exit ;;
   1.264      frv:Linux:*:*)
   1.265 -    	echo frv-unknown-linux-gnu
   1.266 +	echo frv-unknown-linux-gnu
   1.267  	exit ;;
   1.268      i*86:Linux:*:*)
   1.269  	LIBC=gnu
   1.270 @@ -963,7 +963,7 @@
   1.271  	echo ${UNAME_MACHINE}-ibm-linux
   1.272  	exit ;;
   1.273      sh64*:Linux:*:*)
   1.274 -    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.275 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.276  	exit ;;
   1.277      sh*:Linux:*:*)
   1.278  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.279 @@ -981,7 +981,7 @@
   1.280  	echo x86_64-unknown-linux-gnu
   1.281  	exit ;;
   1.282      xtensa*:Linux:*:*)
   1.283 -    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.284 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.285  	exit ;;
   1.286      i*86:DYNIX/ptx:4*:*)
   1.287  	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   1.288 @@ -990,11 +990,11 @@
   1.289  	echo i386-sequent-sysv4
   1.290  	exit ;;
   1.291      i*86:UNIX_SV:4.2MP:2.*)
   1.292 -        # Unixware is an offshoot of SVR4, but it has its own version
   1.293 -        # number series starting with 2...
   1.294 -        # I am not positive that other SVR4 systems won't match this,
   1.295 +	# Unixware is an offshoot of SVR4, but it has its own version
   1.296 +	# number series starting with 2...
   1.297 +	# I am not positive that other SVR4 systems won't match this,
   1.298  	# I just have to hope.  -- rms.
   1.299 -        # Use sysv4.2uw... so that sysv4* matches it.
   1.300 +	# Use sysv4.2uw... so that sysv4* matches it.
   1.301  	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
   1.302  	exit ;;
   1.303      i*86:OS/2:*:*)
   1.304 @@ -1026,7 +1026,7 @@
   1.305  	fi
   1.306  	exit ;;
   1.307      i*86:*:5:[678]*)
   1.308 -    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
   1.309 +	# UnixWare 7.x, OpenUNIX and OpenServer 6.
   1.310  	case `/bin/uname -X | grep "^Machine"` in
   1.311  	    *486*)	     UNAME_MACHINE=i486 ;;
   1.312  	    *Pentium)	     UNAME_MACHINE=i586 ;;
   1.313 @@ -1054,13 +1054,13 @@
   1.314  	exit ;;
   1.315      pc:*:*:*)
   1.316  	# Left here for compatibility:
   1.317 -        # uname -m prints for DJGPP always 'pc', but it prints nothing about
   1.318 -        # the processor, so we play safe by assuming i586.
   1.319 +	# uname -m prints for DJGPP always 'pc', but it prints nothing about
   1.320 +	# the processor, so we play safe by assuming i586.
   1.321  	# Note: whatever this is, it MUST be the same as what config.sub
   1.322  	# prints for the "djgpp" host, or else GDB configury will decide that
   1.323  	# this is a cross-build.
   1.324  	echo i586-pc-msdosdjgpp
   1.325 -        exit ;;
   1.326 +	exit ;;
   1.327      Intel:Mach:3*:*)
   1.328  	echo i386-pc-mach3
   1.329  	exit ;;
   1.330 @@ -1095,8 +1095,8 @@
   1.331  	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
   1.332  	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
   1.333      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
   1.334 -        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
   1.335 -          && { echo i486-ncr-sysv4; exit; } ;;
   1.336 +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
   1.337 +	  && { echo i486-ncr-sysv4; exit; } ;;
   1.338      NCR*:*:4.2:* | MPRAS*:*:4.2:*)
   1.339  	OS_REL='.3'
   1.340  	test -r /etc/.relid \
   1.341 @@ -1139,10 +1139,10 @@
   1.342  		echo ns32k-sni-sysv
   1.343  	fi
   1.344  	exit ;;
   1.345 -    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
   1.346 -                      # says <Richard.M.Bartel@ccMail.Census.GOV>
   1.347 -        echo i586-unisys-sysv4
   1.348 -        exit ;;
   1.349 +    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
   1.350 +			# says <Richard.M.Bartel@ccMail.Census.GOV>
   1.351 +	echo i586-unisys-sysv4
   1.352 +	exit ;;
   1.353      *:UNIX_System_V:4*:FTX*)
   1.354  	# From Gerald Hewes <hewes@openmarket.com>.
   1.355  	# How about differentiating between stratus architectures? -djm
   1.356 @@ -1168,11 +1168,11 @@
   1.357  	exit ;;
   1.358      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
   1.359  	if [ -d /usr/nec ]; then
   1.360 -	        echo mips-nec-sysv${UNAME_RELEASE}
   1.361 +		echo mips-nec-sysv${UNAME_RELEASE}
   1.362  	else
   1.363 -	        echo mips-unknown-sysv${UNAME_RELEASE}
   1.364 +		echo mips-unknown-sysv${UNAME_RELEASE}
   1.365  	fi
   1.366 -        exit ;;
   1.367 +	exit ;;
   1.368      BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
   1.369  	echo powerpc-be-beos
   1.370  	exit ;;
   1.371 @@ -1285,13 +1285,13 @@
   1.372  	echo pdp10-unknown-its
   1.373  	exit ;;
   1.374      SEI:*:*:SEIUX)
   1.375 -        echo mips-sei-seiux${UNAME_RELEASE}
   1.376 +	echo mips-sei-seiux${UNAME_RELEASE}
   1.377  	exit ;;
   1.378      *:DragonFly:*:*)
   1.379  	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
   1.380  	exit ;;
   1.381      *:*VMS:*:*)
   1.382 -    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
   1.383 +	UNAME_MACHINE=`(uname -p) 2>/dev/null`
   1.384  	case "${UNAME_MACHINE}" in
   1.385  	    A*) echo alpha-dec-vms ; exit ;;
   1.386  	    I*) echo ia64-dec-vms ; exit ;;
   1.387 @@ -1331,11 +1331,11 @@
   1.388  #include <sys/param.h>
   1.389    printf ("m68k-sony-newsos%s\n",
   1.390  #ifdef NEWSOS4
   1.391 -          "4"
   1.392 +	"4"
   1.393  #else
   1.394 -	  ""
   1.395 +	""
   1.396  #endif
   1.397 -         ); exit (0);
   1.398 +	); exit (0);
   1.399  #endif
   1.400  #endif
   1.401