modf: Use a .m4 file.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Oct 2011 23:21:12 +0000 (01:21 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Oct 2011 23:24:20 +0000 (01:24 +0200)
* m4/modf.m4: New file.
* modules/modf (Files): Add it.
(configure.ac): Just invoke gl_FUNC_MODF.

ChangeLog
m4/modf.m4 [new file with mode: 0644]
modules/modf

index 76607bb..eacc3ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-10-05  Bruno Haible  <bruno@clisp.org>
 
+       modf: Use a .m4 file.
+       * m4/modf.m4: New file.
+       * modules/modf (Files): Add it.
+       (configure.ac): Just invoke gl_FUNC_MODF.
+
+2011-10-05  Bruno Haible  <bruno@clisp.org>
+
        Tests for module 'fmodf'.
        * modules/fmodf-tests: New file.
        * tests/test-fmodf.c: New file.
diff --git a/m4/modf.m4 b/m4/modf.m4
new file mode 100644 (file)
index 0000000..03ee50b
--- /dev/null
@@ -0,0 +1,11 @@
+# modf.m4 serial 1
+dnl Copyright (C) 2011 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.
+
+AC_DEFUN([gl_FUNC_MODF],
+[
+  dnl Determine MODF_LIBM.
+  gl_MATHFUNC([modf], [double], [(double, double *)])
+])
index 0c5e467..c0dffeb 100644 (file)
@@ -2,12 +2,13 @@ Description:
 modf() function: get signed integer and fractional parts.
 
 Files:
+m4/modf.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_MATHFUNC([modf], [double], [(double, double *)])
+gl_FUNC_MODF
 
 Makefile.am: