From 082157bdb00446905573a72c0d1369fcba6bff0f Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Thu, 20 Mar 2014 09:46:04 -0700 Subject: [PATCH] MacPorts installs libtoolize as glibtoolize. Autodetect this and DTRT. --- bootstrap.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 93099c3..0966f87 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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