Commit a5c0a335 authored by Victor Kareh's avatar Victor Kareh

build: Allow building with gettext ≥ 0.20

The use of AM_GNU_GETTEXT_VERSION in instructs autopoint to
copy po/ 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

  *** error: gettext infrastructure mismatch: using a
  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: libgsf@91027d34
parent 74e0c20b
Pipeline #142355 passed with stage
in 4 minutes and 42 seconds
......@@ -68,7 +68,8 @@ AC_ARG_ENABLE(tools,
AM_CONDITIONAL(ENABLE_TOOLS, test "x$enable_tools" != "xno")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment