changeset 15862:e369ba8115ea

log: Use a .m4 file. * m4/log.m4: New file. * modules/log (Files): Add it. (configure.ac): Just invoke gl_FUNC_LOG.
author Bruno Haible <bruno@clisp.org>
date Sat, 08 Oct 2011 22:12:22 +0200
parents bea4bd440308
children c2fa2febdb1f
files ChangeLog m4/log.m4 modules/log
diffstat 3 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-08  Bruno Haible  <bruno@clisp.org>
+
+	log: Use a .m4 file.
+	* m4/log.m4: New file.
+	* modules/log (Files): Add it.
+	(configure.ac): Just invoke gl_FUNC_LOG.
+
 2011-10-08  Bruno Haible  <bruno@clisp.org>
 
 	Tests for module 'expf'.
new file mode 100644
--- /dev/null
+++ b/m4/log.m4
@@ -0,0 +1,11 @@
+# log.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_LOG],
+[
+  dnl Determine LOG_LIBM.
+  gl_COMMON_DOUBLE_MATHFUNC([log])
+])
--- a/modules/log
+++ b/modules/log
@@ -2,12 +2,13 @@
 log() function: natural logarithmic function.
 
 Files:
+m4/log.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([log])
+gl_FUNC_LOG
 
 Makefile.am: