tanh: Use a .m4 file.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Oct 2011 22:49:50 +0000 (00:49 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Oct 2011 22:49:50 +0000 (00:49 +0200)
* m4/tanh.m4: New file.
* modules/tanh (Files): Add it.
(configure.ac): Just invoke gl_FUNC_TANH.

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

index 278814a..e05e78d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-10-08  Bruno Haible  <bruno@clisp.org>
 
+       tanh: Use a .m4 file.
+       * m4/tanh.m4: New file.
+       * modules/tanh (Files): Add it.
+       (configure.ac): Just invoke gl_FUNC_TANH.
+
+2011-10-08  Bruno Haible  <bruno@clisp.org>
+
        Tests for module 'coshf'.
        * modules/coshf-tests: New file.
        * tests/test-coshf.c: New file.
diff --git a/m4/tanh.m4 b/m4/tanh.m4
new file mode 100644 (file)
index 0000000..39f4144
--- /dev/null
@@ -0,0 +1,11 @@
+# tanh.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_TANH],
+[
+  dnl Determine TANH_LIBM.
+  gl_COMMON_DOUBLE_MATHFUNC([tanh])
+])
index 6969caf..d09afad 100644 (file)
@@ -2,12 +2,13 @@ Description:
 tanh() function: hyperbolic tangent function.
 
 Files:
+m4/tanh.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([tanh])
+gl_FUNC_TANH
 
 Makefile.am: