Page MenuHome GnuPG

Better make search algorythm with code for configure.
Closed, ResolvedPublic

Description

Release: Current

Environment

AIX

Description

The gnu make command on AIX is generally make. If you do not specify MAKE=gmake for configure it does not install properly.

I have autodetect logic for configure to make the path smoother.

The code in fix is mine written for OpenOffice.org. I assign copyright to gnupg as the originating author of the code. I have included the version check in case it is relevant to you. Use as you see fit.

How To Repeat

Patch more obvious...

Fix

dnl ===================================================================
dnl Search all the common names for GNU make
dnl ===================================================================
AC_MSG_CHECKING([the GNU make version])
for a in "$MAKE" $GNUMAKE make gmake gnumake ; do

$a --version 2> /dev/null | grep GNU  2>&1 > /dev/null
if test $? -eq 0 ;  then
     GNUMAKE=$a ;
     break;
fi

done ;

dnl Change empty GNUMAKE from warning to error, pending testing.
if test -z "$GNUMAKE"; then

AC_MSG_WARN([not found build may fail])
echo "gnu make not found build may fail" >> warn

else

_make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
if test "$_make_longver" -ge "037901" ; then
   AC_MSG_RESULT([checked ($GNUMAKE $_make_version)])
else
   AC_MSG_ERROR([failed ($GNUMAKE $_make_version need 3.79.1+)])
fi

fi
AC_SUBST(GNUMAKE)

Event Timeline

This is an automake issue. From time to time we update the
autmake version used so if you had problems with one
versions, chances are good that the latest gnupg release
works better.

Some automake versions accidently required gnumake, thus we
print a warning.

If the problem presists, please report to the automake
folks. Thanks.