[collectd] [PATCH] build.sh: Use glibtoolize if it's available.
Sebastian Harl
sh at tokkee.org
Sun Mar 9 19:59:15 CET 2008
This way, the script should work on e.g. MacOSX as well.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
build.sh | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/build.sh b/build.sh
index 89d3a68..3efb44f 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
--
1.5.4.2.133.g3d51e
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080309/9f80f203/attachment.pgp
More information about the collectd
mailing list