summaryrefslogtreecommitdiff
path: root/modules/fmodf
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-10-06 01:01:52 +0200
committerBruno Haible <bruno@clisp.org>2011-10-06 01:01:52 +0200
commitefad011252b012d39066be02454855be49170852 (patch)
tree05bd1bc21df60851523ce5dc8a590da3aa012797 /modules/fmodf
parent0e67d73886e2b78415e81e8a61995b7b214a7782 (diff)
downloadgnulib-efad011252b012d39066be02454855be49170852.tar.gz
New module 'fmodf'.
* lib/math.in.h (fmodf): New declaration. * lib/fmodf.c: New file. * m4/fmodf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF. * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF. * modules/fmodf: New file. * tests/test-math-c++.cc: Check the declaration of fmodf. * doc/posix-functions/fmodf.texi: Mention the new module.
Diffstat (limited to 'modules/fmodf')
-rw-r--r--modules/fmodf31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/fmodf b/modules/fmodf
new file mode 100644
index 0000000000..6d9276d5a9
--- /dev/null
+++ b/modules/fmodf
@@ -0,0 +1,31 @@
+Description:
+fmodf() function: remainder.
+
+Files:
+lib/fmodf.c
+m4/fmodf.m4
+
+Depends-on:
+math
+fmod [test $HAVE_FMODF = 0]
+
+configure.ac:
+gl_FUNC_FMODF
+if test $HAVE_FMODF = 0; then
+ AC_LIBOBJ([fmodf])
+fi
+gl_MATH_MODULE_INDICATOR([fmodf])
+
+Makefile.am:
+
+Include:
+<math.h>
+
+Link:
+$(FMODF_LIBM)
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible