a lot of systems use GNU Make 3.81beta4, so only consider the first two characters

in the minor part of the version string


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-08-17 19:38:15 +00:00
parent a8272afb1f
commit 98e1cbb957

View File

@@ -91,7 +91,7 @@ AC_DEFUN(
if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
GNU_MAKE=$a ;
GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.'`
GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
break;
fi
done ;