summaryrefslogtreecommitdiff
path: root/modules/fmodf
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-02-27 13:18:57 +0100
committerBruno Haible <bruno@clisp.org>2012-02-27 13:18:57 +0100
commit6a43f7b2199b69e39f804fd7b432f86f10c66e0e (patch)
tree5ed0acb6635eac9de6b4970e3f9f81286d226c6c /modules/fmodf
parent34932c93e2dbb16636664ae6e0f954fcce289047 (diff)
downloadgnulib-6a43f7b2199b69e39f804fd7b432f86f10c66e0e.tar.gz
fmodf-ieee: Work around test failure on OSF/1.
* m4/fmodf-ieee.m4: New file. * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test whether fmodf works with zero arguments. Replace it if not. * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF. * modules/math (Makefile.am): Substitute REPLACE_FMODF. * modules/fmodf (configure.ac): Consider REPLACE_FMODF. (Depends-on): Update dependencies. * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4. (configure.ac): Invoke gl_FUNC_FMODF_IEEE. * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
Diffstat (limited to 'modules/fmodf')
-rw-r--r--modules/fmodf4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/fmodf b/modules/fmodf
index 705ce3b938..fa49437a64 100644
--- a/modules/fmodf
+++ b/modules/fmodf
@@ -7,11 +7,11 @@ m4/fmodf.m4
Depends-on:
math
-fmod [test $HAVE_FMODF = 0]
+fmod [test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1]
configure.ac:
gl_FUNC_FMODF
-if test $HAVE_FMODF = 0; then
+if test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1; then
AC_LIBOBJ([fmodf])
fi
gl_MATH_MODULE_INDICATOR([fmodf])