mirror of
https://github.com/osmarks/ngircd.git
synced 2026-12-03 19:55:24 +00:00
autogen.sh: detect automake version format a.b.c and a.b
This commit is contained in:
1 parent
d7d5f4330b
commit
039a939cb8
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user