Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1199:62d0a21fac1c
prev1198:407659e01ef0
next1200:3b2097efa97d
author nkeynes
date Wed Dec 21 12:15:06 2011 +1000 (9 years ago)
permissions -rw-r--r--
last change 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
file annotate diff log raw
1.1 --- a/configure Fri Dec 16 10:08:45 2011 +1000
1.2 +++ b/configure Wed Dec 21 12:15:06 2011 +1000
1.3 @@ -7649,7 +7649,7 @@
1.4 if test -n "$_GOBJC_VERSION"; then
1.5 { echo "$as_me:$LINENO: result: GCC" >&5
1.6 echo "${ECHO_T}GCC" >&6; }
1.7 - OBJCOPT="-O2 -msse2 -mfpmath=sse"
1.8 + OBJCOPT="-O2"
1.9 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
1.10 else
1.11 { echo "$as_me:$LINENO: result: Unknown" >&5
1.12 @@ -7663,6 +7663,126 @@
1.13 fi
1.14
1.15
1.16 +ac_ext=m
1.17 +ac_cpp='$OBJCPP $CPPFLAGS'
1.18 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.19 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.20 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.21 +
1.22 +{ echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
1.23 +echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
1.24 +save_OBJCFLAGS="$OBJCFLAGS"
1.25 +OBJCFLAGS="-msse2 $OBJCFLAGS"
1.26 +cat >conftest.$ac_ext <<_ACEOF
1.27 +
1.28 + /* confdefs.h. */
1.29 +_ACEOF
1.30 +cat confdefs.h >>conftest.$ac_ext
1.31 +cat >>conftest.$ac_ext <<_ACEOF
1.32 +/* end confdefs.h. */
1.33 +int main() { return 0; }
1.34 +_ACEOF
1.35 +rm -f conftest.$ac_objext
1.36 +if { (ac_try="$ac_compile"
1.37 +case "(($ac_try" in
1.38 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.39 + *) ac_try_echo=$ac_try;;
1.40 +esac
1.41 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.42 + (eval "$ac_compile") 2>conftest.er1
1.43 + ac_status=$?
1.44 + grep -v '^ *+' conftest.er1 >conftest.err
1.45 + rm -f conftest.er1
1.46 + cat conftest.err >&5
1.47 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.48 + (exit $ac_status); } && {
1.49 + test -z "$ac_objc_werror_flag" ||
1.50 + test ! -s conftest.err
1.51 + } && test -s conftest.$ac_objext; then
1.52 +
1.53 + { echo "$as_me:$LINENO: result: yes" >&5
1.54 +echo "${ECHO_T}yes" >&6; }
1.55 +
1.56 +else
1.57 + echo "$as_me: failed program was:" >&5
1.58 +sed 's/^/| /' conftest.$ac_ext >&5
1.59 +
1.60 +
1.61 + OBJCFLAGS="$save_OBJCFLAGS"
1.62 + { echo "$as_me:$LINENO: result: no" >&5
1.63 +echo "${ECHO_T}no" >&6; }
1.64 +
1.65 +fi
1.66 +
1.67 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.68 +ac_ext=m
1.69 +ac_cpp='$OBJCPP $CPPFLAGS'
1.70 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.71 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.72 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.73 +
1.74 +
1.75 +
1.76 +ac_ext=m
1.77 +ac_cpp='$OBJCPP $CPPFLAGS'
1.78 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.79 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.80 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.81 +
1.82 +{ echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
1.83 +echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
1.84 +save_OBJCFLAGS="$OBJCFLAGS"
1.85 +OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
1.86 +cat >conftest.$ac_ext <<_ACEOF
1.87 +
1.88 + /* confdefs.h. */
1.89 +_ACEOF
1.90 +cat confdefs.h >>conftest.$ac_ext
1.91 +cat >>conftest.$ac_ext <<_ACEOF
1.92 +/* end confdefs.h. */
1.93 +int main() { return 0; }
1.94 +_ACEOF
1.95 +rm -f conftest.$ac_objext
1.96 +if { (ac_try="$ac_compile"
1.97 +case "(($ac_try" in
1.98 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.99 + *) ac_try_echo=$ac_try;;
1.100 +esac
1.101 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.102 + (eval "$ac_compile") 2>conftest.er1
1.103 + ac_status=$?
1.104 + grep -v '^ *+' conftest.er1 >conftest.err
1.105 + rm -f conftest.er1
1.106 + cat conftest.err >&5
1.107 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.108 + (exit $ac_status); } && {
1.109 + test -z "$ac_objc_werror_flag" ||
1.110 + test ! -s conftest.err
1.111 + } && test -s conftest.$ac_objext; then
1.112 +
1.113 + { echo "$as_me:$LINENO: result: yes" >&5
1.114 +echo "${ECHO_T}yes" >&6; }
1.115 +
1.116 +else
1.117 + echo "$as_me: failed program was:" >&5
1.118 +sed 's/^/| /' conftest.$ac_ext >&5
1.119 +
1.120 +
1.121 + OBJCFLAGS="$save_OBJCFLAGS"
1.122 + { echo "$as_me:$LINENO: result: no" >&5
1.123 +echo "${ECHO_T}no" >&6; }
1.124 +
1.125 +fi
1.126 +
1.127 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 +ac_ext=m
1.129 +ac_cpp='$OBJCPP $CPPFLAGS'
1.130 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.131 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.132 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.133 +
1.134 +
1.135 +
1.136 else
1.137 echo "$as_me: failed program was:" >&5
1.138 sed 's/^/| /' conftest.$ac_ext >&5
1.139 @@ -7721,7 +7841,7 @@
1.140 elif test -n "$_GCC_VERSION"; then
1.141 { echo "$as_me:$LINENO: result: GCC" >&5
1.142 echo "${ECHO_T}GCC" >&6; }
1.143 - CCOPT="-O2 -msse2 -mfpmath=sse"
1.144 + CCOPT="-O2"
1.145 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.146 else
1.147 { echo "$as_me:$LINENO: result: Unknown" >&5
1.148 @@ -7730,6 +7850,126 @@
1.149 fi
1.150
1.151
1.152 +ac_ext=c
1.153 +ac_cpp='$CPP $CPPFLAGS'
1.154 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.155 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.156 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.157 +
1.158 +{ echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
1.159 +echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
1.160 +save_CFLAGS="$CFLAGS"
1.161 +CFLAGS="-msse2 $CFLAGS"
1.162 +cat >conftest.$ac_ext <<_ACEOF
1.163 +
1.164 + /* confdefs.h. */
1.165 +_ACEOF
1.166 +cat confdefs.h >>conftest.$ac_ext
1.167 +cat >>conftest.$ac_ext <<_ACEOF
1.168 +/* end confdefs.h. */
1.169 +int main() { return 0; }
1.170 +_ACEOF
1.171 +rm -f conftest.$ac_objext
1.172 +if { (ac_try="$ac_compile"
1.173 +case "(($ac_try" in
1.174 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.175 + *) ac_try_echo=$ac_try;;
1.176 +esac
1.177 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.178 + (eval "$ac_compile") 2>conftest.er1
1.179 + ac_status=$?
1.180 + grep -v '^ *+' conftest.er1 >conftest.err
1.181 + rm -f conftest.er1
1.182 + cat conftest.err >&5
1.183 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.184 + (exit $ac_status); } && {
1.185 + test -z "$ac_c_werror_flag" ||
1.186 + test ! -s conftest.err
1.187 + } && test -s conftest.$ac_objext; then
1.188 +
1.189 + { echo "$as_me:$LINENO: result: yes" >&5
1.190 +echo "${ECHO_T}yes" >&6; }
1.191 +
1.192 +else
1.193 + echo "$as_me: failed program was:" >&5
1.194 +sed 's/^/| /' conftest.$ac_ext >&5
1.195 +
1.196 +
1.197 + CFLAGS="$save_CFLAGS"
1.198 + { echo "$as_me:$LINENO: result: no" >&5
1.199 +echo "${ECHO_T}no" >&6; }
1.200 +
1.201 +fi
1.202 +
1.203 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.204 +ac_ext=c
1.205 +ac_cpp='$CPP $CPPFLAGS'
1.206 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.207 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.208 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.209 +
1.210 +
1.211 +
1.212 +ac_ext=c
1.213 +ac_cpp='$CPP $CPPFLAGS'
1.214 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.215 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.216 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.217 +
1.218 +{ echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
1.219 +echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
1.220 +save_CFLAGS="$CFLAGS"
1.221 +CFLAGS="-mfpmath=sse $CFLAGS"
1.222 +cat >conftest.$ac_ext <<_ACEOF
1.223 +
1.224 + /* confdefs.h. */
1.225 +_ACEOF
1.226 +cat confdefs.h >>conftest.$ac_ext
1.227 +cat >>conftest.$ac_ext <<_ACEOF
1.228 +/* end confdefs.h. */
1.229 +int main() { return 0; }
1.230 +_ACEOF
1.231 +rm -f conftest.$ac_objext
1.232 +if { (ac_try="$ac_compile"
1.233 +case "(($ac_try" in
1.234 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.235 + *) ac_try_echo=$ac_try;;
1.236 +esac
1.237 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.238 + (eval "$ac_compile") 2>conftest.er1
1.239 + ac_status=$?
1.240 + grep -v '^ *+' conftest.er1 >conftest.err
1.241 + rm -f conftest.er1
1.242 + cat conftest.err >&5
1.243 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.244 + (exit $ac_status); } && {
1.245 + test -z "$ac_c_werror_flag" ||
1.246 + test ! -s conftest.err
1.247 + } && test -s conftest.$ac_objext; then
1.248 +
1.249 + { echo "$as_me:$LINENO: result: yes" >&5
1.250 +echo "${ECHO_T}yes" >&6; }
1.251 +
1.252 +else
1.253 + echo "$as_me: failed program was:" >&5
1.254 +sed 's/^/| /' conftest.$ac_ext >&5
1.255 +
1.256 +
1.257 + CFLAGS="$save_CFLAGS"
1.258 + { echo "$as_me:$LINENO: result: no" >&5
1.259 +echo "${ECHO_T}no" >&6; }
1.260 +
1.261 +fi
1.262 +
1.263 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.264 +ac_ext=c
1.265 +ac_cpp='$CPP $CPPFLAGS'
1.266 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.267 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.268 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.269 +
1.270 +
1.271 +
1.272 if test "x$enable_optimized" = "xyes"; then
1.273 CFLAGS="$CFLAGS $CCOPT"
1.274 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
1.275 @@ -7997,7 +8237,12 @@
1.276 old_LDFLAGS="$LDFLAGS"
1.277 LDFLAGS="$LDFLAGS -rdynamic"
1.278 cat >conftest.$ac_ext <<_ACEOF
1.279 -int main(){ return 0; }
1.280 +/* confdefs.h. */
1.281 +_ACEOF
1.282 +cat confdefs.h >>conftest.$ac_ext
1.283 +cat >>conftest.$ac_ext <<_ACEOF
1.284 +/* end confdefs.h. */
1.285 +int main() { return 0; }
1.286 _ACEOF
1.287 rm -f conftest.$ac_objext conftest$ac_exeext
1.288 if { (ac_try="$ac_link"
1.289 @@ -8056,11 +8301,10 @@
1.290 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
1.291 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
1.292 if test "$cross_compiling" = yes; then
1.293 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1.294 -See \`config.log' for more details." >&5
1.295 -echo "$as_me: error: cannot run test program while cross compiling
1.296 -See \`config.log' for more details." >&2;}
1.297 - { (exit 1); exit 1; }; }
1.298 +
1.299 + { echo "$as_me:$LINENO: result: no" >&5
1.300 +echo "${ECHO_T}no" >&6; }
1.301 +
1.302 else
1.303 cat >conftest.$ac_ext <<_ACEOF
1.304
1.305 @@ -8185,11 +8429,11 @@
1.306 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
1.307 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
1.308 if test "$cross_compiling" = yes; then
1.309 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1.310 -See \`config.log' for more details." >&5
1.311 -echo "$as_me: error: cannot run test program while cross compiling
1.312 -See \`config.log' for more details." >&2;}
1.313 - { (exit 1); exit 1; }; }
1.314 +
1.315 + { echo "$as_me:$LINENO: result: no" >&5
1.316 +echo "${ECHO_T}no" >&6; }
1.317 + { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
1.318 +echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
1.319 else
1.320 cat >conftest.$ac_ext <<_ACEOF
1.321
.