log1p: Provide replacement for Minix and MSVC.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 18:54:08 +0000 (19:54 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Mar 2012 01:40:31 +0000 (02:40 +0100)
commit5f70dcfc4f65198adbce63a01a17f18b1627beee
tree09a25fc838434cd2bbc1ff0371cf38c3a1044eec
parentd2e57cace9c218973feb09b4c675056fa01cb7c2
log1p: Provide replacement for Minix and MSVC.

* lib/math.in.h (log1p): New declaration.
* lib/log1p.c: New file.
* m4/log1p.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
* modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
* modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
(Depends-on): Add math, isnand, log, round.
(configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
HAVE_LOG1P is 0.
* tests/test-math-c++.cc: Check the declaration of log1p.
* doc/posix-functions/log1p.texi: Mention the replacement.
ChangeLog
doc/posix-functions/log1p.texi
lib/log1p.c [new file with mode: 0644]
lib/math.in.h
m4/log1p.m4 [new file with mode: 0644]
m4/math_h.m4
modules/log1p
modules/math
tests/test-math-c++.cc