changeset 15827:cafd593a210b

fabs: Use a .m4 file. * m4/fabs.m4: New file. * modules/fabs (Files): Add it. (configure.ac): Just invoke gl_FUNC_FABS.
author Bruno Haible <bruno@clisp.org>
date Wed, 05 Oct 2011 23:28:52 +0200
parents 23243d868d35
children 36ce57192e3b
files ChangeLog m4/fabs.m4 modules/fabs
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>
+
+	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
new file mode 100644
--- /dev/null
+++ b/m4/fabs.m4
@@ -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)])
+])
--- a/modules/fabs
+++ b/modules/fabs
@@ -2,12 +2,13 @@
 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: