hopefully fix this sucker

This commit is contained in:
Bill Currie 2002-04-07 03:43:33 +00:00
parent 9885aa5916
commit e4b549d11d

View file

@ -2,13 +2,13 @@
cd `dirname $0`
# Check libtoolize version, fix for Debian/Woody
lt=`which libtoolize`
if [ -n "$lt" ]; then
if [ -x "$lt" ]; then
if test -n "$lt" ; then
if test -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'.'`
if [ "$LTIZE_VER_MAJOR" -lt "2" -a "$LTIZE_VER_MINOR" -lt "4" ]; then
if test "$LTIZE_VER_MAJOR" -lt "2" -a "$LTIZE_VER_MINOR" -lt "4" ; then
WOODY_FIX="yes";
fi
fi
@ -16,29 +16,29 @@ fi
# Check Autoconf version
ac=`which autoconf`
if [ -n "$ac" ]; then
if [ -x "$ac" ]; then
if test -n "$ac" ; then
if test -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]*$//'`
if [ "$AC_VER_MAJOR" -lt "2" ]; then
if test "$AC_VER_MAJOR" -lt "2" ; then
echo "Autoconf 2.13 or greater needed to build configure."
exit 1
fi
if [ "$AC_VER_MINOR" -lt "13" ]; then
if test "$AC_VER_MINOR" -lt "13" ; then
echo "Autoconf 2.13 or greater needed to build configure."
exit 1
fi
if [ "$AC_VER_MINOR" -lt "50" ]; then
if [ ! -e configure.in ]; then
if test "$AC_VER_MINOR" -lt "50" ; then
if test ! -e configure.in ; then
ln -s configure.ac configure.in
fi
echo "If you see some warnings about cross-compiling, don't worry; this is normal."
elif [ "$WOODY_FIX" = "yes" ]; then
if [ ! -e configure.in ]; then
elif test "$WOODY_FIX" = "yes" ; then
if test ! -e configure.in ; then
ln -s configure.ac configure.in
fi
else