mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
autodetect glibtoolize vs libtoolize for darwin
This commit is contained in:
parent
c8db558c00
commit
abea6262c1
1 changed files with 8 additions and 3 deletions
11
bootstrap
11
bootstrap
|
@ -22,10 +22,15 @@ if test "$1" = "clean"; then
|
|||
exit 0
|
||||
fi
|
||||
# Check libtoolize version, fix for Debian/Woody
|
||||
lt=`which libtoolize`
|
||||
if test -z `which glibtoolize` ; then
|
||||
libtoolize=glibtoolize
|
||||
else
|
||||
libtoolize=libtoolize
|
||||
fi
|
||||
lt=`which $libtoolize`
|
||||
if test -n "$lt" ; then
|
||||
if test -x "$lt" ; then
|
||||
LTIZE_VER=`libtoolize --version | head -1 | sed 's/^[^0-9]*//'`
|
||||
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'.' | sed -e 's/[^0-9]//g'`
|
||||
|
||||
|
@ -86,4 +91,4 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
aclocal && autoheader && libtoolize --automake && automake --add-missing && autoconf
|
||||
aclocal && autoheader && $libtoolize --automake && automake --add-missing && autoconf
|
||||
|
|
Loading…
Reference in a new issue