strtod: Assume strtod() works when cross-compiling to new-enough glibc.

This commit is contained in:
Ben Pfaff
2010-06-15 09:14:16 -07:00
parent 161d300c64
commit fcdbbe0069
2 changed files with 16 additions and 2 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
2010-06-14 Ben Pfaff <blp@cs.stanford.edu>
* m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.
* m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code. Assume
that strtod() works when cross-compiling to a glibc version known
to work.
2010-06-15 Bruno Haible <bruno@clisp.org>
+13 -1
View File
@@ -95,7 +95,19 @@ numeric_equal (double x, double y)
]])],
[gl_cv_func_strtod_works=yes],
[gl_cv_func_strtod_works=no],
[gl_cv_func_strtod_works="guessing no"])])
[dnl The last known bugs in glibc strtod(), as of this writing,
dnl were fixed in version 2.8
AC_EGREP_CPP([Lucky user],
[
#include <features.h>
#ifdef __GNU_LIBRARY__
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) || (__GLIBC__ > 2)
Lucky user
#endif
#endif
],
[gl_cv_func_strtod_works=yes],
[gl_cv_func_strtod_works="guessing no"])])])
if test "$gl_cv_func_strtod_works" != yes; then
REPLACE_STRTOD=1
fi