remainder-ieee: Work around test failure on OSF/1.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Feb 2012 17:07:29 +0000 (18:07 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 27 Feb 2012 19:38:16 +0000 (20:38 +0100)
commita66795fc04d933313f4030b87d9da582555e78d7
treec0ab386b17be284b86384c9e19fa4686b97b0d4c
parent5dedf26dd50d9acd31d51cf068fdcf824e6bf25b
remainder-ieee: Work around test failure on OSF/1.

* m4/remainder-ieee.m4: New file.
* m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
present, test whether remainder works with a zero second argument.
Replace it if not.
* lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
* modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
* modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
(Depends-on): Update dependencies.
* modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
(configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
* doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
ChangeLog
doc/posix-functions/remainder.texi
lib/math.in.h
m4/math_h.m4
m4/remainder-ieee.m4 [new file with mode: 0644]
m4/remainder.m4
modules/math
modules/remainder
modules/remainder-ieee