force the autoconf version instead of just reporting it.
authorChristos Zoulas <christos@zoulas.com>
Sun, 20 Jul 2014 09:46:28 +0000 (05:46 -0400)
committerChristos Zoulas <christos@zoulas.com>
Sun, 20 Jul 2014 09:46:28 +0000 (05:46 -0400)
bootstrap

index 3cfc47ed2e4d583805c7760081b6daebd5d3fc03..a370d191c2873c13672576d83696179d4a4bfc83 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -5,6 +5,16 @@
 # this is not meant to go into the distributions
 # Erez Zadok <ezk@cs.columbia.edu>
 
+validateversion() {
+    local v="$(autoreconf --version 2>&1 | head -1)"
+    case "$v" in
+    *2.69)     ;;
+    *)         echo "am-utils requires autoconf 2.69, you have:"
+               echo "  $v"
+               exit 1;;
+    esac
+}
+
 # test cwd
 test -f ../amd/amd.c && cd ..
 if [ ! -f amd/amd.c ]; then
@@ -39,8 +49,7 @@ test -f acinclude.m4 && mv -f acinclude.m4 acinclude.m4.old
 
 # generate the rest of the scripts
 echo "AMU: autoreconf..."
-# show version
-autoreconf --version 2>&1 | head -1
+validateversion
 if autoreconf -f -i; then
     :
 else