]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Aug 2010 08:48:05 +0000 (10:48 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Aug 2010 20:58:35 +0000 (22:58 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/iconv.m4

index 456825d35811af972420837808cd455b9a86f6ff..83411efba81ad71c286c285988171a4826afd6fe 100644 (file)
@@ -1,3 +1,10 @@
+2010-08-28  Bruno Haible  <bruno@clisp.org>
+
+       Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
+       * iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
+       defined.
+       Suggested by Eric Blake.
+
 2010-07-31  Bruno Haible  <bruno@clisp.org>
 
        Use new ansi-c++.m4 from gnulib.
index 5e838b04b6c203c490a32a95b260b4e45a9d7c22..425145c0aee8f847f459df54299b9e1e6b4af743 100644 (file)
@@ -1,4 +1,4 @@
-# iconv.m4 serial 14 (gettext-0.18.2)
+# iconv.m4 serial 15 (gettext-0.18.2)
 dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -217,8 +217,11 @@ m4_define([gl_iconv_AC_DEFUN],
   m4_version_prereq([2.64],
     [[AC_DEFUN_ONCE(
         [$1], [$2])]],
-    [[AC_DEFUN(
-        [$1], [$2])]]))
+    [m4_ifdef([gl_00GNULIB],
+       [[AC_DEFUN_ONCE(
+           [$1], [$2])]],
+       [[AC_DEFUN(
+           [$1], [$2])]])]))
 gl_iconv_AC_DEFUN([AM_ICONV],
 [
   AM_ICONV_LINK