On platforms where strtod() does not exist, the C++ tests would fail with
g++ >= 4.3, because REPLACE_STRTOD would be set in this case. This
supposedly fixes it.


2010-04-04  Bruno Haible  <br...@clisp.org>

        strtod: Avoid a possible C++ test error.
        * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
        set REPLACE_STRTOD.

--- m4/strtod.m4.orig   Sun Apr  4 23:10:40 2010
+++ m4/strtod.m4        Sun Apr  4 23:09:26 2010
@@ -1,4 +1,4 @@
-# strtod.m4 serial 13
+# strtod.m4 serial 14
 dnl Copyright (C) 2002-2003, 2006-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,6 @@
   dnl Note: AC_FUNC_STRTOD does AC_LIBOBJ([strtod]).
   if test $ac_cv_func_strtod = no; then
     HAVE_STRTOD=0
-    REPLACE_STRTOD=1
     gl_PREREQ_STRTOD
   else
     AC_CACHE_CHECK([whether strtod obeys C99], [gl_cv_func_strtod_works],


Reply via email to