summaryrefslogtreecommitdiff
path: root/m4/remainderf-ieee.m4
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 /m4/remainderf-ieee.m4
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 'm4/remainderf-ieee.m4')
-rw-r--r--m4/remainderf-ieee.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/remainderf-ieee.m4 b/m4/remainderf-ieee.m4
new file mode 100644
index 0000000000..f45c8e2dc1
--- /dev/null
+++ b/m4/remainderf-ieee.m4
@@ -0,0 +1,15 @@
+# remainderf-ieee.m4 serial 1
+dnl Copyright (C) 2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl This macro is in a separate file (not in remainder.m4 and not inlined in the
+dnl module description), so that gl_FUNC_REMAINDERF can test whether 'aclocal'
+dnl has found uses of this macro.
+
+AC_DEFUN([gl_FUNC_REMAINDERF_IEEE],
+[
+ m4_divert_text([INIT_PREPARE], [gl_remainderf_required=ieee])
+ AC_REQUIRE([gl_FUNC_REMAINDERF])
+])