# These version are ok, pre-1.7 is not. Post 1.7 may produce a lot of
# warnings for unrelated projects, so prefer 1.7 for now.
am_version=
-for v in 1.10 1.9 1.8; do
+for v in 1.10 1.9 1.8 1.7; do
if type -p &>/dev/null automake-$v; then
am_version="-$v"
break
fi
set -x
-libtoolize --automake --force --copy
aclocal$am_version
-automake$am_version -ac
autoconf
+autoheader
+automake$am_version -ac
+libtoolize --automake --force --copy
set +x
echo
echo "Ready to run './configure'."