[Numpy-svn] r4414 - branches/numpy.scons/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Nov 8 02:52:41 CST 2007


Author: cdavid
Date: 2007-11-08 02:52:27 -0600 (Thu, 08 Nov 2007)
New Revision: 4414

Modified:
   branches/numpy.scons/numpy/core/SConstruct
Log:
numpy.core: when checking for maths funcs, just check for symbol (func;) instead of calling the funct (f();) to keep consistent with disstutils config.check_func

Modified: branches/numpy.scons/numpy/core/SConstruct
===================================================================
--- branches/numpy.scons/numpy/core/SConstruct	2007-11-07 22:41:44 UTC (rev 4413)
+++ branches/numpy.scons/numpy/core/SConstruct	2007-11-08 08:52:27 UTC (rev 4414)
@@ -104,7 +104,7 @@
     """Check that f is available in mlib, and add the symbol appropriately.
 
     f is expected to be a tuble (symbol, cpp define)."""
-    st = config.CheckLib(mlib, f[0], autoadd = autoadd)
+    st = config.CheckLibWithHeader(mlib, 'math.h', language = 'C', call = '%s;' % f[0], autoadd = autoadd)
     if st:
         config_sym.append((f[1], 1))
     else:



More information about the Numpy-svn mailing list