Skip to content
Snippets Groups Projects
Commit 1e9f5845 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

I fell over a new libtool that starts with a newline so we need to fetch

the two first lines to get the version string. The good news is that older
libtools have an empty line after the first so I think this works fine all
over...
parent c41dfc25
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ else
libtoolize=`findtool $LIBTOOLIZE`
fi
lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
lt_pversion=`$libtool --version 2>/dev/null|head -n 2|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
if test -z "$lt_pversion"; then
echo "buildconf: libtool not found."
echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment