Currently check for GNU Make version expects only major and minor
number leading to following warning with make-4.2.1:
checking for make... /usr/bin/make
./configure: line 6749: test: 4.2: integer expression expected

Signed-off-by: Ladislav Michl <la...@linux-mips.org>
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 0549c38da..0b07757b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,8 +296,9 @@ if test -z "$MAKE"; then
        AC_MSG_ERROR([make could not be found, please install])
 fi
 MAKE_VERSION=`$MAKE --version 2>/dev/null | $SED -ne "s/^GNU Make 
\([[0-9]]\+\.[[0-9.]]\+\).*$/\1/p"`
+MAJOR_MAKE_VERSION="${MAKE_VERSION%%.*}"
 MINOR_MAKE_VERSION="${MAKE_VERSION#*.}"
-MAJOR_MAKE_VERSION="${MAKE_VERSION%.*}"
+MINOR_MAKE_VERSION="${MINOR_MAKE_VERSION%%.*}"
 if test -z "${MAJOR_MAKE_VERSION}"  -o -z "${MINOR_MAKE_VERSION}" ; then
        AC_MSG_ERROR([could not parse make version. GNU make >= 3.81 required])
 fi
-- 
2.25.0.rc2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to