-
Committer:
Hans Verkuil
-
Date:
2021-03-02 11:25:41 UTC
-
Revision ID:
git-v1:db8039584d0112aeb520bb7f33181fc824e77ba8
configure.ac: improve gettext compatibility support
Gettext 0.19.8 wants to see AM_GNU_GETTEXT_VERSION, but gettext 0.21
wants AM_GNU_GETTEXT_REQUIRE_VERSION.
Test if AM_GNU_GETTEXT_REQUIRE_VERSION is supported and use that,
otherwise fall back to AM_GNU_GETTEXT_VERSION.
This also prevents gettextize from overwriting configure.ac with
an updated AM_GNU_GETTEXT_VERSION version number, which was really
annoying since configure.ac is under version control.
Tested with both gettext versions.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Suggested-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>