aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 0839f0577..8927a0e49 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,18 @@
#!/bin/sh
-libtoolize --force &&
+
+LIBTOOLIZE=`which glibtoolize 2>/dev/null`
+case "$LIBTOOLIZE" in
+ /* ) ;;
+ * ) LIBTOOLIZE=`which libtoolize 2>/dev/null`
+ case "$LIBTOOLIZE" in
+ /* ) ;;
+ * ) LIBTOOLIZE=libtoolize
+ ;;
+ esac
+ ;;
+esac
+
+$LIBTOOLIZE --force &&
aclocal &&
automake -a &&
autoconf