From: hno <> Date: Mon, 7 Oct 2002 02:00:42 +0000 (+0000) Subject: Resurrected the autotool version checks X-Git-Tag: SQUID_3_0_PRE1~702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3d3f1cf0156261ecbe7a090f29ae96389f677a0;p=thirdparty%2Fsquid.git Resurrected the autotool version checks --- diff --git a/bootstrap.sh b/bootstrap.sh index cc6d9c27dd..62ffde511a 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -4,9 +4,11 @@ # configure has not been run, or if a Makefile.am in a non-configured directory # has been updated -# Autotool versions required -acver="" -amver="" +# Autotool versions required. To override either edit the script +# to match the versions you want to use, or set the variables on +# the command line like "env acver=.. amver=... ./bootstrap.sh" +acver="${acver:-2.53}" +amver="${amver:-1.5}" bootstrap() { if "$@"; then @@ -23,14 +25,14 @@ bootstrap() { mkdir -p cfgaux # Adjust paths of required autool packages -#if autoconf --version | grep -q $acver; then -# acver="" -#fi -#if automake --version | grep -q $amver; then -# amver="" -#fi +if autoconf --version | grep -q "$acver"; then + acver="" +fi +if automake --version | grep -q "$amver"; then + amver="" +fi acver=`echo $acver | sed -e 's/\.//'` -#amver=`echo $amver | sed -e 's/\.//'` +amver=`echo $amver | sed -e 's/\.//'` # Bootstrap the autotool subsystems bootstrap aclocal$amver