Index: configure =================================================================== --- configure (revision 57296) +++ configure (working copy) @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 56636 . +# From configure.in Revision: 57279 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for python 2.6. # @@ -3898,7 +3898,50 @@ ;; # is there any other compiler on Darwin besides gcc? Darwin*) - BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" + echo "$as_me:$LINENO: checking whether $CC accepts -mno-fused-madd" >&5 +echo $ECHO_N "checking whether $CC accepts -mno-fused-madd... $ECHO_C" >&6 + ac_save_cc="$CC" + CC="$CC -mno-fused-madd" + if test "$cross_compiling" = yes; then + ac_cv_no_fused_madd_ok=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int main() { return 0; } +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_no_fused_madd_ok=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_no_fused_madd_ok=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + CC="$ac_save_cc" + echo "$as_me:$LINENO: result: $ac_cv_no_fused_madd_ok" >&5 +echo "${ECHO_T}$ac_cv_no_fused_madd_ok" >&6 + if test $ac_cv_no_fused_madd_ok = yes + then + BASECFLAGS="$BASECFLAGS -mno-fused-madd" + fi if test "${enable_universalsdk}"; then BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" fi Index: configure.in =================================================================== --- configure.in (revision 57296) +++ configure.in (working copy) @@ -818,7 +818,19 @@ ;; # is there any other compiler on Darwin besides gcc? Darwin*) - BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" + AC_MSG_CHECKING(whether $CC accepts -mno-fused-madd) + ac_save_cc="$CC" + CC="$CC -mno-fused-madd" + AC_TRY_RUN([int main() { return 0; }], + ac_cv_no_fused_madd_ok=yes, + ac_cv_no_fused_madd_ok=no, + ac_cv_no_fused_madd_ok=no) + CC="$ac_save_cc" + AC_MSG_RESULT($ac_cv_no_fused_madd_ok) + if test $ac_cv_no_fused_madd_ok = yes + then + BASECFLAGS="$BASECFLAGS -mno-fused-madd" + fi if test "${enable_universalsdk}"; then BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" fi