summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2014-08-20 14:40:23 +0800
committerKenneth Graunke <kenneth@whitecape.org>2014-10-30 02:26:19 -0700
commitb039dbfffd8eedef53a5ff9ae6b0ae09e6844d9c (patch)
treeed157dd7a9cda11a30383534abf40d860fb50261 /configure.ac
parente3f20294799d727107012d40f6c973975084e4e6 (diff)
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 <olv@lunarg.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7dbba76f4b..fc7d3726ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -527,6 +527,9 @@ if test "x$enable_asm" = xyes; then
esac
fi
+AC_CHECK_HEADER([xlocale.h], [DEFINES="$DEFINES -DHAVE_XLOCALE_H"])
+AC_CHECK_FUNC([strtof], [DEFINES="$DEFINES -DHAVE_STRTOF"])
+
dnl Check to see if dlopen is in default libraries (like Solaris, which
dnl has it in libc), or if libdl is needed to get it.
AC_CHECK_FUNC([dlopen], [DEFINES="$DEFINES -DHAVE_DLOPEN"],