From: Ben Pfaff Date: Mon, 4 Jan 2021 00:08:09 +0000 (-0800) Subject: configure: Ensure the version always has 3 parts in PSPP_CHECK_XGETTEXT. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3acd86a8d90595a63babe88c4c7c2cb1fd5465cf;p=pspp configure: Ensure the version always has 3 parts in PSPP_CHECK_XGETTEXT. Makes configure succeed on Debian for me, where "xgettext --version" prints 0.21 as the version. --- diff --git a/acinclude.m4 b/acinclude.m4 index 750a87efb1..c657b46e1f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -362,6 +362,10 @@ AC_DEFUN([PSPP_CHECK_XGETTEXT], [pspp_cv_progrecent_xgettext], [pspp_cv_progrecent_xgettext=maybe ver=`$ac_cv_prog_XGETTEXT --version | sed -n -e '/xgettext/s/[[^0-9]]*\([[0-9\.]][[0-9\.]]*\).*/\1/p'` + case $ver in # ( + *.*.*) ;; # ( + *.*) ver="$ver.0" ;; + esac majmin=`echo $ver | sed -e 's/\.[[0-9]]*$//'` major=`echo $majmin | sed -e 's/\.[[0-9]]*$//'` minor=`echo $majmin | sed -e 's/^[[0-9]]*\.//'`