build: support gettext 0.20

support compiling if gettext 0.20 or later is found

AM_GNU_GETTEXT_REQUIRE_VERSION overwrites AM_GNU_GETTEXT_VERSION if
autoreconf supports it, so legacy systems are still supported.

From SF user CvH
This commit is contained in:
Justin Maggard 2022-02-10 23:45:43 -08:00
parent 6e18db1a12
commit 5c4895a09b

View File

@ -29,6 +29,7 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC_USE_SYSTEM_EXTENSIONS])
AM_ICONV
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.18)
AM_GNU_GETTEXT_REQUIRE_VERSION(0.18)
# Checks for programs.
AC_PROG_AWK