fix Darwin support

# HG changeset patch
# User Dan Villiom Podlaski Christiansen <dan@cabo.dk>
# Date 1351006208 -7200
# Node ID 9530ad68d54dd519b0acd1a1516e9259e59277e1
# Parent  a50eb30597f3a077189a3019ac4fe11e12250bb6
fix Darwin support

Apple used to provide a tool called 'libtoolize' in the OS X developer
tools, so the Libtool project wisely named their tool 'glibtoolize' on
darwin. Other than that, hardcoding specific versions of autotools is
fairly annoying.

Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
diff --git a/bootstrap b/bootstrap
index 731fa44..b953ba7 100755
--- a/bootstrap
+++ b/bootstrap
@@ -3,16 +3,13 @@
 UNAME=`uname`
 
 if [ "$UNAME" = "Darwin" ]; then
-libtoolize --copy --force --automake
-aclocal-1.9
-autoheader-2.60
-automake-1.9 --add-missing --copy --foreign
-autoconf-2.60
-
+    LIBTOOLIZE=glibtoolize
 else
-libtoolize --copy --force --automake
+    LIBTOOLIZE=libtoolize
+fi
+
+$LIBTOOLIZE --copy --force --automake
 aclocal
 autoheader
 automake --add-missing --copy --foreign
 autoconf
-fi