changeset 15831:a9066d0c1310

fmod: Use a .m4 file. * m4/fmod.m4: New file. * modules/fmod (Files): Add it. (configure.ac): Just invoke gl_FUNC_FMOD.
author Bruno Haible <bruno@clisp.org>
date Thu, 06 Oct 2011 00:37:54 +0200
parents 8cbd3394f44f
children 022f031c4bdf
files ChangeLog m4/fmod.m4 modules/fmod
diffstat 3 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-05  Bruno Haible  <bruno@clisp.org>
+
+	fmod: Use a .m4 file.
+	* m4/fmod.m4: New file.
+	* modules/fmod (Files): Add it.
+	(configure.ac): Just invoke gl_FUNC_FMOD.
+
 2011-10-05  Bruno Haible  <bruno@clisp.org>
 
 	Tests for module 'fabsf'.
new file mode 100644
--- /dev/null
+++ b/m4/fmod.m4
@@ -0,0 +1,11 @@
+# fmod.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_FMOD],
+[
+  dnl Determine FMOD_LIBM.
+  gl_COMMON_DOUBLE_MATHFUNC([fmod])
+])
--- a/modules/fmod
+++ b/modules/fmod
@@ -2,12 +2,13 @@
 fmod() function: floating-point remainder function.
 
 Files:
+m4/fmod.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([fmod])
+gl_FUNC_FMOD
 
 Makefile.am: