]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update from gnulib.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Nov 2010 03:11:02 +0000 (04:11 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Jun 2011 21:38:50 +0000 (23:38 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/iconv.m4

index 92962b8df03d5425909d3e0dde67d2d64852caf3..ed1e30641421247645bb57a8fa1de76636625b9a 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-26  Bruno Haible  <bruno@clisp.org>
+
+       * iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present, set
+       ICONV_CONST.
+
 2010-11-20  Bruno Haible  <bruno@clisp.org>
 
        Ensure that <features.h> is included before __GLIBC__ is tested.
index 425145c0aee8f847f459df54299b9e1e6b4af743..7d19594230971c86e073438274d1c217b23001b0 100644 (file)
@@ -1,4 +1,4 @@
-# iconv.m4 serial 15 (gettext-0.18.2)
+# iconv.m4 serial 16 (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,
@@ -252,5 +252,12 @@ size_t iconv();
          $am_cv_proto_iconv])
     AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
       [Define as const if the declaration of iconv() needs const.])
+    dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
+    m4_ifdef([gl_ICONV_H_DEFAULTS],
+      [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
+       if test -n "$am_cv_proto_iconv_arg1"; then
+         ICONV_CONST="const"
+       fi
+      ])
   fi
 ])