From: Sebastian Harl Date: Sun, 9 Mar 2008 18:59:15 +0000 (+0100) Subject: build.sh: Use glibtoolize if it's available. X-Git-Tag: collectd-4.2.6~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2eb288109f6b369f3b917f72dde8df9e07691da4;p=collectd.git 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 --- 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