From a5c0a3353bf015e4ba88f7ba4eef41a4610aa3d7 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 9 Jan 2020 07:54:17 -0500 Subject: =?UTF-8?q?build:=20Allow=20building=20with=20gettext=20=E2=89=A5?= =?UTF-8?q?=200.20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The use of AM_GNU_GETTEXT_VERSION in configure.ac instructs autopoint to copy po/Makefile.in.in from the exact gettext version. It is fine if the version of gettext installed on the system has the same minor version number with the requested version, but it fails if you have a newer version of gettext because of the mismatch between autoconf macros and Makefile.in.in. *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.20 Instead of specifying the exact version with AM_GNU_GETTEXT_VERSION, we can use AM_GNU_GETTEXT_REQUIRE_VERSION to ask autopoint to simply use the gettext version installed on the system to prevent the mismatch. This also bumps the version requirement on gettext to 0.19.6 because AM_GNU_GETTEXT_REQUIRE_VERSION was added in this version. fix copied from: https://gitlab.gnome.org/GNOME/libgsf/commit/91027d3447666c6f13c31b4b5984e1a8212983da --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 981e4ff..a33ea57 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,8 @@ AC_ARG_ENABLE(tools, [enable_tools=yes]) AM_CONDITIONAL(ENABLE_TOOLS, test "x$enable_tools" != "xno") -AM_GNU_GETTEXT_VERSION([0.19.4]) +AM_GNU_GETTEXT_VERSION([0.19.6]) +AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6]) AM_GNU_GETTEXT([external]) GETTEXT_PACKAGE=libwnck-3.0 -- cgit v1.2.1