From cbee1bfb34274668a05995b9d4c78ddec9e5ea4c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 21 Mar 2018 17:04:06 +0000 Subject: meson/configure: detect endian.h instead of trying to guess when it's available Cc: Maxin B. John Cc: Khem Raj Cc: Rob Herring Suggested-by: Jon Turney Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov Reviewed-by: Dylan Baker Cc: --- scons/gallium.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scons') diff --git a/scons/gallium.py b/scons/gallium.py index 75200b89c1f..6cb20efcbf4 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -354,6 +354,9 @@ def generate(env): if check_header(env, 'xlocale.h'): cppdefines += ['HAVE_XLOCALE_H'] + if check_header(env, 'endian.h'): + cppdefines += ['HAVE_ENDIAN_H'] + if check_functions(env, ['strtod_l', 'strtof_l']): cppdefines += ['HAVE_STRTOD_L'] -- cgit v1.2.3