Commit f42e87f8 authored by Nico Sabbi's avatar Nico Sabbi

simplified try_libtool_executable()

parent b82fc7d7
......@@ -85,17 +85,13 @@ run_autoconf () {
#-------------------
try_libtool_executable() {
libtool=$1
set -- `type $libtool 2>/dev/null`
RETVAL=$?
NUM_RESULT=$#
RESULT_FILE=$3
if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then
LT="`$libtool --version | awk '{ print $4 }' | sed -e 's/[a-zA-Z\ \.\(\)\-\;]//g'`"
if test "$LT" -ne "" ; then
LIBTOOL_MIN="`echo $LIBTOOL_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
if test $LT -lt 100 ; then
LT=`expr $LT \* 10`
fi
if [ `expr $LT` -ge $LIBTOOL_MIN ]; then
if [ `expr "$LT"` -ge $LIBTOOL_MIN ]; then
libtool_ok=yes
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment