util: improve compiler guard
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 31 Aug 2017 16:55:56 +0000 (16:55 +0000)
committerEric Engestrom <eric@engestrom.ch>
Sun, 3 Sep 2017 08:05:23 +0000 (09:05 +0100)
commit49b428470e28ae6ab22083e43fa41abf622f3b0d
tree55306089b636b316b76a0b6c3d2ddc1c96f574d3
parent8514c5d0781e4e25669a2cd3bf8a547016b299a2
util: improve compiler guard

Glibc 2.26 has dropped xlocale.h, but the functions needed (strtod_l()
and strdof_l()) can be found in stdlib.h.
Improve the detection method to allow newer builds to still make use of
the locale-setting.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102454
Cc: Laurent Carlier <lordheavym@gmail.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Laurent Carlier <lordheavym@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
configure.ac
scons/gallium.py
src/util/strtod.c