fabs: Use a .m4 file.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Oct 2011 21:28:52 +0000 (23:28 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Oct 2011 21:28:52 +0000 (23:28 +0200)
* m4/fabs.m4: New file.
* modules/fabs (Files): Add it.
(configure.ac): Just invoke gl_FUNC_FABS.

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

index 8d66d56..cccd6f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-05  Bruno Haible  <bruno@clisp.org>
+
+       fabs: Use a .m4 file.
+       * m4/fabs.m4: New file.
+       * modules/fabs (Files): Add it.
+       (configure.ac): Just invoke gl_FUNC_FABS.
+
 2011-10-05  Jim Meyering  <meyering@redhat.com>
 
        file-has-acl: revert both recent changes, 80af92af and 95f7c57f
diff --git a/m4/fabs.m4 b/m4/fabs.m4
new file mode 100644 (file)
index 0000000..f4478c5
--- /dev/null
@@ -0,0 +1,11 @@
+# fabs.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_FABS],
+[
+  dnl Determine FABS_LIBM.
+  gl_MATHFUNC([fabs], [double], [(double)])
+])
index 8b70430..15a1355 100644 (file)
@@ -2,12 +2,13 @@ Description:
 fabs() function: absolute value.
 
 Files:
+m4/fabs.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_MATHFUNC([fabs], [double], [(double)])
+gl_FUNC_FABS
 
 Makefile.am: