]> git.wh0rd.org - fontconfig.git/commitdiff
Improve libtool version parsing (#22122)
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 21 Jul 2009 19:39:58 +0000 (15:39 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 21 Jul 2009 19:39:58 +0000 (15:39 -0400)
autogen.sh

index c3d11caad731a36fde184132d5e5f36615480090..820c457fe8f3a57cf1d861ec008678e1360fb17c 100755 (executable)
@@ -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