Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-157695: Fix acospi() detection in configure.ac
Include <math.h> to check for acospi() and similar functions.
  • Loading branch information
vstinner committed Sep 22, 2026
commit 2e33f24c68bb37edddfee3a6484081f3f70f8cff
14 changes: 7 additions & 7 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6555,13 +6555,13 @@ AC_CHECK_FUNCS(
[AC_MSG_ERROR([Python requires C99 compatible libm])]
)

PY_CHECK_FUNC_PRIVATE([acospi])
PY_CHECK_FUNC_PRIVATE([asinpi])
PY_CHECK_FUNC_PRIVATE([atanpi])
PY_CHECK_FUNC_PRIVATE([atan2pi])
PY_CHECK_FUNC_PRIVATE([cospi])
PY_CHECK_FUNC_PRIVATE([sinpi])
PY_CHECK_FUNC_PRIVATE([tanpi])
PY_CHECK_FUNC_PRIVATE([acospi], [@%:@include <math.h>])
PY_CHECK_FUNC_PRIVATE([asinpi], [@%:@include <math.h>])
PY_CHECK_FUNC_PRIVATE([atanpi], [@%:@include <math.h>])
PY_CHECK_FUNC_PRIVATE([atan2pi], [@%:@include <math.h>])
PY_CHECK_FUNC_PRIVATE([cospi], [@%:@include <math.h>])
PY_CHECK_FUNC_PRIVATE([sinpi], [@%:@include <math.h>])
PY_CHECK_FUNC_PRIVATE([tanpi], [@%:@include <math.h>])
LIBS=$LIBS_SAVE

dnl For multiprocessing module, check that sem_open
Expand Down
Loading