# 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
# generate the rest of the scripts
echo "AMU: autoreconf..."
-# show version
-autoreconf --version 2>&1 | head -1
+validateversion
if autoreconf -f -i; then
:
else