]> Savannah Git Hosting - gnulib.git/commitdiff
monetary: Simplify m4 code.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Aug 2018 00:34:28 +0000 (02:34 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 14 Aug 2018 00:34:28 +0000 (02:34 +0200)
* m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
(gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.

ChangeLog
m4/monetary_h.m4

index 2da584e6fa91384f8b49ef2abdba6c6168c4af98..bcf7f6839af5c389d2b6ea07132b6880cb66e8bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-08-13  Bruno Haible  <bruno@clisp.org>
+
+       monetary: Simplify m4 code.
+       * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
+       (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
+
 2018-08-13  Bruno Haible  <bruno@clisp.org>
 
        fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
index 887ed91f670b044c60b15514fbc6f4edc7c2144a..c4ac3f712a13ab3a718dbb5abb34ddec62f23847 100644 (file)
@@ -1,17 +1,10 @@
-# monetary_h.m4 serial 3
+# monetary_h.m4 serial 4
 dnl Copyright (C) 2017-2018 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_MONETARY_H],
-[
-  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
-  dnl once only, before all statements that occur in other macros.
-  AC_REQUIRE([gl_MONETARY_H_BODY])
-])
-
-AC_DEFUN([gl_MONETARY_H_BODY],
+AC_DEFUN_ONCE([gl_MONETARY_H],
 [
   AC_REQUIRE([gl_MONETARY_H_DEFAULTS])
   m4_ifdef([gl_ANSI_CXX], [AC_REQUIRE([gl_ANSI_CXX])])