Search
lxdream.org :: lxdream :: r1199:62d0a21fac1c
lxdream 0.9.1
released Jun 29
Download Now
changeset1199:62d0a21fac1c
parent1198:407659e01ef0
child1200:3b2097efa97d
authornkeynes
dateWed Dec 21 12:15:06 2011 +1000 (7 years ago)
Add checks for -msse3 and -mfpmath=sse before adding them (in case the
compiler doesn't actually support them)
Tweak configure for forward compatibility with more recent autoconfs
Update config.guess + config.sub to more recent versions
acinclude.m4
config.guess
config.sub
configure
configure.in
1.1 --- a/acinclude.m4 Fri Dec 16 10:08:45 2011 +1000
1.2 +++ b/acinclude.m4 Wed Dec 21 12:15:06 2011 +1000
1.3 @@ -15,6 +15,8 @@
1.4 AC_MSG_RESULT([yes])
1.5 $1 ], [
1.6 AC_MSG_RESULT([no])
1.7 + $2 ], [
1.8 + AC_MSG_RESULT([no])
1.9 $2 ])
1.10 ])
1.11
1.12 @@ -69,7 +71,9 @@
1.13 AC_MSG_RESULT([yes])
1.14 $1 ], [
1.15 AC_MSG_RESULT([no])
1.16 - $2 ])
1.17 + $2 ], [
1.18 + AC_MSG_RESULT([no])
1.19 + $2 ] )
1.20 ])
1.21
1.22 # AC_CC_VERSION([if-gcc], [if-icc],[if-other])
1.23 @@ -111,6 +115,40 @@
1.24 fi
1.25 ]);
1.26
1.27 +# Check if the given C compiler flag is supported, and if so add it to CFLAGS
1.28 +AC_DEFUN([AC_CHECK_CFLAG], [
1.29 +AC_LANG_PUSH([C])
1.30 +AC_MSG_CHECKING([if $CC supports $1])
1.31 +save_CFLAGS="$CFLAGS"
1.32 +CFLAGS="$1 $CFLAGS"
1.33 +AC_COMPILE_IFELSE([
1.34 + AC_LANG_SOURCE([int main() { return 0; }])], [
1.35 + AC_MSG_RESULT([yes])
1.36 + $2 ], [
1.37 + CFLAGS="$save_CFLAGS"
1.38 + AC_MSG_RESULT([no])
1.39 + $3 ])
1.40 +AC_LANG_POP([C])
1.41 +])
1.42 +
1.43 +# Check if the given OBJC compiler flag is supported, and if so add it to OBJCFLAGS
1.44 +AC_DEFUN([AC_CHECK_OBJCFLAG], [
1.45 +AC_LANG_PUSH([Objective C])
1.46 +AC_MSG_CHECKING([if $OBJC supports $1])
1.47 +save_OBJCFLAGS="$OBJCFLAGS"
1.48 +OBJCFLAGS="$1 $OBJCFLAGS"
1.49 +AC_COMPILE_IFELSE([
1.50 + AC_LANG_SOURCE([int main() { return 0; }])], [
1.51 + AC_MSG_RESULT([yes])
1.52 + $2 ], [
1.53 + OBJCFLAGS="$save_OBJCFLAGS"
1.54 + AC_MSG_RESULT([no])
1.55 + $3 ])
1.56 +AC_LANG_POP([Objective C])
1.57 +])
1.58 +
1.59 +
1.60 +
1.61 # AC_HAVE_OBJC([if-present],[if-not-present])
1.62 # Check if we have a working Objective-C compiler
1.63 AC_DEFUN([AC_HAVE_OBJC], [
2.1 --- a/config.guess Fri Dec 16 10:08:45 2011 +1000
2.2 +++ b/config.guess Wed Dec 21 12:15:06 2011 +1000
2.3 @@ -1,10 +1,10 @@
2.4 #! /bin/sh
2.5 # Attempt to guess a canonical system name.
2.6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2.7 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
2.8 -# Inc.
2.9 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2.10 +# 2011 Free Software Foundation, Inc.
2.11
2.12 -timestamp='2006-07-02'
2.13 +timestamp='2011-06-03'
2.14
2.15 # This file is free software; you can redistribute it and/or modify it
2.16 # under the terms of the GNU General Public License as published by
2.17 @@ -27,16 +27,16 @@
2.18 # the same distribution terms that you use for the rest of that program.
2.19
2.20
2.21 -# Originally written by Per Bothner <per@bothner.com>.
2.22 -# Please send patches to <config-patches@gnu.org>. Submit a context
2.23 -# diff and a properly formatted ChangeLog entry.
2.24 +# Originally written by Per Bothner. Please send patches (context
2.25 +# diff format) to <config-patches@gnu.org> and include a ChangeLog
2.26 +# entry.
2.27 #
2.28 # This script attempts to guess a canonical system name similar to
2.29 # config.sub. If it succeeds, it prints the system name on stdout, and
2.30 # exits with 0. Otherwise, it exits with 1.
2.31 #
2.32 -# The plan is that this can be called by configure scripts if you
2.33 -# don't specify an explicit build system type.
2.34 +# You can get the latest version of this script from:
2.35 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
2.36
2.37 me=`echo "$0" | sed -e 's,.*/,,'`
2.38
2.39 @@ -56,8 +56,9 @@
2.40 GNU config.guess ($timestamp)
2.41
2.42 Originally written by Per Bothner.
2.43 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
2.44 -Free Software Foundation, Inc.
2.45 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2.46 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
2.47 +Software Foundation, Inc.
2.48
2.49 This is free software; see the source for copying conditions. There is NO
2.50 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2.51 @@ -161,6 +162,7 @@
2.52 arm*) machine=arm-unknown ;;
2.53 sh3el) machine=shl-unknown ;;
2.54 sh3eb) machine=sh-unknown ;;
2.55 + sh5el) machine=sh5le-unknown ;;
2.56 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
2.57 esac
2.58 # The Operating System including object format, if it has switched
2.59 @@ -169,7 +171,7 @@
2.60 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
2.61 eval $set_cc_for_build
2.62 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
2.63 - | grep __ELF__ >/dev/null
2.64 + | grep -q __ELF__
2.65 then
2.66 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
2.67 # Return netbsd for either. FIX?
2.68 @@ -179,7 +181,7 @@
2.69 fi
2.70 ;;
2.71 *)
2.72 - os=netbsd
2.73 + os=netbsd
2.74 ;;
2.75 esac
2.76 # The OS release
2.77 @@ -222,7 +224,7 @@
2.78 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2.79 ;;
2.80 *5.*)
2.81 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2.82 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2.83 ;;
2.84 esac
2.85 # According to Compaq, /usr/sbin/psrinfo has been available on
2.86 @@ -268,7 +270,10 @@
2.87 # A Xn.n version is an unreleased experimental baselevel.
2.88 # 1.2 uses "1.2" for uname -r.
2.89 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2.90 - exit ;;
2.91 + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
2.92 + exitcode=$?
2.93 + trap '' 0
2.94 + exit $exitcode ;;
2.95 Alpha\ *:Windows_NT*:*)
2.96 # How do we know it's Interix rather than the generic POSIX subsystem?
2.97 # Should we change UNAME_MACHINE based on the output of uname instead
2.98 @@ -294,7 +299,7 @@
2.99 echo s390-ibm-zvmoe
2.100 exit ;;
2.101 *:OS400:*:*)
2.102 - echo powerpc-ibm-os400
2.103 + echo powerpc-ibm-os400
2.104 exit ;;
2.105 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
2.106 echo arm-acorn-riscix${UNAME_RELEASE}
2.107 @@ -323,14 +328,33 @@
2.108 case `/usr/bin/uname -p` in
2.109 sparc) echo sparc-icl-nx7; exit ;;
2.110 esac ;;
2.111 + s390x:SunOS:*:*)
2.112 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.113 + exit ;;
2.114 sun4H:SunOS:5.*:*)
2.115 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.116 exit ;;
2.117 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
2.118 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.119 exit ;;
2.120 - i86pc:SunOS:5.*:*)
2.121 - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.122 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
2.123 + echo i386-pc-auroraux${UNAME_RELEASE}
2.124 + exit ;;
2.125 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
2.126 + eval $set_cc_for_build
2.127 + SUN_ARCH="i386"
2.128 + # If there is a compiler, see if it is configured for 64-bit objects.
2.129 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
2.130 + # This test works for both compilers.
2.131 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2.132 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
2.133 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2.134 + grep IS_64BIT_ARCH >/dev/null
2.135 + then
2.136 + SUN_ARCH="x86_64"
2.137 + fi
2.138 + fi
2.139 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.140 exit ;;
2.141 sun4*:SunOS:6*:*)
2.142 # According to config.sub, this is the proper way to canonicalize
2.143 @@ -374,23 +398,23 @@
2.144 # MiNT. But MiNT is downward compatible to TOS, so this should
2.145 # be no problem.
2.146 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
2.147 - echo m68k-atari-mint${UNAME_RELEASE}
2.148 + echo m68k-atari-mint${UNAME_RELEASE}
2.149 exit ;;
2.150 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
2.151 echo m68k-atari-mint${UNAME_RELEASE}
2.152 - exit ;;
2.153 + exit ;;
2.154 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
2.155 - echo m68k-atari-mint${UNAME_RELEASE}
2.156 + echo m68k-atari-mint${UNAME_RELEASE}
2.157 exit ;;
2.158 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
2.159 - echo m68k-milan-mint${UNAME_RELEASE}
2.160 - exit ;;
2.161 + echo m68k-milan-mint${UNAME_RELEASE}
2.162 + exit ;;
2.163 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
2.164 - echo m68k-hades-mint${UNAME_RELEASE}
2.165 - exit ;;
2.166 + echo m68k-hades-mint${UNAME_RELEASE}
2.167 + exit ;;
2.168 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
2.169 - echo m68k-unknown-mint${UNAME_RELEASE}
2.170 - exit ;;
2.171 + echo m68k-unknown-mint${UNAME_RELEASE}
2.172 + exit ;;
2.173 m68k:machten:*:*)
2.174 echo m68k-apple-machten${UNAME_RELEASE}
2.175 exit ;;
2.176 @@ -460,8 +484,8 @@
2.177 echo m88k-motorola-sysv3
2.178 exit ;;
2.179 AViiON:dgux:*:*)
2.180 - # DG/UX returns AViiON for all architectures
2.181 - UNAME_PROCESSOR=`/usr/bin/uname -p`
2.182 + # DG/UX returns AViiON for all architectures
2.183 + UNAME_PROCESSOR=`/usr/bin/uname -p`
2.184 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
2.185 then
2.186 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
2.187 @@ -474,7 +498,7 @@
2.188 else
2.189 echo i586-dg-dgux${UNAME_RELEASE}
2.190 fi
2.191 - exit ;;
2.192 + exit ;;
2.193 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
2.194 echo m88k-dolphin-sysv3
2.195 exit ;;
2.196 @@ -531,7 +555,7 @@
2.197 echo rs6000-ibm-aix3.2
2.198 fi
2.199 exit ;;
2.200 - *:AIX:*:[45])
2.201 + *:AIX:*:[4567])
2.202 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
2.203 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
2.204 IBM_ARCH=rs6000
2.205 @@ -574,52 +598,52 @@
2.206 9000/[678][0-9][0-9])
2.207 if [ -x /usr/bin/getconf ]; then
2.208 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
2.209 - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
2.210 - case "${sc_cpu_version}" in
2.211 - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
2.212 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
2.213 - 532) # CPU_PA_RISC2_0
2.214 - case "${sc_kernel_bits}" in
2.215 - 32) HP_ARCH="hppa2.0n" ;;
2.216 - 64) HP_ARCH="hppa2.0w" ;;
2.217 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
2.218 + case "${sc_cpu_version}" in
2.219 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
2.220 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
2.221 + 532) # CPU_PA_RISC2_0
2.222 + case "${sc_kernel_bits}" in
2.223 + 32) HP_ARCH="hppa2.0n" ;;
2.224 + 64) HP_ARCH="hppa2.0w" ;;
2.225 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
2.226 - esac ;;
2.227 - esac
2.228 + esac ;;
2.229 + esac
2.230 fi
2.231 if [ "${HP_ARCH}" = "" ]; then
2.232 eval $set_cc_for_build
2.233 - sed 's/^ //' << EOF >$dummy.c
2.234 + sed 's/^ //' << EOF >$dummy.c
2.235
2.236 - #define _HPUX_SOURCE
2.237 - #include <stdlib.h>
2.238 - #include <unistd.h>
2.239 + #define _HPUX_SOURCE
2.240 + #include <stdlib.h>
2.241 + #include <unistd.h>
2.242
2.243 - int main ()
2.244 - {
2.245 - #if defined(_SC_KERNEL_BITS)
2.246 - long bits = sysconf(_SC_KERNEL_BITS);
2.247 - #endif
2.248 - long cpu = sysconf (_SC_CPU_VERSION);
2.249 + int main ()
2.250 + {
2.251 + #if defined(_SC_KERNEL_BITS)
2.252 + long bits = sysconf(_SC_KERNEL_BITS);
2.253 + #endif
2.254 + long cpu = sysconf (_SC_CPU_VERSION);
2.255
2.256 - switch (cpu)
2.257 - {
2.258 - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
2.259 - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
2.260 - case CPU_PA_RISC2_0:
2.261 - #if defined(_SC_KERNEL_BITS)
2.262 - switch (bits)
2.263 - {
2.264 - case 64: puts ("hppa2.0w"); break;
2.265 - case 32: puts ("hppa2.0n"); break;
2.266 - default: puts ("hppa2.0"); break;
2.267 - } break;
2.268 - #else /* !defined(_SC_KERNEL_BITS) */
2.269 - puts ("hppa2.0"); break;
2.270 - #endif
2.271 - default: puts ("hppa1.0"); break;
2.272 - }
2.273 - exit (0);
2.274 - }
2.275 + switch (cpu)
2.276 + {
2.277 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
2.278 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
2.279 + case CPU_PA_RISC2_0:
2.280 + #if defined(_SC_KERNEL_BITS)
2.281 + switch (bits)
2.282 + {
2.283 + case 64: puts ("hppa2.0w"); break;
2.284 + case 32: puts ("hppa2.0n"); break;
2.285 + default: puts ("hppa2.0"); break;
2.286 + } break;
2.287 + #else /* !defined(_SC_KERNEL_BITS) */
2.288 + puts ("hppa2.0"); break;
2.289 + #endif
2.290 + default: puts ("hppa1.0"); break;
2.291 + }
2.292 + exit (0);
2.293 + }
2.294 EOF
2.295 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
2.296 test -z "$HP_ARCH" && HP_ARCH=hppa
2.297 @@ -639,7 +663,7 @@
2.298 # => hppa64-hp-hpux11.23
2.299
2.300 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
2.301 - grep __LP64__ >/dev/null
2.302 + grep -q __LP64__
2.303 then
2.304 HP_ARCH="hppa2.0w"
2.305 else
2.306 @@ -710,22 +734,22 @@
2.307 exit ;;
2.308 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
2.309 echo c1-convex-bsd
2.310 - exit ;;
2.311 + exit ;;
2.312 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
2.313 if getsysinfo -f scalar_acc
2.314 then echo c32-convex-bsd
2.315 else echo c2-convex-bsd
2.316 fi
2.317 - exit ;;
2.318 + exit ;;
2.319 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
2.320 echo c34-convex-bsd
2.321 - exit ;;
2.322 + exit ;;
2.323 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
2.324 echo c38-convex-bsd
2.325 - exit ;;
2.326 + exit ;;
2.327 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
2.328 echo c4-convex-bsd
2.329 - exit ;;
2.330 + exit ;;
2.331 CRAY*Y-MP:*:*:*)
2.332 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2.333 exit ;;
2.334 @@ -749,14 +773,14 @@
2.335 exit ;;
2.336 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2.337 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2.338 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2.339 - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2.340 - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2.341 - exit ;;
2.342 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2.343 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2.344 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2.345 + exit ;;
2.346 5000:UNIX_System_V:4.*:*)
2.347 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2.348 - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2.349 - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2.350 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2.351 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2.352 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2.353 exit ;;
2.354 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
2.355 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
2.356 @@ -780,25 +804,34 @@
2.357 i*:CYGWIN*:*)
2.358 echo ${UNAME_MACHINE}-pc-cygwin
2.359 exit ;;
2.360 - i*:MINGW*:*)
2.361 + *:MINGW*:*)
2.362 echo ${UNAME_MACHINE}-pc-mingw32
2.363 exit ;;
2.364 i*:windows32*:*)
2.365 - # uname -m includes "-pc" on this system.
2.366 - echo ${UNAME_MACHINE}-mingw32
2.367 + # uname -m includes "-pc" on this system.
2.368 + echo ${UNAME_MACHINE}-mingw32
2.369 exit ;;
2.370 i*:PW*:*)
2.371 echo ${UNAME_MACHINE}-pc-pw32
2.372 exit ;;
2.373 - x86:Interix*:[3456]*)
2.374 - echo i586-pc-interix${UNAME_RELEASE}
2.375 - exit ;;
2.376 - EM64T:Interix*:[3456]*)
2.377 - echo x86_64-unknown-interix${UNAME_RELEASE}
2.378 - exit ;;
2.379 + *:Interix*:*)
2.380 + case ${UNAME_MACHINE} in
2.381 + x86)
2.382 + echo i586-pc-interix${UNAME_RELEASE}
2.383 + exit ;;
2.384 + authenticamd | genuineintel | EM64T)
2.385 + echo x86_64-unknown-interix${UNAME_RELEASE}
2.386 + exit ;;
2.387 + IA64)
2.388 + echo ia64-unknown-interix${UNAME_RELEASE}
2.389 + exit ;;
2.390 + esac ;;
2.391 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
2.392 echo i${UNAME_MACHINE}-pc-mks
2.393 exit ;;
2.394 + 8664:Windows_NT:*)
2.395 + echo x86_64-pc-mks
2.396 + exit ;;
2.397 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
2.398 # How do we know it's Interix rather than the generic POSIX subsystem?
2.399 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
2.400 @@ -828,8 +861,35 @@
2.401 i*86:Minix:*:*)
2.402 echo ${UNAME_MACHINE}-pc-minix
2.403 exit ;;
2.404 + alpha:Linux:*:*)
2.405 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2.406 + EV5) UNAME_MACHINE=alphaev5 ;;
2.407 + EV56) UNAME_MACHINE=alphaev56 ;;
2.408 + PCA56) UNAME_MACHINE=alphapca56 ;;
2.409 + PCA57) UNAME_MACHINE=alphapca56 ;;
2.410 + EV6) UNAME_MACHINE=alphaev6 ;;
2.411 + EV67) UNAME_MACHINE=alphaev67 ;;
2.412 + EV68*) UNAME_MACHINE=alphaev68 ;;
2.413 + esac
2.414 + objdump --private-headers /bin/sh | grep -q ld.so.1
2.415 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2.416 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2.417 + exit ;;
2.418 arm*:Linux:*:*)
2.419 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.420 + eval $set_cc_for_build
2.421 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
2.422 + | grep -q __ARM_EABI__
2.423 + then
2.424 + echo ${UNAME_MACHINE}-unknown-linux-gnu
2.425 + else
2.426 + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
2.427 + | grep -q __ARM_PCS_VFP
2.428 + then
2.429 + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
2.430 + else
2.431 + echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
2.432 + fi
2.433 + fi
2.434 exit ;;
2.435 avr32*:Linux:*:*)
2.436 echo ${UNAME_MACHINE}-unknown-linux-gnu
2.437 @@ -841,7 +901,18 @@
2.438 echo crisv32-axis-linux-gnu
2.439 exit ;;
2.440 frv:Linux:*:*)
2.441 - echo frv-unknown-linux-gnu
2.442 + echo frv-unknown-linux-gnu
2.443 + exit ;;
2.444 + i*86:Linux:*:*)
2.445 + LIBC=gnu
2.446 + eval $set_cc_for_build
2.447 + sed 's/^ //' << EOF >$dummy.c
2.448 + #ifdef __dietlibc__
2.449 + LIBC=dietlibc
2.450 + #endif
2.451 +EOF
2.452 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
2.453 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
2.454 exit ;;
2.455 ia64:Linux:*:*)
2.456 echo ${UNAME_MACHINE}-unknown-linux-gnu
2.457 @@ -852,74 +923,33 @@
2.458 m68*:Linux:*:*)
2.459 echo ${UNAME_MACHINE}-unknown-linux-gnu
2.460 exit ;;
2.461 - mips:Linux:*:*)
2.462 + mips:Linux:*:* | mips64:Linux:*:*)
2.463 eval $set_cc_for_build
2.464 sed 's/^ //' << EOF >$dummy.c
2.465 #undef CPU
2.466 - #undef mips
2.467 - #undef mipsel
2.468 + #undef ${UNAME_MACHINE}
2.469 + #undef ${UNAME_MACHINE}el
2.470 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2.471 - CPU=mipsel
2.472 + CPU=${UNAME_MACHINE}el
2.473 #else
2.474 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2.475 - CPU=mips
2.476 + CPU=${UNAME_MACHINE}
2.477 #else
2.478 CPU=
2.479 #endif
2.480 #endif
2.481 EOF
2.482 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
2.483 - /^CPU/{
2.484 - s: ::g
2.485 - p
2.486 - }'`"
2.487 - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
2.488 - ;;
2.489 - mips64:Linux:*:*)
2.490 - eval $set_cc_for_build
2.491 - sed 's/^ //' << EOF >$dummy.c
2.492 - #undef CPU
2.493 - #undef mips64
2.494 - #undef mips64el
2.495 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2.496 - CPU=mips64el
2.497 - #else
2.498 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2.499 - CPU=mips64
2.500 - #else
2.501 - CPU=
2.502 - #endif
2.503 - #endif
2.504 -EOF
2.505 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
2.506 - /^CPU/{
2.507 - s: ::g
2.508 - p
2.509 - }'`"
2.510 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
2.511 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
2.512 ;;
2.513 or32:Linux:*:*)
2.514 echo or32-unknown-linux-gnu
2.515 exit ;;
2.516 - ppc:Linux:*:*)
2.517 - echo powerpc-unknown-linux-gnu
2.518 + padre:Linux:*:*)
2.519 + echo sparc-unknown-linux-gnu
2.520 exit ;;
2.521 - ppc64:Linux:*:*)
2.522 - echo powerpc64-unknown-linux-gnu
2.523 - exit ;;
2.524 - alpha:Linux:*:*)
2.525 - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2.526 - EV5) UNAME_MACHINE=alphaev5 ;;
2.527 - EV56) UNAME_MACHINE=alphaev56 ;;
2.528 - PCA56) UNAME_MACHINE=alphapca56 ;;
2.529 - PCA57) UNAME_MACHINE=alphapca56 ;;
2.530 - EV6) UNAME_MACHINE=alphaev6 ;;
2.531 - EV67) UNAME_MACHINE=alphaev67 ;;
2.532 - EV68*) UNAME_MACHINE=alphaev68 ;;
2.533 - esac
2.534 - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
2.535 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2.536 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2.537 + parisc64:Linux:*:* | hppa64:Linux:*:*)
2.538 + echo hppa64-unknown-linux-gnu
2.539 exit ;;
2.540 parisc:Linux:*:* | hppa:Linux:*:*)
2.541 # Look for CPU level
2.542 @@ -929,14 +959,17 @@
2.543 *) echo hppa-unknown-linux-gnu ;;
2.544 esac
2.545 exit ;;
2.546 - parisc64:Linux:*:* | hppa64:Linux:*:*)
2.547 - echo hppa64-unknown-linux-gnu
2.548 + ppc64:Linux:*:*)
2.549 + echo powerpc64-unknown-linux-gnu
2.550 + exit ;;
2.551 + ppc:Linux:*:*)
2.552 + echo powerpc-unknown-linux-gnu
2.553 exit ;;
2.554 s390:Linux:*:* | s390x:Linux:*:*)
2.555 echo ${UNAME_MACHINE}-ibm-linux
2.556 exit ;;
2.557 sh64*:Linux:*:*)
2.558 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.559 + echo ${UNAME_MACHINE}-unknown-linux-gnu
2.560 exit ;;
2.561 sh*:Linux:*:*)
2.562 echo ${UNAME_MACHINE}-unknown-linux-gnu
2.563 @@ -944,75 +977,18 @@
2.564 sparc:Linux:*:* | sparc64:Linux:*:*)
2.565 echo ${UNAME_MACHINE}-unknown-linux-gnu
2.566 exit ;;
2.567 + tile*:Linux:*:*)
2.568 + echo ${UNAME_MACHINE}-unknown-linux-gnu
2.569 + exit ;;
2.570 vax:Linux:*:*)
2.571 echo ${UNAME_MACHINE}-dec-linux-gnu
2.572 exit ;;
2.573 x86_64:Linux:*:*)
2.574 echo x86_64-unknown-linux-gnu
2.575 exit ;;
2.576 - i*86:Linux:*:*)
2.577 - # The BFD linker knows what the default object file format is, so
2.578 - # first see if it will tell us. cd to the root directory to prevent
2.579 - # problems with other programs or directories called `ld' in the path.
2.580 - # Set LC_ALL=C to ensure ld outputs messages in English.
2.581 - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
2.582 - | sed -ne '/supported targets:/!d
2.583 - s/[ ][ ]*/ /g
2.584 - s/.*supported targets: *//
2.585 - s/ .*//
2.586 - p'`
2.587 - case "$ld_supported_targets" in
2.588 - elf32-i386)
2.589 - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
2.590 - ;;
2.591 - a.out-i386-linux)
2.592 - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
2.593 - exit ;;
2.594 - coff-i386)
2.595 - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
2.596 - exit ;;
2.597 - "")
2.598 - # Either a pre-BFD a.out linker (linux-gnuoldld) or
2.599 - # one that does not give us useful --help.
2.600 - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
2.601 - exit ;;
2.602 - esac
2.603 - # Determine whether the default compiler is a.out or elf
2.604 - eval $set_cc_for_build
2.605 - sed 's/^ //' << EOF >$dummy.c
2.606 - #include <features.h>
2.607 - #ifdef __ELF__
2.608 - # ifdef __GLIBC__
2.609 - # if __GLIBC__ >= 2
2.610 - LIBC=gnu
2.611 - # else
2.612 - LIBC=gnulibc1
2.613 - # endif
2.614 - # else
2.615 - LIBC=gnulibc1
2.616 - # endif
2.617 - #else
2.618 - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
2.619 - LIBC=gnu
2.620 - #else
2.621 - LIBC=gnuaout
2.622 - #endif
2.623 - #endif
2.624 - #ifdef __dietlibc__
2.625 - LIBC=dietlibc
2.626 - #endif
2.627 -EOF
2.628 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
2.629 - /^LIBC/{
2.630 - s: ::g
2.631 - p
2.632 - }'`"
2.633 - test x"${LIBC}" != x && {
2.634 - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
2.635 - exit
2.636 - }
2.637 - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
2.638 - ;;
2.639 + xtensa*:Linux:*:*)
2.640 + echo ${UNAME_MACHINE}-unknown-linux-gnu
2.641 + exit ;;
2.642 i*86:DYNIX/ptx:4*:*)
2.643 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
2.644 # earlier versions are messed up and put the nodename in both
2.645 @@ -1020,11 +996,11 @@
2.646 echo i386-sequent-sysv4
2.647 exit ;;
2.648 i*86:UNIX_SV:4.2MP:2.*)
2.649 - # Unixware is an offshoot of SVR4, but it has its own version
2.650 - # number series starting with 2...
2.651 - # I am not positive that other SVR4 systems won't match this,
2.652 + # Unixware is an offshoot of SVR4, but it has its own version
2.653 + # number series starting with 2...
2.654 + # I am not positive that other SVR4 systems won't match this,
2.655 # I just have to hope. -- rms.
2.656 - # Use sysv4.2uw... so that sysv4* matches it.
2.657 + # Use sysv4.2uw... so that sysv4* matches it.
2.658 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
2.659 exit ;;
2.660 i*86:OS/2:*:*)
2.661 @@ -1041,7 +1017,7 @@
2.662 i*86:syllable:*:*)
2.663 echo ${UNAME_MACHINE}-pc-syllable
2.664 exit ;;
2.665 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
2.666 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
2.667 echo i386-unknown-lynxos${UNAME_RELEASE}
2.668 exit ;;
2.669 i*86:*DOS:*:*)
2.670 @@ -1056,7 +1032,7 @@
2.671 fi
2.672 exit ;;
2.673 i*86:*:5:[678]*)
2.674 - # UnixWare 7.x, OpenUNIX and OpenServer 6.
2.675 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
2.676 case `/bin/uname -X | grep "^Machine"` in
2.677 *486*) UNAME_MACHINE=i486 ;;
2.678 *Pentium) UNAME_MACHINE=i586 ;;
2.679 @@ -1084,10 +1060,13 @@
2.680 exit ;;
2.681 pc:*:*:*)
2.682 # Left here for compatibility:
2.683 - # uname -m prints for DJGPP always 'pc', but it prints nothing about
2.684 - # the processor, so we play safe by assuming i386.
2.685 - echo i386-pc-msdosdjgpp
2.686 - exit ;;
2.687 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
2.688 + # the processor, so we play safe by assuming i586.
2.689 + # Note: whatever this is, it MUST be the same as what config.sub
2.690 + # prints for the "djgpp" host, or else GDB configury will decide that
2.691 + # this is a cross-build.
2.692 + echo i586-pc-msdosdjgpp
2.693 + exit ;;
2.694 Intel:Mach:3*:*)
2.695 echo i386-pc-mach3
2.696 exit ;;
2.697 @@ -1122,8 +1101,18 @@
2.698 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
2.699 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
2.700 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
2.701 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2.702 - && { echo i486-ncr-sysv4; exit; } ;;
2.703 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2.704 + && { echo i486-ncr-sysv4; exit; } ;;
2.705 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
2.706 + OS_REL='.3'
2.707 + test -r /etc/.relid \
2.708 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
2.709 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2.710 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
2.711 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
2.712 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
2.713 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
2.714 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
2.715 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
2.716 echo m68k-unknown-lynxos${UNAME_RELEASE}
2.717 exit ;;
2.718 @@ -1136,7 +1125,7 @@
2.719 rs6000:LynxOS:2.*:*)
2.720 echo rs6000-unknown-lynxos${UNAME_RELEASE}
2.721 exit ;;
2.722 - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
2.723 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
2.724 echo powerpc-unknown-lynxos${UNAME_RELEASE}
2.725 exit ;;
2.726 SM[BE]S:UNIX_SV:*:*)
2.727 @@ -1156,10 +1145,10 @@
2.728 echo ns32k-sni-sysv
2.729 fi
2.730 exit ;;
2.731 - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2.732 - # says <Richard.M.Bartel@ccMail.Census.GOV>
2.733 - echo i586-unisys-sysv4
2.734 - exit ;;
2.735 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2.736 + # says <Richard.M.Bartel@ccMail.Census.GOV>
2.737 + echo i586-unisys-sysv4
2.738 + exit ;;
2.739 *:UNIX_System_V:4*:FTX*)
2.740 # From Gerald Hewes <hewes@openmarket.com>.
2.741 # How about differentiating between stratus architectures? -djm
2.742 @@ -1185,11 +1174,11 @@
2.743 exit ;;
2.744 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
2.745 if [ -d /usr/nec ]; then
2.746 - echo mips-nec-sysv${UNAME_RELEASE}
2.747 + echo mips-nec-sysv${UNAME_RELEASE}
2.748 else
2.749 - echo mips-unknown-sysv${UNAME_RELEASE}
2.750 + echo mips-unknown-sysv${UNAME_RELEASE}
2.751 fi
2.752 - exit ;;
2.753 + exit ;;
2.754 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
2.755 echo powerpc-be-beos
2.756 exit ;;
2.757 @@ -1199,6 +1188,9 @@
2.758 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
2.759 echo i586-pc-beos
2.760 exit ;;
2.761 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
2.762 + echo i586-pc-haiku
2.763 + exit ;;
2.764 SX-4:SUPER-UX:*:*)
2.765 echo sx4-nec-superux${UNAME_RELEASE}
2.766 exit ;;
2.767 @@ -1208,6 +1200,15 @@
2.768 SX-6:SUPER-UX:*:*)
2.769 echo sx6-nec-superux${UNAME_RELEASE}
2.770 exit ;;
2.771 + SX-7:SUPER-UX:*:*)
2.772 + echo sx7-nec-superux${UNAME_RELEASE}
2.773 + exit ;;
2.774 + SX-8:SUPER-UX:*:*)
2.775 + echo sx8-nec-superux${UNAME_RELEASE}
2.776 + exit ;;
2.777 + SX-8R:SUPER-UX:*:*)
2.778 + echo sx8r-nec-superux${UNAME_RELEASE}
2.779 + exit ;;
2.780 Power*:Rhapsody:*:*)
2.781 echo powerpc-apple-rhapsody${UNAME_RELEASE}
2.782 exit ;;
2.783 @@ -1217,6 +1218,16 @@
2.784 *:Darwin:*:*)
2.785 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
2.786 case $UNAME_PROCESSOR in
2.787 + i386)
2.788 + eval $set_cc_for_build
2.789 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2.790 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
2.791 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2.792 + grep IS_64BIT_ARCH >/dev/null
2.793 + then
2.794 + UNAME_PROCESSOR="x86_64"
2.795 + fi
2.796 + fi ;;
2.797 unknown) UNAME_PROCESSOR=powerpc ;;
2.798 esac
2.799 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
2.800 @@ -1232,6 +1243,9 @@
2.801 *:QNX:*:4*)
2.802 echo i386-pc-qnx
2.803 exit ;;
2.804 + NEO-?:NONSTOP_KERNEL:*:*)
2.805 + echo neo-tandem-nsk${UNAME_RELEASE}
2.806 + exit ;;
2.807 NSE-?:NONSTOP_KERNEL:*:*)
2.808 echo nse-tandem-nsk${UNAME_RELEASE}
2.809 exit ;;
2.810 @@ -1277,13 +1291,13 @@
2.811 echo pdp10-unknown-its
2.812 exit ;;
2.813 SEI:*:*:SEIUX)
2.814 - echo mips-sei-seiux${UNAME_RELEASE}
2.815 + echo mips-sei-seiux${UNAME_RELEASE}
2.816 exit ;;
2.817 *:DragonFly:*:*)
2.818 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2.819 exit ;;
2.820 *:*VMS:*:*)
2.821 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
2.822 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
2.823 case "${UNAME_MACHINE}" in
2.824 A*) echo alpha-dec-vms ; exit ;;
2.825 I*) echo ia64-dec-vms ; exit ;;
2.826 @@ -1298,6 +1312,9 @@
2.827 i*86:rdos:*:*)
2.828 echo ${UNAME_MACHINE}-pc-rdos
2.829 exit ;;
2.830 + i*86:AROS:*:*)
2.831 + echo ${UNAME_MACHINE}-pc-aros
2.832 + exit ;;
2.833 esac
2.834
2.835 #echo '(No uname command or uname output not recognized.)' 1>&2
2.836 @@ -1320,11 +1337,11 @@
2.837 #include <sys/param.h>
2.838 printf ("m68k-sony-newsos%s\n",
2.839 #ifdef NEWSOS4
2.840 - "4"
2.841 + "4"
2.842 #else
2.843 - ""
2.844 + ""
2.845 #endif
2.846 - ); exit (0);
2.847 + ); exit (0);
2.848 #endif
2.849 #endif
2.850
2.851 @@ -1458,9 +1475,9 @@
2.852 the operating system you are using. It is advised that you
2.853 download the most up to date version of the config scripts from
2.854
2.855 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
2.856 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
2.857 and
2.858 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
2.859 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
2.860
2.861 If the version you run ($0) is already up to date, please
2.862 send the following data and any information you think might be
3.1 --- a/config.sub Fri Dec 16 10:08:45 2011 +1000
3.2 +++ b/config.sub Wed Dec 21 12:15:06 2011 +1000
3.3 @@ -1,10 +1,10 @@
3.4 #! /bin/sh
3.5 # Configuration validation subroutine script.
3.6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3.7 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
3.8 -# Inc.
3.9 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
3.10 +# 2011 Free Software Foundation, Inc.
3.11
3.12 -timestamp='2006-07-02'
3.13 +timestamp='2011-10-29'
3.14
3.15 # This file is (in principle) common to ALL GNU software.
3.16 # The presence of a machine in this file suggests that SOME GNU software
3.17 @@ -32,13 +32,16 @@
3.18
3.19
3.20 # Please send patches to <config-patches@gnu.org>. Submit a context
3.21 -# diff and a properly formatted ChangeLog entry.
3.22 +# diff and a properly formatted GNU ChangeLog entry.
3.23 #
3.24 # Configuration subroutine to validate and canonicalize a configuration type.
3.25 # Supply the specified configuration type as an argument.
3.26 # If it is invalid, we print an error message on stderr and exit with code 1.
3.27 # Otherwise, we print the canonical config type on stdout and succeed.
3.28
3.29 +# You can get the latest version of this script from:
3.30 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
3.31 +
3.32 # This file is supposed to be the same for all GNU packages
3.33 # and recognize all the CPU types, system types and aliases
3.34 # that are meaningful with *any* GNU software.
3.35 @@ -72,8 +75,9 @@
3.36 version="\
3.37 GNU config.sub ($timestamp)
3.38
3.39 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
3.40 -Free Software Foundation, Inc.
3.41 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3.42 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
3.43 +Software Foundation, Inc.
3.44
3.45 This is free software; see the source for copying conditions. There is NO
3.46 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3.47 @@ -120,8 +124,10 @@
3.48 # Here we must recognize all the valid KERNEL-OS combinations.
3.49 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
3.50 case $maybe_os in
3.51 - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
3.52 - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
3.53 + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
3.54 + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
3.55 + knetbsd*-gnu* | netbsd*-gnu* | \
3.56 + kopensolaris*-gnu* | \
3.57 storm-chaos* | os2-emx* | rtmk-nova*)
3.58 os=-$maybe_os
3.59 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
3.60 @@ -148,10 +154,13 @@
3.61 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
3.62 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
3.63 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
3.64 - -apple | -axis | -knuth | -cray)
3.65 + -apple | -axis | -knuth | -cray | -microblaze)
3.66 os=
3.67 basic_machine=$1
3.68 ;;
3.69 + -bluegene*)
3.70 + os=-cnk
3.71 + ;;
3.72 -sim | -cisco | -oki | -wec | -winbond)
3.73 os=
3.74 basic_machine=$1
3.75 @@ -166,10 +175,10 @@
3.76 os=-chorusos
3.77 basic_machine=$1
3.78 ;;
3.79 - -chorusrdb)
3.80 - os=-chorusrdb
3.81 + -chorusrdb)
3.82 + os=-chorusrdb
3.83 basic_machine=$1
3.84 - ;;
3.85 + ;;
3.86 -hiux*)
3.87 os=-hiuxwe2
3.88 ;;
3.89 @@ -242,20 +251,27 @@
3.90 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
3.91 | am33_2.0 \
3.92 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
3.93 + | be32 | be64 \
3.94 | bfin \
3.95 | c4x | clipper \
3.96 | d10v | d30v | dlx | dsp16xx \
3.97 - | fr30 | frv \
3.98 + | epiphany \
3.99 + | fido | fr30 | frv \
3.100 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
3.101 + | hexagon \
3.102 | i370 | i860 | i960 | ia64 \
3.103 | ip2k | iq2000 \
3.104 + | le32 | le64 \
3.105 + | lm32 \
3.106 | m32c | m32r | m32rle | m68000 | m68k | m88k \
3.107 - | maxq | mb | microblaze | mcore \
3.108 + | maxq | mb | microblaze | mcore | mep | metag \
3.109 | mips | mipsbe | mipseb | mipsel | mipsle \
3.110 | mips16 \
3.111 | mips64 | mips64el \
3.112 + | mips64octeon | mips64octeonel \
3.113 + | mips64orion | mips64orionel \
3.114 + | mips64r5900 | mips64r5900el \
3.115 | mips64vr | mips64vrel \
3.116 - | mips64orion | mips64orionel \
3.117 | mips64vr4100 | mips64vr4100el \
3.118 | mips64vr4300 | mips64vr4300el \
3.119 | mips64vr5000 | mips64vr5000el \
3.120 @@ -268,27 +284,42 @@
3.121 | mipsisa64sr71k | mipsisa64sr71kel \
3.122 | mipstx39 | mipstx39el \
3.123 | mn10200 | mn10300 \
3.124 + | moxie \
3.125 | mt \
3.126 | msp430 \
3.127 + | nds32 | nds32le | nds32be \
3.128 | nios | nios2 \
3.129 | ns16k | ns32k \
3.130 + | open8 \
3.131 | or32 \
3.132 | pdp10 | pdp11 | pj | pjl \
3.133 - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
3.134 + | powerpc | powerpc64 | powerpc64le | powerpcle \
3.135 | pyramid \
3.136 - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
3.137 + | rl78 | rx \
3.138 + | score \
3.139 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
3.140 | sh64 | sh64le \
3.141 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
3.142 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
3.143 - | spu | strongarm \
3.144 - | tahoe | thumb | tic4x | tic80 | tron \
3.145 - | v850 | v850e \
3.146 + | spu \
3.147 + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
3.148 + | ubicom32 \
3.149 + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
3.150 | we32k \
3.151 - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
3.152 - | z8k)
3.153 + | x86 | xc16x | xstormy16 | xtensa \
3.154 + | z8k | z80)
3.155 basic_machine=$basic_machine-unknown
3.156 ;;
3.157 - m6811 | m68hc11 | m6812 | m68hc12)
3.158 + c54x)
3.159 + basic_machine=tic54x-unknown
3.160 + ;;
3.161 + c55x)
3.162 + basic_machine=tic55x-unknown
3.163 + ;;
3.164 + c6x)
3.165 + basic_machine=tic6x-unknown
3.166 + ;;
3.167 + m6811 | m68hc11 | m6812 | m68hc12 | picochip)
3.168 # Motorola 68HC11/12.
3.169 basic_machine=$basic_machine-unknown
3.170 os=-none
3.171 @@ -299,6 +330,18 @@
3.172 basic_machine=mt-unknown
3.173 ;;
3.174
3.175 + strongarm | thumb | xscale)
3.176 + basic_machine=arm-unknown
3.177 + ;;
3.178 +
3.179 + xscaleeb)
3.180 + basic_machine=armeb-unknown
3.181 + ;;
3.182 +
3.183 + xscaleel)
3.184 + basic_machine=armel-unknown
3.185 + ;;
3.186 +
3.187 # We use `pc' rather than `unknown'
3.188 # because (1) that's what they normally are, and
3.189 # (2) the word "unknown" tends to confuse beginning users.
3.190 @@ -318,24 +361,30 @@
3.191 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3.192 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
3.193 | avr-* | avr32-* \
3.194 + | be32-* | be64-* \
3.195 | bfin-* | bs2000-* \
3.196 - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
3.197 + | c[123]* | c30-* | [cjt]90-* | c4x-* \
3.198 | clipper-* | craynv-* | cydra-* \
3.199 | d10v-* | d30v-* | dlx-* \
3.200 | elxsi-* \
3.201 - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
3.202 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
3.203 | h8300-* | h8500-* \
3.204 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
3.205 + | hexagon-* \
3.206 | i*86-* | i860-* | i960-* | ia64-* \
3.207 | ip2k-* | iq2000-* \
3.208 + | le32-* | le64-* \
3.209 + | lm32-* \
3.210 | m32c-* | m32r-* | m32rle-* \
3.211 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
3.212 - | m88110-* | m88k-* | maxq-* | mcore-* \
3.213 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
3.214 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3.215 | mips16-* \
3.216 | mips64-* | mips64el-* \
3.217 + | mips64octeon-* | mips64octeonel-* \
3.218 + | mips64orion-* | mips64orionel-* \
3.219 + | mips64r5900-* | mips64r5900el-* \
3.220 | mips64vr-* | mips64vrel-* \
3.221 - | mips64orion-* | mips64orionel-* \
3.222 | mips64vr4100-* | mips64vr4100el-* \
3.223 | mips64vr4300-* | mips64vr4300el-* \
3.224 | mips64vr5000-* | mips64vr5000el-* \
3.225 @@ -350,27 +399,36 @@
3.226 | mmix-* \
3.227 | mt-* \
3.228 | msp430-* \
3.229 + | nds32-* | nds32le-* | nds32be-* \
3.230 | nios-* | nios2-* \
3.231 | none-* | np1-* | ns16k-* | ns32k-* \
3.232 + | open8-* \
3.233 | orion-* \
3.234 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3.235 - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3.236 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
3.237 | pyramid-* \
3.238 - | romp-* | rs6000-* \
3.239 - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
3.240 + | rl78-* | romp-* | rs6000-* | rx-* \
3.241 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
3.242 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
3.243 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
3.244 | sparclite-* \
3.245 - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
3.246 - | tahoe-* | thumb-* \
3.247 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
3.248 + | tahoe-* \
3.249 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
3.250 + | tile*-* \
3.251 | tron-* \
3.252 - | v850-* | v850e-* | vax-* \
3.253 + | ubicom32-* \
3.254 + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
3.255 + | vax-* \
3.256 | we32k-* \
3.257 - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
3.258 - | xstormy16-* | xtensa-* \
3.259 + | x86-* | x86_64-* | xc16x-* | xps100-* \
3.260 + | xstormy16-* | xtensa*-* \
3.261 | ymp-* \
3.262 - | z8k-*)
3.263 + | z8k-* | z80-*)
3.264 + ;;
3.265 + # Recognize the basic CPU types without company name, with glob match.
3.266 + xtensa*)
3.267 + basic_machine=$basic_machine-unknown
3.268 ;;
3.269 # Recognize the various machine names and aliases which stand
3.270 # for a CPU type and a company and sometimes even an OS.
3.271 @@ -388,7 +446,7 @@
3.272 basic_machine=a29k-amd
3.273 os=-udi
3.274 ;;
3.275 - abacus)
3.276 + abacus)
3.277 basic_machine=abacus-unknown
3.278 ;;
3.279 adobe68k)
3.280 @@ -434,6 +492,10 @@
3.281 basic_machine=m68k-apollo
3.282 os=-bsd
3.283 ;;
3.284 + aros)
3.285 + basic_machine=i386-pc
3.286 + os=-aros
3.287 + ;;
3.288 aux)
3.289 basic_machine=m68k-apple
3.290 os=-aux
3.291 @@ -442,10 +504,35 @@
3.292 basic_machine=ns32k-sequent
3.293 os=-dynix
3.294 ;;
3.295 + blackfin)
3.296 + basic_machine=bfin-unknown
3.297 + os=-linux
3.298 + ;;
3.299 + blackfin-*)
3.300 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
3.301 + os=-linux
3.302 + ;;
3.303 + bluegene*)
3.304 + basic_machine=powerpc-ibm
3.305 + os=-cnk
3.306 + ;;
3.307 + c54x-*)
3.308 + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
3.309 + ;;
3.310 + c55x-*)
3.311 + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
3.312 + ;;
3.313 + c6x-*)
3.314 + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
3.315 + ;;
3.316 c90)
3.317 basic_machine=c90-cray
3.318 os=-unicos
3.319 ;;
3.320 + cegcc)
3.321 + basic_machine=arm-unknown
3.322 + os=-cegcc
3.323 + ;;
3.324 convex-c1)
3.325 basic_machine=c1-convex
3.326 os=-bsd
3.327 @@ -474,8 +561,8 @@
3.328 basic_machine=craynv-cray
3.329 os=-unicosmp
3.330 ;;
3.331 - cr16c)
3.332 - basic_machine=cr16c-unknown
3.333 + cr16 | cr16-*)
3.334 + basic_machine=cr16-unknown
3.335 os=-elf
3.336 ;;
3.337 crds | unos)
3.338 @@ -513,6 +600,10 @@
3.339 basic_machine=m88k-motorola
3.340 os=-sysv3
3.341 ;;
3.342 + dicos)
3.343 + basic_machine=i686-pc
3.344 + os=-dicos
3.345 + ;;
3.346 djgpp)
3.347 basic_machine=i586-pc
3.348 os=-msdosdjgpp
3.349 @@ -667,6 +758,14 @@
3.350 basic_machine=m68k-isi
3.351 os=-sysv
3.352 ;;
3.353 + m68knommu)
3.354 + basic_machine=m68k-unknown
3.355 + os=-linux
3.356 + ;;
3.357 + m68knommu-*)
3.358 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
3.359 + os=-linux
3.360 + ;;
3.361 m88k-omron*)
3.362 basic_machine=m88k-omron
3.363 ;;
3.364 @@ -678,10 +777,17 @@
3.365 basic_machine=ns32k-utek
3.366 os=-sysv
3.367 ;;
3.368 + microblaze)
3.369 + basic_machine=microblaze-xilinx
3.370 + ;;
3.371 mingw32)
3.372 basic_machine=i386-pc
3.373 os=-mingw32
3.374 ;;
3.375 + mingw32ce)
3.376 + basic_machine=arm-unknown
3.377 + os=-mingw32ce
3.378 + ;;
3.379 miniframe)
3.380 basic_machine=m68000-convergent
3.381 ;;
3.382 @@ -714,6 +820,10 @@
3.383 basic_machine=i370-ibm
3.384 os=-mvs
3.385 ;;
3.386 + nacl)
3.387 + basic_machine=le32-unknown
3.388 + os=-nacl
3.389 + ;;
3.390 ncr3000)
3.391 basic_machine=i486-ncr
3.392 os=-sysv4
3.393 @@ -778,6 +888,12 @@
3.394 np1)
3.395 basic_machine=np1-gould
3.396 ;;
3.397 + neo-tandem)
3.398 + basic_machine=neo-tandem
3.399 + ;;
3.400 + nse-tandem)
3.401 + basic_machine=nse-tandem
3.402 + ;;
3.403 nsr-tandem)
3.404 basic_machine=nsr-tandem
3.405 ;;
3.406 @@ -808,6 +924,14 @@
3.407 basic_machine=i860-intel
3.408 os=-osf
3.409 ;;
3.410 + parisc)
3.411 + basic_machine=hppa-unknown
3.412 + os=-linux
3.413 + ;;
3.414 + parisc-*)
3.415 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
3.416 + os=-linux
3.417 + ;;
3.418 pbd)
3.419 basic_machine=sparc-tti
3.420 ;;
3.421 @@ -852,9 +976,10 @@
3.422 ;;
3.423 power) basic_machine=power-ibm
3.424 ;;
3.425 - ppc) basic_machine=powerpc-unknown
3.426 + ppc | ppcbe) basic_machine=powerpc-unknown
3.427 ;;
3.428 - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
3.429 + ppc-* | ppcbe-*)
3.430 + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
3.431 ;;
3.432 ppcle | powerpclittle | ppc-le | powerpc-little)
3.433 basic_machine=powerpcle-unknown
3.434 @@ -909,6 +1034,10 @@
3.435 sb1el)
3.436 basic_machine=mipsisa64sb1el-unknown
3.437 ;;
3.438 + sde)
3.439 + basic_machine=mipsisa32-sde
3.440 + os=-elf
3.441 + ;;
3.442 sei)
3.443 basic_machine=mips-sei
3.444 os=-seiux
3.445 @@ -920,6 +1049,9 @@
3.446 basic_machine=sh-hitachi
3.447 os=-hms
3.448 ;;
3.449 + sh5el)
3.450 + basic_machine=sh5le-unknown
3.451 + ;;
3.452 sh64)
3.453 basic_machine=sh64-unknown
3.454 ;;
3.455 @@ -941,6 +1073,9 @@
3.456 basic_machine=i860-stratus
3.457 os=-sysv4
3.458 ;;
3.459 + strongarm-* | thumb-*)
3.460 + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
3.461 + ;;
3.462 sun2)
3.463 basic_machine=m68000-sun
3.464 ;;
3.465 @@ -997,17 +1132,9 @@
3.466 basic_machine=t90-cray
3.467 os=-unicos
3.468 ;;
3.469 - tic54x | c54x*)
3.470 - basic_machine=tic54x-unknown
3.471 - os=-coff
3.472 - ;;
3.473 - tic55x | c55x*)
3.474 - basic_machine=tic55x-unknown
3.475 - os=-coff
3.476 - ;;
3.477 - tic6x | c6x*)
3.478 - basic_machine=tic6x-unknown
3.479 - os=-coff
3.480 + tile*)
3.481 + basic_machine=$basic_machine-unknown
3.482 + os=-linux-gnu
3.483 ;;
3.484 tx39)
3.485 basic_machine=mipstx39-unknown
3.486 @@ -1076,6 +1203,9 @@
3.487 xps | xps100)
3.488 basic_machine=xps100-honeywell
3.489 ;;
3.490 + xscale-* | xscalee[bl]-*)
3.491 + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
3.492 + ;;
3.493 ymp)
3.494 basic_machine=ymp-cray
3.495 os=-unicos
3.496 @@ -1084,6 +1214,10 @@
3.497 basic_machine=z8k-unknown
3.498 os=-sim
3.499 ;;
3.500 + z80-*-coff)
3.501 + basic_machine=z80-unknown
3.502 + os=-sim
3.503 + ;;
3.504 none)
3.505 basic_machine=none-none
3.506 os=-none
3.507 @@ -1122,7 +1256,7 @@
3.508 we32k)
3.509 basic_machine=we32k-att
3.510 ;;
3.511 - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
3.512 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
3.513 basic_machine=sh-unknown
3.514 ;;
3.515 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
3.516 @@ -1169,9 +1303,12 @@
3.517 if [ x"$os" != x"" ]
3.518 then
3.519 case $os in
3.520 - # First match some system type aliases
3.521 - # that might get confused with valid system types.
3.522 + # First match some system type aliases
3.523 + # that might get confused with valid system types.
3.524 # -solaris* is a basic system type, with this one exception.
3.525 + -auroraux)
3.526 + os=-auroraux
3.527 + ;;
3.528 -solaris1 | -solaris1.*)
3.529 os=`echo $os | sed -e 's|solaris1|sunos4|'`
3.530 ;;
3.531 @@ -1192,10 +1329,11 @@
3.532 # Each alternative MUST END IN A *, to match a version number.
3.533 # -sysv* is not here because it comes later, after sysvr4.
3.534 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
3.535 - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
3.536 - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
3.537 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
3.538 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
3.539 + | -sym* | -kopensolaris* \
3.540 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
3.541 - | -aos* \
3.542 + | -aos* | -aros* \
3.543 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
3.544 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
3.545 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
3.546 @@ -1204,9 +1342,10 @@
3.547 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3.548 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3.549 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3.550 - | -chorusos* | -chorusrdb* \
3.551 + | -chorusos* | -chorusrdb* | -cegcc* \
3.552 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3.553 - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
3.554 + | -mingw32* | -linux-gnu* | -linux-android* \
3.555 + | -linux-newlib* | -linux-uclibc* \
3.556 | -uxpv* | -beos* | -mpeix* | -udk* \
3.557 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3.558 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3.559 @@ -1214,7 +1353,7 @@
3.560 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
3.561 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
3.562 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
3.563 - | -skyos* | -haiku* | -rdos* | -toppers*)
3.564 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
3.565 # Remember, each alternative MUST END IN *, to match a version number.
3.566 ;;
3.567 -qnx*)
3.568 @@ -1253,7 +1392,7 @@
3.569 -opened*)
3.570 os=-openedition
3.571 ;;
3.572 - -os400*)
3.573 + -os400*)
3.574 os=-os400
3.575 ;;
3.576 -wince*)
3.577 @@ -1302,7 +1441,7 @@
3.578 -sinix*)
3.579 os=-sysv4
3.580 ;;
3.581 - -tpf*)
3.582 + -tpf*)
3.583 os=-tpf
3.584 ;;
3.585 -triton*)
3.586 @@ -1344,6 +1483,11 @@
3.587 -zvmoe)
3.588 os=-zvmoe
3.589 ;;
3.590 + -dicos*)
3.591 + os=-dicos
3.592 + ;;
3.593 + -nacl*)
3.594 + ;;
3.595 -none)
3.596 ;;
3.597 *)
3.598 @@ -1366,7 +1510,10 @@
3.599 # system, and we'll never get to this point.
3.600
3.601 case $basic_machine in
3.602 - spu-*)
3.603 + score-*)
3.604 + os=-elf
3.605 + ;;
3.606 + spu-*)
3.607 os=-elf
3.608 ;;
3.609 *-acorn)
3.610 @@ -1378,8 +1525,17 @@
3.611 arm*-semi)
3.612 os=-aout
3.613 ;;
3.614 - c4x-* | tic4x-*)
3.615 - os=-coff
3.616 + c4x-* | tic4x-*)
3.617 + os=-coff
3.618 + ;;
3.619 + tic54x-*)
3.620 + os=-coff
3.621 + ;;
3.622 + tic55x-*)
3.623 + os=-coff
3.624 + ;;
3.625 + tic6x-*)
3.626 + os=-coff
3.627 ;;
3.628 # This must come before the *-dec entry.
3.629 pdp10-*)
3.630 @@ -1406,6 +1562,9 @@
3.631 m68*-cisco)
3.632 os=-aout
3.633 ;;
3.634 + mep-*)
3.635 + os=-elf
3.636 + ;;
3.637 mips*-cisco)
3.638 os=-elf
3.639 ;;
3.640 @@ -1430,7 +1589,7 @@
3.641 *-ibm)
3.642 os=-aix
3.643 ;;
3.644 - *-knuth)
3.645 + *-knuth)
3.646 os=-mmixware
3.647 ;;
3.648 *-wec)
3.649 @@ -1535,7 +1694,7 @@
3.650 -sunos*)
3.651 vendor=sun
3.652 ;;
3.653 - -aix*)
3.654 + -cnk*|-aix*)
3.655 vendor=ibm
3.656 ;;
3.657 -beos*)
4.1 --- a/configure Fri Dec 16 10:08:45 2011 +1000
4.2 +++ b/configure Wed Dec 21 12:15:06 2011 +1000
4.3 @@ -7649,7 +7649,7 @@
4.4 if test -n "$_GOBJC_VERSION"; then
4.5 { echo "$as_me:$LINENO: result: GCC" >&5
4.6 echo "${ECHO_T}GCC" >&6; }
4.7 - OBJCOPT="-O2 -msse2 -mfpmath=sse"
4.8 + OBJCOPT="-O2"
4.9 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
4.10 else
4.11 { echo "$as_me:$LINENO: result: Unknown" >&5
4.12 @@ -7663,6 +7663,126 @@
4.13 fi
4.14
4.15
4.16 +ac_ext=m
4.17 +ac_cpp='$OBJCPP $CPPFLAGS'
4.18 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.19 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.20 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
4.21 +
4.22 +{ echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
4.23 +echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
4.24 +save_OBJCFLAGS="$OBJCFLAGS"
4.25 +OBJCFLAGS="-msse2 $OBJCFLAGS"
4.26 +cat >conftest.$ac_ext <<_ACEOF
4.27 +
4.28 + /* confdefs.h. */
4.29 +_ACEOF
4.30 +cat confdefs.h >>conftest.$ac_ext
4.31 +cat >>conftest.$ac_ext <<_ACEOF
4.32 +/* end confdefs.h. */
4.33 +int main() { return 0; }
4.34 +_ACEOF
4.35 +rm -f conftest.$ac_objext
4.36 +if { (ac_try="$ac_compile"
4.37 +case "(($ac_try" in
4.38 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4.39 + *) ac_try_echo=$ac_try;;
4.40 +esac
4.41 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4.42 + (eval "$ac_compile") 2>conftest.er1
4.43 + ac_status=$?
4.44 + grep -v '^ *+' conftest.er1 >conftest.err
4.45 + rm -f conftest.er1
4.46 + cat conftest.err >&5
4.47 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4.48 + (exit $ac_status); } && {
4.49 + test -z "$ac_objc_werror_flag" ||
4.50 + test ! -s conftest.err
4.51 + } && test -s conftest.$ac_objext; then
4.52 +
4.53 + { echo "$as_me:$LINENO: result: yes" >&5
4.54 +echo "${ECHO_T}yes" >&6; }
4.55 +
4.56 +else
4.57 + echo "$as_me: failed program was:" >&5
4.58 +sed 's/^/| /' conftest.$ac_ext >&5
4.59 +
4.60 +
4.61 + OBJCFLAGS="$save_OBJCFLAGS"
4.62 + { echo "$as_me:$LINENO: result: no" >&5
4.63 +echo "${ECHO_T}no" >&6; }
4.64 +
4.65 +fi
4.66 +
4.67 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4.68 +ac_ext=m
4.69 +ac_cpp='$OBJCPP $CPPFLAGS'
4.70 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.71 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.72 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
4.73 +
4.74 +
4.75 +
4.76 +ac_ext=m
4.77 +ac_cpp='$OBJCPP $CPPFLAGS'
4.78 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.79 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.80 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
4.81 +
4.82 +{ echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
4.83 +echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
4.84 +save_OBJCFLAGS="$OBJCFLAGS"
4.85 +OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
4.86 +cat >conftest.$ac_ext <<_ACEOF
4.87 +
4.88 + /* confdefs.h. */
4.89 +_ACEOF
4.90 +cat confdefs.h >>conftest.$ac_ext
4.91 +cat >>conftest.$ac_ext <<_ACEOF
4.92 +/* end confdefs.h. */
4.93 +int main() { return 0; }
4.94 +_ACEOF
4.95 +rm -f conftest.$ac_objext
4.96 +if { (ac_try="$ac_compile"
4.97 +case "(($ac_try" in
4.98 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4.99 + *) ac_try_echo=$ac_try;;
4.100 +esac
4.101 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4.102 + (eval "$ac_compile") 2>conftest.er1
4.103 + ac_status=$?
4.104 + grep -v '^ *+' conftest.er1 >conftest.err
4.105 + rm -f conftest.er1
4.106 + cat conftest.err >&5
4.107 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4.108 + (exit $ac_status); } && {
4.109 + test -z "$ac_objc_werror_flag" ||
4.110 + test ! -s conftest.err
4.111 + } && test -s conftest.$ac_objext; then
4.112 +
4.113 + { echo "$as_me:$LINENO: result: yes" >&5
4.114 +echo "${ECHO_T}yes" >&6; }
4.115 +
4.116 +else
4.117 + echo "$as_me: failed program was:" >&5
4.118 +sed 's/^/| /' conftest.$ac_ext >&5
4.119 +
4.120 +
4.121 + OBJCFLAGS="$save_OBJCFLAGS"
4.122 + { echo "$as_me:$LINENO: result: no" >&5
4.123 +echo "${ECHO_T}no" >&6; }
4.124 +
4.125 +fi
4.126 +
4.127 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4.128 +ac_ext=m
4.129 +ac_cpp='$OBJCPP $CPPFLAGS'
4.130 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.131 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.132 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
4.133 +
4.134 +
4.135 +
4.136 else
4.137 echo "$as_me: failed program was:" >&5
4.138 sed 's/^/| /' conftest.$ac_ext >&5
4.139 @@ -7721,7 +7841,7 @@
4.140 elif test -n "$_GCC_VERSION"; then
4.141 { echo "$as_me:$LINENO: result: GCC" >&5
4.142 echo "${ECHO_T}GCC" >&6; }
4.143 - CCOPT="-O2 -msse2 -mfpmath=sse"
4.144 + CCOPT="-O2"
4.145 CFLAGS="$CFLAGS -fno-strict-aliasing"
4.146 else
4.147 { echo "$as_me:$LINENO: result: Unknown" >&5
4.148 @@ -7730,6 +7850,126 @@
4.149 fi
4.150
4.151
4.152 +ac_ext=c
4.153 +ac_cpp='$CPP $CPPFLAGS'
4.154 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.155 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.156 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4.157 +
4.158 +{ echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
4.159 +echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
4.160 +save_CFLAGS="$CFLAGS"
4.161 +CFLAGS="-msse2 $CFLAGS"
4.162 +cat >conftest.$ac_ext <<_ACEOF
4.163 +
4.164 + /* confdefs.h. */
4.165 +_ACEOF
4.166 +cat confdefs.h >>conftest.$ac_ext
4.167 +cat >>conftest.$ac_ext <<_ACEOF
4.168 +/* end confdefs.h. */
4.169 +int main() { return 0; }
4.170 +_ACEOF
4.171 +rm -f conftest.$ac_objext
4.172 +if { (ac_try="$ac_compile"
4.173 +case "(($ac_try" in
4.174 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4.175 + *) ac_try_echo=$ac_try;;
4.176 +esac
4.177 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4.178 + (eval "$ac_compile") 2>conftest.er1
4.179 + ac_status=$?
4.180 + grep -v '^ *+' conftest.er1 >conftest.err
4.181 + rm -f conftest.er1
4.182 + cat conftest.err >&5
4.183 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4.184 + (exit $ac_status); } && {
4.185 + test -z "$ac_c_werror_flag" ||
4.186 + test ! -s conftest.err
4.187 + } && test -s conftest.$ac_objext; then
4.188 +
4.189 + { echo "$as_me:$LINENO: result: yes" >&5
4.190 +echo "${ECHO_T}yes" >&6; }
4.191 +
4.192 +else
4.193 + echo "$as_me: failed program was:" >&5
4.194 +sed 's/^/| /' conftest.$ac_ext >&5
4.195 +
4.196 +
4.197 + CFLAGS="$save_CFLAGS"
4.198 + { echo "$as_me:$LINENO: result: no" >&5
4.199 +echo "${ECHO_T}no" >&6; }
4.200 +
4.201 +fi
4.202 +
4.203 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4.204 +ac_ext=c
4.205 +ac_cpp='$CPP $CPPFLAGS'
4.206 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.207 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.208 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4.209 +
4.210 +
4.211 +
4.212 +ac_ext=c
4.213 +ac_cpp='$CPP $CPPFLAGS'
4.214 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.215 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.216 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4.217 +
4.218 +{ echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
4.219 +echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
4.220 +save_CFLAGS="$CFLAGS"
4.221 +CFLAGS="-mfpmath=sse $CFLAGS"
4.222 +cat >conftest.$ac_ext <<_ACEOF
4.223 +
4.224 + /* confdefs.h. */
4.225 +_ACEOF
4.226 +cat confdefs.h >>conftest.$ac_ext
4.227 +cat >>conftest.$ac_ext <<_ACEOF
4.228 +/* end confdefs.h. */
4.229 +int main() { return 0; }
4.230 +_ACEOF
4.231 +rm -f conftest.$ac_objext
4.232 +if { (ac_try="$ac_compile"
4.233 +case "(($ac_try" in
4.234 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4.235 + *) ac_try_echo=$ac_try;;
4.236 +esac
4.237 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4.238 + (eval "$ac_compile") 2>conftest.er1
4.239 + ac_status=$?
4.240 + grep -v '^ *+' conftest.er1 >conftest.err
4.241 + rm -f conftest.er1
4.242 + cat conftest.err >&5
4.243 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4.244 + (exit $ac_status); } && {
4.245 + test -z "$ac_c_werror_flag" ||
4.246 + test ! -s conftest.err
4.247 + } && test -s conftest.$ac_objext; then
4.248 +
4.249 + { echo "$as_me:$LINENO: result: yes" >&5
4.250 +echo "${ECHO_T}yes" >&6; }
4.251 +
4.252 +else
4.253 + echo "$as_me: failed program was:" >&5
4.254 +sed 's/^/| /' conftest.$ac_ext >&5
4.255 +
4.256 +
4.257 + CFLAGS="$save_CFLAGS"
4.258 + { echo "$as_me:$LINENO: result: no" >&5
4.259 +echo "${ECHO_T}no" >&6; }
4.260 +
4.261 +fi
4.262 +
4.263 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4.264 +ac_ext=c
4.265 +ac_cpp='$CPP $CPPFLAGS'
4.266 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4.267 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4.268 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4.269 +
4.270 +
4.271 +
4.272 if test "x$enable_optimized" = "xyes"; then
4.273 CFLAGS="$CFLAGS $CCOPT"
4.274 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
4.275 @@ -7997,7 +8237,12 @@
4.276 old_LDFLAGS="$LDFLAGS"
4.277 LDFLAGS="$LDFLAGS -rdynamic"
4.278 cat >conftest.$ac_ext <<_ACEOF
4.279 -int main(){ return 0; }
4.280 +/* confdefs.h. */
4.281 +_ACEOF
4.282 +cat confdefs.h >>conftest.$ac_ext
4.283 +cat >>conftest.$ac_ext <<_ACEOF
4.284 +/* end confdefs.h. */
4.285 +int main() { return 0; }
4.286 _ACEOF
4.287 rm -f conftest.$ac_objext conftest$ac_exeext
4.288 if { (ac_try="$ac_link"
4.289 @@ -8056,11 +8301,10 @@
4.290 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
4.291 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
4.292 if test "$cross_compiling" = yes; then
4.293 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4.294 -See \`config.log' for more details." >&5
4.295 -echo "$as_me: error: cannot run test program while cross compiling
4.296 -See \`config.log' for more details." >&2;}
4.297 - { (exit 1); exit 1; }; }
4.298 +
4.299 + { echo "$as_me:$LINENO: result: no" >&5
4.300 +echo "${ECHO_T}no" >&6; }
4.301 +
4.302 else
4.303 cat >conftest.$ac_ext <<_ACEOF
4.304
4.305 @@ -8185,11 +8429,11 @@
4.306 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
4.307 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
4.308 if test "$cross_compiling" = yes; then
4.309 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4.310 -See \`config.log' for more details." >&5
4.311 -echo "$as_me: error: cannot run test program while cross compiling
4.312 -See \`config.log' for more details." >&2;}
4.313 - { (exit 1); exit 1; }; }
4.314 +
4.315 + { echo "$as_me:$LINENO: result: no" >&5
4.316 +echo "${ECHO_T}no" >&6; }
4.317 + { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
4.318 +echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
4.319 else
4.320 cat >conftest.$ac_ext <<_ACEOF
4.321
5.1 --- a/configure.in Fri Dec 16 10:08:45 2011 +1000
5.2 +++ b/configure.in Wed Dec 21 12:15:06 2011 +1000
5.3 @@ -88,9 +88,11 @@
5.4 fi
5.5 ], [], [AC_INCLUDES_DEFAULT])
5.6
5.7 - AC_OBJC_VERSION([ OBJCOPT="-O2 -msse2 -mfpmath=sse"
5.8 + AC_OBJC_VERSION([ OBJCOPT="-O2"
5.9 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing" ],
5.10 [ OBJCOPT="-O2" ], [] )
5.11 + AC_CHECK_OBJCFLAG([-msse2])
5.12 + AC_CHECK_OBJCFLAG([-mfpmath=sse])
5.13 ])
5.14
5.15 AM_CONDITIONAL(GUI_COCOA, [test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"])
5.16 @@ -104,11 +106,13 @@
5.17 AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
5.18
5.19 STDCFLAG="-std=c99"
5.20 -AC_CC_VERSION([ CCOPT="-O2 -msse2 -mfpmath=sse"
5.21 +AC_CC_VERSION([ CCOPT="-O2"
5.22 CFLAGS="$CFLAGS -fno-strict-aliasing" ],
5.23 [ CCOPT="$CFLAGS -fast"
5.24 CFLAGS="$CFLAGS -fno-strict-aliasing" ],
5.25 [ CCOPT="$CFLAGS -O2" ])
5.26 +AC_CHECK_CFLAG([-msse2])
5.27 +AC_CHECK_CFLAG([-mfpmath=sse])
5.28
5.29 if test "x$enable_optimized" = "xyes"; then
5.30 CFLAGS="$CFLAGS $CCOPT"
5.31 @@ -160,7 +164,7 @@
5.32 AC_MSG_CHECKING([if linker accepts -rdynamic])
5.33 old_LDFLAGS="$LDFLAGS"
5.34 LDFLAGS="$LDFLAGS -rdynamic"
5.35 - AC_LINK_IFELSE( [int main(){ return 0; }], [
5.36 + AC_LINK_IFELSE( [AC_LANG_SOURCE([int main() { return 0; }])], [
5.37 LXDREAMLDFLAGS="-rdynamic"
5.38 AC_MSG_RESULT([yes])
5.39 ], [
.