mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Configure check for double rounding should take BASECFLAGS into account
This commit is contained in:
parent
52462c3185
commit
99abd145dc
2 changed files with 10 additions and 9 deletions
12
configure
vendored
12
configure
vendored
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 75131 .
|
# From configure.in Revision: 75658 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for python 2.7.
|
# Generated by GNU Autoconf 2.61 for python 2.7.
|
||||||
#
|
#
|
||||||
|
@ -23533,10 +23533,9 @@ fi
|
||||||
# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
|
# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
|
||||||
{ echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
|
{ echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
|
||||||
echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
|
echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
|
||||||
if test "${ac_cv_x87_double_rounding+set}" = set; then
|
# $BASECFLAGS may affect the result
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
ac_save_cc="$CC"
|
||||||
else
|
CC="$CC $BASECFLAGS"
|
||||||
|
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
ac_cv_x87_double_rounding=no
|
ac_cv_x87_double_rounding=no
|
||||||
else
|
else
|
||||||
|
@ -23600,8 +23599,7 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
fi
|
CC="$ac_save_cc"
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
|
{ echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
|
||||||
echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
|
echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
|
||||||
if test "$ac_cv_x87_double_rounding" = yes
|
if test "$ac_cv_x87_double_rounding" = yes
|
||||||
|
|
|
@ -3348,7 +3348,9 @@ fi
|
||||||
# mode is round-to-nearest and double rounding issues are present, and
|
# mode is round-to-nearest and double rounding issues are present, and
|
||||||
# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
|
# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
|
||||||
AC_MSG_CHECKING(for x87-style double rounding)
|
AC_MSG_CHECKING(for x87-style double rounding)
|
||||||
AC_CACHE_VAL(ac_cv_x87_double_rounding, [
|
# $BASECFLAGS may affect the result
|
||||||
|
ac_save_cc="$CC"
|
||||||
|
CC="$CC $BASECFLAGS"
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -3371,7 +3373,8 @@ int main() {
|
||||||
],
|
],
|
||||||
ac_cv_x87_double_rounding=no,
|
ac_cv_x87_double_rounding=no,
|
||||||
ac_cv_x87_double_rounding=yes,
|
ac_cv_x87_double_rounding=yes,
|
||||||
ac_cv_x87_double_rounding=no)])
|
ac_cv_x87_double_rounding=no)
|
||||||
|
CC="$ac_save_cc"
|
||||||
AC_MSG_RESULT($ac_cv_x87_double_rounding)
|
AC_MSG_RESULT($ac_cv_x87_double_rounding)
|
||||||
if test "$ac_cv_x87_double_rounding" = yes
|
if test "$ac_cv_x87_double_rounding" = yes
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue