Mercurial > hg > octave-shane > gnulib-hg
view doc/posix-functions/log.texi @ 16631:45443deebb7d
log: Work around OSF/1 5.1 bug.
* lib/math.in.h (log): New declaration.
* lib/log.c: New file.
* m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
(gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
* m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
* modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
* modules/log (Files): Add lib/log.c.
(Depends-on): Add math.
(configure.ac): If REPLACE_LOG is 1, compile an override.
* tests/test-math-c++.cc: Check the declaration of log.
* doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 09 Mar 2012 23:55:13 +0100 |
parents | bb0ceefd22dc |
children | 90bb29c30680 |
line wrap: on
line source
@node log @section @code{log} @findex log POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/log.html} Gnulib module: log Portability problems fixed by Gnulib: @itemize @item This function returns a wrong value for a minus zero argument on some platforms: OSF/1 5.1. @end itemize Portability problems not fixed by Gnulib: @itemize @end itemize