diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-09-17 11:17:13 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-12-19 15:17:01 -0500 |
commit | a8ae2eafc85fda76fde79defa40fe06000d907db (patch) | |
tree | f05c686541ad60f5b26b5d0218a5af28d5e8bdef /configure.ac | |
parent | ac5acc45383f7ada422dec3e7c8a71bdb041fc8a (diff) |
Use strtod_l when available
Using strtod_l and newlocale is a nicer way to have provide
a C-locale-only strtod. Since these APIs are not available
everywhere, keep the old code as a fallback.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d82db4578..6b4ffa22d 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,9 @@ if test "x$have_dlsym" = "xyes"; then fi AM_CONDITIONAL(CAIRO_HAS_DLSYM, test "x$have_dlsym" = "xyes") +AC_CHECK_HEADERS(xlocale.h) +AC_CHECK_FUNCS(newlocale strtod_l) + dnl =========================================================================== CAIRO_ENABLE_SURFACE_BACKEND(xlib, Xlib, auto, [ |