summaryrefslogtreecommitdiff
path: root/numpy/core/SConscript
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-11-06 07:29:55 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-11-06 07:29:55 +0000
commitb3b081b903afddd5f7cc785114d23560b5031c5b (patch)
tree182be236be6c8d5ec813b60599f930c856f21676 /numpy/core/SConscript
parent5da4c5e945d860bc39be6d90ecd144f740ca3a56 (diff)
downloadnumpy-b3b081b903afddd5f7cc785114d23560b5031c5b.tar.gz
ENH: add long double representation detection to numscons build.
Diffstat (limited to 'numpy/core/SConscript')
-rw-r--r--numpy/core/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript
index 13f9b5f0d..2177a8d8b 100644
--- a/numpy/core/SConscript
+++ b/numpy/core/SConscript
@@ -18,7 +18,8 @@ from setup_common import *
from scons_support import CheckBrokenMathlib, define_no_smp, \
check_mlib, check_mlibs, is_npy_no_signal, CheckInline
from scons_support import array_api_gen_bld, ufunc_api_gen_bld, template_bld, \
- umath_bld, CheckGCC4, check_api_version
+ umath_bld, CheckGCC4, check_api_version, \
+ CheckLongDoubleRepresentation
import SCons
@@ -50,7 +51,8 @@ check_api_version(C_API_VERSION)
# Starting Configuration
#=======================
config = env.NumpyConfigure(custom_tests = {'CheckBrokenMathlib' : CheckBrokenMathlib,
- 'CheckCBLAS' : CheckCBLAS, 'CheckInline': CheckInline, 'CheckGCC4' : CheckGCC4},
+ 'CheckCBLAS' : CheckCBLAS, 'CheckInline': CheckInline, 'CheckGCC4' : CheckGCC4,
+ 'CheckLongDoubleRepresentation': CheckLongDoubleRepresentation},
config_h = pjoin('config.h'))
# numpyconfig_sym will keep the values of some configuration variables, the one
@@ -98,6 +100,8 @@ for type in ('float', 'double', 'long double'):
sz = config.CheckTypeSize(complex_def)
numpyconfig_sym.append(('SIZEOF_COMPLEX_%s' % type2def(type), str(sz)))
+config.CheckLongDoubleRepresentation()
+
for type in ('Py_intptr_t',):
check_type(type, include = "#include <Python.h>\n")