From b039dbfffd8eedef53a5ff9ae6b0ae09e6844d9c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 20 Aug 2014 14:40:23 +0800 Subject: configure: check for xlocale.h and strtof With the assumptions that xlocale.h implies newlocale and strtof_l. SCons is updated to define HAVE_XLOCALE_H on linux and darwin. Signed-off-by: Chia-I Wu Reviewed-by: Kenneth Graunke --- scons/gallium.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scons') diff --git a/scons/gallium.py b/scons/gallium.py index dd5ca56a2db..e3786d2318c 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -301,6 +301,10 @@ def generate(env): cppdefines += ['HAVE_ALIAS'] else: cppdefines += ['GLX_ALIAS_UNSUPPORTED'] + + if env['platform'] in ('linux', 'darwin'): + cppdefines += ['HAVE_XLOCALE_H'] + if env['platform'] == 'haiku': cppdefines += [ 'HAVE_PTHREAD', -- cgit v1.2.3