]> arthur.barton.de Git - ngircd-alex.git/commitdiff
autogen.sh: detect automake version format a.b.c and a.b automake-am11-am12
authorAlexander Barton <alex@barton.de>
Mon, 24 Sep 2012 16:01:47 +0000 (18:01 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 24 Sep 2012 16:01:47 +0000 (18:01 +0200)
autogen.sh

index d47d7504b68268ab3de7bf49b73a8b716307b8b5..47c476c79632ef5a3d02b6181b78b8a7905f40de 100755 (executable)
@@ -153,7 +153,7 @@ echo "Searching for required tools ..."
 [ -z "$AUTOMAKE" ] && Notfound automake
 [ -z "$AUTOCONF" ] && Notfound autoconf
 
-AM_VERSION=`$AUTOMAKE --version | egrep -o "([0-9]+\.[0-9]+\.[0-9]+)"`
+AM_VERSION=`$AUTOMAKE --version|head -n 1|egrep -o "([1-9]\.[0-9]+(\.[0-9]+)*)"`
 ifs=$IFS; IFS="."; set $AM_VERSION; IFS=$ifs
 AM_MAJOR="$1"; AM_MINOR="$2"; AM_PATCHLEVEL="$3"