From 2eb288109f6b369f3b917f72dde8df9e07691da4 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 9 Mar 2008 19:59:15 +0100 Subject: [PATCH] build.sh: Use glibtoolize if it's available. This way, the script should work on e.g. MacOSX as well. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 89d3a68e..3efb44f6 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,15 @@ #! /bin/sh +libtoolize=libtoolize + +if which glibtoolize > /dev/null 2>&1; then + libtoolize=glibtoolize +fi + set -x autoheader \ && aclocal \ -&& libtoolize --ltdl --copy --force \ +&& $libtoolize --ltdl --copy --force \ && automake --add-missing --copy \ && autoconf -- 2.11.0