diff options
author | David Cournapeau <cournape@gmail.com> | 2008-10-03 07:21:15 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-10-03 07:21:15 +0000 |
commit | 48a01ee3a7b9a80a65db254113397fd0a6a7d8aa (patch) | |
tree | 4be69f7c7788beaa33df84c1ade8a1966f6d6a3d /numpy | |
parent | 384e892dc5b44258af0906c48513ec7634a4eb8a (diff) | |
download | numpy-48a01ee3a7b9a80a65db254113397fd0a6a7d8aa.tar.gz |
Add an help function to check a list of functions in scons build.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/SConscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index bc3c15993..d8531ce1b 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -145,6 +145,15 @@ if not config.CheckFuncsAtOnce(mandatory_funcs): raise SystemError("One of the required function to build numpy is not" " available (the list is %s)." % str(mandatory_funcs)) +def check_funcs(funcs): + # Use check_funcs_once first, and if it does not work, test func per + # func. Return success only if all the functions are available + st = config.CheckFuncsAtOnce(func) + if not st: + # Global check failed, check func per func + for f in funcs: + st = config.CheckFunc(f, language = 'C') + 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>") |