From 86dd857447f69cf89fd47259055b150f62519c17 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 21 Jul 2009 15:39:58 -0400 Subject: [PATCH] Improve libtool version parsing (#22122) --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index c3d11ca..820c457 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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 -- 2.39.5