diff options
author | David Cournapeau <cournape@gmail.com> | 2008-10-03 07:21:46 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-10-03 07:21:46 +0000 |
commit | f1cd9b0ae47b6f3a880e6d7d34c37ff8437f683d (patch) | |
tree | ef3c3d3851337b6030b9eb1992bf8951b7da81cb /numpy | |
parent | 27f4075d264ef01d17f328e643d48782f673c53c (diff) | |
download | numpy-f1cd9b0ae47b6f3a880e6d7d34c37ff8437f683d.tar.gz |
Check for some optional, C99 double math functions.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/SConscript | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index d7a1cd608..d9d6c7b9d 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -154,6 +154,13 @@ def check_funcs(funcs): for f in funcs: st = config.CheckFunc(f, language = 'C') +# XXX: we do not test for hypot because python checks for it (HAVE_HYPOT in +# python.h... I wish they would clean their public headers someday) +optional_stdfuncs = ["expm1", "log1p", "acosh", "asinh", "atanh", + "rint", "trunc"] + +check_funcs(optional_stdfuncs) + def check_func(f): """Check that f is available in mlib, and add the symbol appropriately. """ st = config.CheckDeclaration(f, language = 'C', includes = "#include <math.h>") |