Use 'glibtoolize' instead of 'libtoolize' on MacOSX.

This commit is contained in:
Vincent Richard 2010-03-06 12:48:39 +00:00
parent 9a94a5cac7
commit f69f48437f

View File

@ -13,6 +13,13 @@ rm -Rf autom4te.cache
(mkdir autotools >& /dev/null) (mkdir autotools >& /dev/null)
(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh) (cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
# Check for "glibtoolize" instead of "libtoolize" on OSX
LIBTOOLIZE=libtoolize
if which glibtoolize > /dev/null 2>&1; then
LIBTOOLIZE=glibtoolize
fi
DIE=0 DIE=0
echo "" echo ""
@ -36,7 +43,7 @@ if test $DIE = 0 ; then
fi fi
if test $DIE = 0 ; then if test $DIE = 0 ; then
echo -n "* Running libtoolize... " ; (libtoolize --copy --force --automake >& bootstrap.tmpout) \ echo -n "* Running libtoolize... " ; ($LIBTOOLIZE --copy --force --automake >& bootstrap.tmpout) \
&& (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \ && (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \
|| (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1 || (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1
fi fi