summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index c1b598e..92295c2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,15 @@
#!/bin/sh
-libtoolize --automake
+
+test -f ChangeLog || touch ChangeLog
+
+if libtoolize --version | grep GNU > /dev/null 2>&1 ; then
+ libtoolize=libtoolize
+else
+ libtoolize=glibtoolize
+fi
+
+$libtoolize --automake
aclocal $ACLOCAL_AMFLAGS
autoheader
automake --add-missing