logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: 27879ada4b187905c713587baa6681bd8acb20e1
parent 3c8fbfeeddc40eeec86d8b749c6eb2eed8db7221
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  2 Aug 2023 20:14:29 +0200

configure: Check for xgettext --package-name=

Diffstat:

Mconfigure15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/configure b/configure @@ -164,7 +164,20 @@ fi printf 'Checking %s command existance ...' "${XGETTEXT}" if command -v "${XGETTEXT}" >/dev/null ; is_ok then - : + if [ "${XGETTEXT}" != "true" ] + then + # This is due to NetBSD base system having a very old version of gettext (0.16) + printf 'Checking if %s --help lists --package-name= option ...' "${XGETTEXT}" + if "${XGETTEXT}" --help 2>&1 | grep -q package-name=; is_ok + then + : + else + echo 'Warning: translation updates disabled, you may want to set XGETTEXT' + XGETTEXT="true" + fi + else + echo 'Warning: translation updates disabled' + fi else echo 'Warning: translation updates disabled' XGETTEXT="true"