diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-13 21:27:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 21:27:50 (GMT) |
commit | 194a9526d8ee6abbbe58ef48520ec87a7e83f327 (patch) | |
tree | ff8b22ba8a475d7da5a5b5a6ca75316bd9d44c5d /configure | |
parent | aac29af6785712019d34f1a7f15b3c408a4f68ae (diff) | |
download | cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.zip cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.tar.gz cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.tar.bz2 |
bpo-45440: Require math.h isinf() to build (GH-28894)
Building Python now requires a C99 <math.h> header file providing
isinf(), isnan() and isfinite() functions.
Remove the Py_FORCE_DOUBLE() macro. It was used by the
Py_IS_INFINITY() macro.
Changes:
* Remove Py_IS_NAN(), Py_IS_INFINITY() and Py_IS_FINITE()
in PC/pyconfig.h.
* Remove the _Py_force_double() function.
* configure no longer checks if math.h defines isinf(), isnan() and
isfinite().
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 34 |
1 files changed, 0 insertions, 34 deletions
@@ -15090,40 +15090,6 @@ _ACEOF fi done -ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> -" -if test "x$ac_cv_have_decl_isinf" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISINF $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> -" -if test "x$ac_cv_have_decl_isnan" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISNAN $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> -" -if test "x$ac_cv_have_decl_isfinite" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISFINITE $ac_have_decl -_ACEOF - # For multiprocessing module, check that sem_open # actually works. For FreeBSD versions <= 7.2, |