From: Bruno Haible <bruno@clisp.org>
Date: Sat, 8 Oct 2011 22:41:36 +0000 (+0200)
Subject: cosh: Use a .m4 file.
X-Git-Tag: v0.1~1631
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a8e1d33e94757bf88f11e8ee93a27d343e07670c;p=gnulib.git

cosh: Use a .m4 file.

* m4/cosh.m4: New file.
* modules/cosh (Files): Add it.
(configure.ac): Just invoke gl_FUNC_COSH.
---

diff --git a/ChangeLog b/ChangeLog
index 250bac5249..0de795a886 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-08  Bruno Haible  <bruno@clisp.org>
+
+	cosh: Use a .m4 file.
+	* m4/cosh.m4: New file.
+	* modules/cosh (Files): Add it.
+	(configure.ac): Just invoke gl_FUNC_COSH.
+
 2011-10-08  Bruno Haible  <bruno@clisp.org>
 
 	Tests for module 'sinhf'.
diff --git a/m4/cosh.m4 b/m4/cosh.m4
new file mode 100644
index 0000000000..5fcf7952fc
--- /dev/null
+++ b/m4/cosh.m4
@@ -0,0 +1,11 @@
+# cosh.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_COSH],
+[
+  dnl Determine COSH_LIBM.
+  gl_COMMON_DOUBLE_MATHFUNC([cosh])
+])
diff --git a/modules/cosh b/modules/cosh
index 4fd5c3a904..ec4e049b68 100644
--- a/modules/cosh
+++ b/modules/cosh
@@ -2,12 +2,13 @@ Description:
 cosh() function: hyperbolic cosine function.
 
 Files:
+m4/cosh.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([cosh])
+gl_FUNC_COSH
 
 Makefile.am: