From a331bf8b658c222546b51596dbadcfaa3d8514f0 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 8 Oct 2011 22:34:38 +0200
Subject: [PATCH] pow: Use a .m4 file.

* m4/pow.m4: New file.
* modules/pow (Files): Add it.
(configure.ac): Just invoke gl_FUNC_POW.
---
 ChangeLog   |  7 +++++++
 m4/pow.m4   | 11 +++++++++++
 modules/pow |  3 ++-
 3 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 m4/pow.m4

diff --git a/ChangeLog b/ChangeLog
index f7819a6948..c744815290 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-08  Bruno Haible  <bruno@clisp.org>
+
+	pow: Use a .m4 file.
+	* m4/pow.m4: New file.
+	* modules/pow (Files): Add it.
+	(configure.ac): Just invoke gl_FUNC_POW.
+
 2011-10-08  Bruno Haible  <bruno@clisp.org>
 
 	Tests for module 'log10f'.
diff --git a/m4/pow.m4 b/m4/pow.m4
new file mode 100644
index 0000000000..a4959739ea
--- /dev/null
+++ b/m4/pow.m4
@@ -0,0 +1,11 @@
+# pow.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_POW],
+[
+  dnl Determine POW_LIBM.
+  gl_COMMON_DOUBLE_MATHFUNC([pow])
+])
diff --git a/modules/pow b/modules/pow
index dec50d1bc2..a2cb311abf 100644
--- a/modules/pow
+++ b/modules/pow
@@ -2,12 +2,13 @@ Description:
 pow() function: power function.
 
 Files:
+m4/pow.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([pow])
+gl_FUNC_POW
 
 Makefile.am:
 
-- 
2.39.5