* bootstrap: Force use of autoconf-2.57 and automake-1.7.x.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@264 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Theodore A. Roth 2003-03-06 04:45:30 +00:00
parent 915f8e7b94
commit 26a98b8b58
1 changed files with 26 additions and 14 deletions

View File

@ -1,23 +1,35 @@
#! /bin/sh #! /bin/sh
# autoconf-2.57 is preferred, but >= 2.53 should be ok # autoconf-2.57 is required
if [ "x${AUTOHEADER}" = "x" ]; then : ${AUTOHEADER="autoheader${AC_VER}"}
AUTOHEADER="autoheader-2.57" : ${AUTOCONF="autoconf${AC_VER}"}
# automake-1.7.x is required
: ${ACLOCAL="aclocal${AM_VER}"}
: ${AUTOMAKE="automake${AM_VER}"}
# Verify autoconf version
AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | \
cut -d ' ' -f 4) 2>/dev/null`
if [ "$AUTOCONF_VER" != "2.57" ]
then
echo "You need to use autoconf version 2.57."
echo "You are using `${AUTOCONF} --version | head -n 1`."
exit 1
fi fi
if [ "x${AUTOCONF}" = "x" ]; then # Verify automake version
AUTOCONF="autoconf-2.57"
fi
# automake-1.7 is preferred, but >= 1.6 should be ok AUTOMAKE_VER=`(${AUTOMAKE} --version | head -n 1 | \
cut -d ' ' -f 4 | cut -d '.' -f -2) 2>/dev/null`
if [ "x${ACLOCAL}" = "x" ]; then if [ "$AUTOMAKE_VER" != "1.7" ]
ACLOCAL="aclocal-1.7" then
fi echo "You need to use automake version 1.7 (preferrably 1.7.3)."
echo "You are using `${AUTOMAKE} --version | head -n 1`."
if [ "x${AUTOMAKE}" = "x" ]; then exit 1
AUTOMAKE="automake-1.7"
fi fi
# Bootstrap the build system. # Bootstrap the build system.