logf: Work around OSF/1 5.1 bug.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Mar 2012 23:55:48 +0000 (00:55 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 09:37:41 +0000 (10:37 +0100)
commit7073cb033569232bd515271e99c5c7cba4ffbdf5
treeca571b8e7fdd2a54d56de7671bdde349316f630b
parent0d37a2e60081400c4ecefbb106e8a1749b3de2b0
logf: Work around OSF/1 5.1 bug.

* lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
* lib/logf.c (logf): If logf exists, use it and provide just the
workaround.
* m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
(gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
* modules/math (Makefile.am): Substitute REPLACE_LOGF.
* modules/logf (configure.ac): Consider REPLACE_LOGF.
(Depends-on): Update conditions.
* doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
ChangeLog
doc/posix-functions/logf.texi
lib/logf.c
lib/math.in.h
m4/logf.m4
m4/math_h.m4
modules/logf
modules/math