]> err.no Git - varnish/commitdiff
Older versions of automake generate incorrect Makefiles, and automake's
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Oct 2006 14:56:50 +0000 (14:56 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Oct 2006 14:56:50 +0000 (14:56 +0000)
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1140 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/autogen.sh

index c772051f10bed78d0c87253c83c94ce7df2c5766..03a1944de8b8f5df6ea654705b2bed91d8f424ab 100755 (executable)
@@ -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