MacPorts installs libtoolize as glibtoolize. Autodetect this and DTRT.

(cherry picked from commit 082157bdb0)
Signed-off-by: Bruce A. Mah <bmah@es.net>
This commit is contained in:
Bruce A. Mah 2014-03-20 09:46:04 -07:00
parent 492a91292a
commit 7b56b38dbc

View File

@ -38,8 +38,21 @@ case "$1" in
;;
esac
if libtoolize --version >/dev/null 2>&1; then
libtoolize=libtoolize
elif glibtoolize --version >/dev/null 2>&1; then
libtoolize=glibtoolize
else
libtoolize=""
fi
if [ "x$libtoolize" = "x" ]; then
echo "Can't find libtoolize, exiting."
exit 1
fi
set -x
libtoolize --copy --force --automake
$libtoolize --copy --force --automake
aclocal -I config
autoheader
automake --foreign --add-missing --copy