changeset 12751:78eebabdbcd9

sqrt: Make gl_FUNC_SQRT requirable.
author Bruno Haible <bruno@clisp.org>
date Tue, 19 Jan 2010 01:50:01 +0100
parents 6b4859a7c820
children 73d9dd27dc41
files ChangeLog m4/sqrt.m4 modules/sqrt
diffstat 3 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-18  Bruno Haible  <bruno@clisp.org>
+
+	sqrt: Make gl_FUNC_SQRT requirable.
+	* m4/sqrt.m4: New file.
+	* modules/sqrt (Files): Add it.
+	(configure.ac): Invoke gl_FUNC_SQRT.
+
 2010-01-18  Bruno Haible  <bruno@clisp.org>
 
 	New modules for common <math.h> functions.
new file mode 100644
--- /dev/null
+++ b/m4/sqrt.m4
@@ -0,0 +1,10 @@
+# sqrt.m4 serial 1
+dnl Copyright (C) 2010 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_SQRT],
+[
+  gl_MATHFUNC([sqrt])
+])
--- a/modules/sqrt
+++ b/modules/sqrt
@@ -2,12 +2,13 @@
 sqrt() function: square root.
 
 Files:
+m4/sqrt.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_MATHFUNC([sqrt])
+gl_FUNC_SQRT
 
 Makefile.am: