Improve libtool version parsing (#22122)
This commit is contained in:
parent
16e55c7c85
commit
86dd857447
|
@ -29,7 +29,7 @@ DIE=0
|
|||
|
||||
have_libtool=false
|
||||
if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
|
||||
libtool_version=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'`
|
||||
libtool_version=`$LIBTOOLIZE --version | sed 's/^.* \([0-9][.][0-9.]*\)[^ ]*$/\1/'`
|
||||
case $libtool_version in
|
||||
1.4*|1.5*|1.6*|1.7*|2*)
|
||||
have_libtool=true
|
||||
|
|
Loading…
Reference in New Issue