> ../gllib/math.h:620: error: 'frexpl' was not declared in this scope > > Again, the problem is that REPLACE_FREXPL is set when the function does > not exist. This fixes it.
Oops, it did not fix it, because gl_FUNC_FREXPL_NO_LIBM can still set REPLACE_FREXPL=1 when the function exists. I'm applying this: 2010-04-05 Bruno Haible <br...@clisp.org> frexpl: Fix a C++ test error on Solaris 8 and Cygwin. * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation. --- lib/math.in.h.orig Mon Apr 5 15:56:24 2010 +++ lib/math.in.h Mon Apr 5 15:55:49 2010 @@ -322,7 +322,7 @@ _GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr)); # endif #endif -#if @GNULIB_FREXPL@ +#if @GNULIB_FREXPL@ && !(@REPLACE_FREXPL@ && !...@have_decl_frexpl@) _GL_CXXALIASWARN (frexpl); #endif #if !...@gnulib_frexpl@ && defined GNULIB_POSIXCHECK