]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Check that the gettext macros and Makefile.in.in are in sync.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Sep 2007 14:18:29 +0000 (14:18 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:04 +0000 (12:15 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/po.m4
gettext-runtime/po/ChangeLog
gettext-runtime/po/Makefile.in.in
gettext-tools/po/ChangeLog
gettext-tools/po/Makefile.in.in

index cf54a3c747efacfab66c384fc11789afcb366e93..61916f5d7051564ee943a4ecf5d5fa5649cce5de 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-08  Bruno Haible  <bruno@clisp.org>
+
+       * po.m4 (AM_PO_SUBDIRS): Define GETTEXT_MACRO_VERSION.
+       Suggested by Daniel Leidert <daniel.leidert@gmx.net>.
+
 2007-08-26  Bruno Haible  <bruno@clisp.org>
 
        * intl.m4 (gl_INTL_SUBDIR_CORE): Avoid an "unused variable" warning
index 00133ef36f83c91ec47b1e2ca721d542fdabf9d4..8374902f0582c94fbaa0d876de190fd5dc23acb2 100644 (file)
@@ -1,5 +1,5 @@
-# po.m4 serial 13 (gettext-0.15)
-dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
+# po.m4 serial 14 (gettext-0.16.2)
+dnl Copyright (C) 1995-2007 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.
@@ -27,6 +27,10 @@ AC_DEFUN([AM_PO_SUBDIRS],
   AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
   AC_REQUIRE([AM_NLS])dnl
 
+  dnl Release version of the gettext macros. This is used to ensure that
+  dnl the gettext macros and po/Makefile.in.in are in sync.
+  AC_SUBST([GETTEXT_MACRO_VERSION], [0.16.2])
+
   dnl Perform the following tests also if --disable-nls has been given,
   dnl because they are needed for "make dist" to work.
 
index 85a6d302ee7b7ba0bd7d53d977a93e184e203497..10fd1222c71c4094ed70fe470229578ac28f116a 100644 (file)
@@ -1,3 +1,11 @@
+2007-09-08  Bruno Haible  <bruno@clisp.org>
+
+       Check that the gettext macros and Makefile.in.in are in sync.
+       * Makefile.in.in (GETTEXT_MACRO_VERSION): New macro.
+       (check-macro-version): New target.
+       (all): Depend on it.
+       Suggested by Daniel Leidert <daniel.leidert@gmx.net>.
+
 2007-05-30  Bruno Haible  <bruno@clisp.org>
 
        * pt.po: Update from Helder Correia <helder.pereira.correia@gmail.com>.
index 5022b8b187fcbd2764e8957d7b278854342a38c3..42f023753d6698b208dceb09e9298e42312088ab 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for PO directory in any package using GNU gettext.
-# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 #
 # This file can be copied and used freely without restrictions.  It can
 # be used in projects which are not available under the GNU General Public
@@ -8,7 +8,8 @@
 # Please note that the actual code of GNU gettext is covered by the GNU
 # General Public License and is *not* in the public domain.
 #
-# Origin: gettext-0.16
+# Origin: gettext-0.16.2
+GETTEXT_MACRO_VERSION = 0.16.2
 
 PACKAGE = @PACKAGE@
 VERSION = @VERSION@
@@ -95,11 +96,18 @@ CATALOGS = @CATALOGS@
        mv t-$@ $@
 
 
-all: all-@USE_NLS@
+all: check-macro-version all-@USE_NLS@
 
 all-yes: stamp-po
 all-no:
 
+# Ensure that the gettext macros and this Makefile.in.in are in sync.
+check-macro-version:
+       @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
+         || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
+              exit 1; \
+            }
+
 # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
 # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
 # we don't want to bother translators with empty POT files). We assume that
index 3ba0b0d59cf84dc0c8af9061a8103149f96ae62e..bbd91ff761fbc835465876341c7450bc28c3465c 100644 (file)
@@ -1,3 +1,11 @@
+2007-09-08  Bruno Haible  <bruno@clisp.org>
+
+       Check that the gettext macros and Makefile.in.in are in sync.
+       * Makefile.in.in (GETTEXT_MACRO_VERSION): New macro.
+       (check-macro-version): New target.
+       (all): Depend on it.
+       Suggested by Daniel Leidert <daniel.leidert@gmx.net>.
+
 2007-06-11  Bruno Haible  <bruno@clisp.org>
 
        * fr.po: Update from Christophe Combelles <ccomb@free.fr>.
index 5022b8b187fcbd2764e8957d7b278854342a38c3..42f023753d6698b208dceb09e9298e42312088ab 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for PO directory in any package using GNU gettext.
-# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 #
 # This file can be copied and used freely without restrictions.  It can
 # be used in projects which are not available under the GNU General Public
@@ -8,7 +8,8 @@
 # Please note that the actual code of GNU gettext is covered by the GNU
 # General Public License and is *not* in the public domain.
 #
-# Origin: gettext-0.16
+# Origin: gettext-0.16.2
+GETTEXT_MACRO_VERSION = 0.16.2
 
 PACKAGE = @PACKAGE@
 VERSION = @VERSION@
@@ -95,11 +96,18 @@ CATALOGS = @CATALOGS@
        mv t-$@ $@
 
 
-all: all-@USE_NLS@
+all: check-macro-version all-@USE_NLS@
 
 all-yes: stamp-po
 all-no:
 
+# Ensure that the gettext macros and this Makefile.in.in are in sync.
+check-macro-version:
+       @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
+         || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
+              exit 1; \
+            }
+
 # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
 # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
 # we don't want to bother translators with empty POT files). We assume that