try to fix Damm's bootstrap error (invalid arg to -x)

This commit is contained in:
Bill Currie 2002-04-07 03:22:46 +00:00
parent b322835767
commit b26c2b2336

View file

@ -1,7 +1,8 @@
#! /bin/sh
cd `dirname $0`
# Check libtoolize version, fix for Debian/Woody
if [ -x `which libtoolize` ]; then
lt=`which libtoolize`
if [ -n "$lt" -a -x "$lt" ]; then
LTIZE_VER=`libtoolize --version | head -1 | sed 's/^[^0-9]*//'`
LTIZE_VER_MAJOR=`echo $LTIZE_VER | cut -f1 -d'.'`
LTIZE_VER_MINOR=`echo $LTIZE_VER | cut -f2 -d'.'`
@ -12,7 +13,8 @@ if [ -x `which libtoolize` ]; then
fi
# Check Autoconf version
if [ -x `which autoconf` ]; then
ac=`which autoconf`
if [ -n "$ac" -a -x "$ac" ]; then
AC_VER=`autoconf --version | head -1 | sed 's/^[^0-9]*//'`
AC_VER_MAJOR=`echo $AC_VER | cut -f1 -d'.'`
AC_VER_MINOR=`echo $AC_VER | cut -f2 -d'.' | sed 's/[^0-9]*$//'`