log: Work around OSF/1 5.1 bug.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Mar 2012 22:55:13 +0000 (23:55 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 09:37:40 +0000 (10:37 +0100)
commit0d37a2e60081400c4ecefbb106e8a1749b3de2b0
tree676ad4af526240d9a7d0c31c7b70d5bb3a649bb2
parent97a6d2487ec73f5093e8ebd59b8b843d37ed64e4
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.
ChangeLog
doc/posix-functions/log.texi
lib/log.c [new file with mode: 0644]
lib/math.in.h
m4/log.m4
m4/math_h.m4
modules/log
modules/math
tests/test-math-c++.cc