summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2022-12-03 13:14:48 +0100
committerMike Frysinger <vapier@gentoo.org>2022-12-10 14:46:46 +0545
commit97a8a4fbda04af2c6f9a1cfc95eb780ae9fe36d8 (patch)
tree688d596363f8233f473501b3408056973cf8c1a1
parent3b5c20e747bc33de4f4614c2da8d438bd082baaf (diff)
downloadacl-97a8a4fbda04af2c6f9a1cfc95eb780ae9fe36d8.tar.gz
build: Fix cross-compilation on musl-based systems
The gettext implementation in musl does not define some of the internal symbols that AM_GNU_GETTEXT used to check for. This got fixed in gettext 0.19.8, but the AM_GNU_GETTEXT_VERSION macro requires a specific version even if the system contains a higher one. We switch to use the new AM_GNU_GETTEXT_REQUIRE_VERSION macro which requires at least a specific version, and bump the AM_GNU_GETTEXT_VERSION to the first one that had support for the new macro. Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fe5d7ce..eb188f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,10 @@ AC_SYS_LARGEFILE
AM_PROG_AR
LT_INIT
-AM_GNU_GETTEXT_VERSION([0.18.2])
+dnl Minimal version supporting AM_GNU_GETTEXT_REQUIRE_VERSION.
+AM_GNU_GETTEXT_VERSION([0.19.6])
+dnl Require at least the following version, but use the latest available one.
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
AC_ARG_ENABLE([debug],