Commit 2d2265cd authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Older versions of automake generate incorrect Makefiles, and automake's

own mechanism for specifying a required version doesn't seem to work.
Hack autogen.sh to check which version of automake is installed.

git-svn-id: http://www.varnish-cache.org/svn/trunk@1140 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 49438d96
......@@ -3,13 +3,29 @@
# $Id$
#
set -ex
if [ -d /usr/local/gnu-autotools/bin ] ; then
PATH=/usr/local/gnu-autotools/bin:${PATH}
export PATH
fi
automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+')
if [ -z "$automake_version" ] ; then
echo "unable to determine automake version"
exit 1
else
case $automake_version in
1.9*|[23456789].*)
;;
*)
echo "your version of automake ($automake_version) is too old;" \
"you need 1.9 or newer."
exit 1
;;
esac
fi
set -ex
aclocal
libtoolize --copy --force
autoheader
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment