summaryrefslogtreecommitdiff
path: root/modules/remainderf
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-02-27 19:33:31 +0100
committerBruno Haible <bruno@clisp.org>2012-02-27 20:38:22 +0100
commitbc18fb52e080546bd6f048be78cf04968797a191 (patch)
treedb8a6d5fefd2ecc8e06f28b4b11a6dd44109c333 /modules/remainderf
parenta66795fc04d933313f4030b87d9da582555e78d7 (diff)
downloadgnulib-bc18fb52e080546bd6f048be78cf04968797a191.tar.gz
remainderf-ieee: Work around test failure on OSF/1.
* m4/remainderf-ieee.m4: New file. * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is present, test whether remainderf works with a zero second argument. Replace it if not. * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF. * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF. * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF. (Depends-on): Update conditions. * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4. (Depends-on): Add remainder-ieee. (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE. * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee module.
Diffstat (limited to 'modules/remainderf')
-rw-r--r--modules/remainderf8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/remainderf b/modules/remainderf
index 2f423b9a45..69a642621e 100644
--- a/modules/remainderf
+++ b/modules/remainderf
@@ -8,13 +8,13 @@ m4/mathfunc.m4
Depends-on:
math
-remainder [test $HAVE_REMAINDERF = 0]
-roundf [test $HAVE_REMAINDERF = 0]
-fmaf [test $HAVE_REMAINDERF = 0]
+remainder [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1]
+roundf [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1]
+fmaf [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1]
configure.ac:
gl_FUNC_REMAINDERF
-if test $HAVE_REMAINDERF = 0; then
+if test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1; then
AC_LIBOBJ([remainderf])
fi
gl_MATH_MODULE_INDICATOR([remainderf])