summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-12-08 07:33:28 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-12-08 07:33:28 +0000
commit0910a8e1aa858c58b3dce6930d4a0160b348b0da (patch)
treea9f34cd6c70be5872315f200c0531fac2a97d81d
parent28be4a6b073efb779c2b488601b68272831c2b9d (diff)
downloadnumpy-0910a8e1aa858c58b3dce6930d4a0160b348b0da.tar.gz
BUG: fix buggy config check for complex functions.
-rw-r--r--numpy/core/setup.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 5d338d19d..4981702de 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -181,11 +181,20 @@ def check_complex(config, mathlibs):
pub.append(('NPY_HAVE_%s' % type2def(t), 1))
def check_prec(prec):
- flist = [f + prec for f in C99_COMPLEX_TYPES]
- if not config.check_funcs_once(flist):
+ flist = [f + prec for f in C99_COMPLEX_FUNCS]
+ decl = dict([(f, True) for f in flist])
+ if not config.check_funcs_once(flist, call=decl, decl=decl,
+ libraries=mathlibs):
for f in flist:
- if config.check_func(f):
+ if config.check_func(f, call=True, decl=True,
+ libraries=mathlibs):
priv.append(fname2def(f))
+ else:
+ priv.extend([fname2def(f) for f in flist])
+
+ check_prec('')
+ check_prec('f')
+ check_prec('l')
return priv, pub