autogen: work with older libtool and autoconf
authorMarko Kreen <markokr@gmail.com>
Tue, 15 Nov 2011 14:32:46 +0000 (16:32 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 15 Nov 2011 14:32:46 +0000 (16:32 +0200)
autogen.sh

index 0e0eb93de38c9d838b8f5067f956e56624162a6e..5fd2c47995c9e79a93c57c1d2a076397e79ac876 100755 (executable)
@@ -2,10 +2,20 @@
 
 # get install-sh, config.*
 rm -f config.sub config.guess install-sh ltmain.sh
-libtoolize --install --copy
+
+if libtoolize --help | grep "[-][-]install" > /dev/null; then
+  libtoolize --install --copy
+else
+  libtoolize --copy
+fi
+
 rm -f ltmain.sh
 
 rm -f lib/usual/config.* configure
-autoreconf -I lib/m4 -f
+
+aclocal -I ./lib/m4
+autoheader
+autoconf
+
 rm -rf autom4te*