make boot: install additional files needed for ACX_PTHREAD
authorMarko Kreen <markokr@gmail.com>
Wed, 6 Apr 2011 14:27:02 +0000 (17:27 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 6 Apr 2011 14:27:02 +0000 (17:27 +0300)
- move logic out to autogen.sh, more standard
- use libtoolize to fetch config.sub, config.guess, install-sh
- don't use autoreconf, it's broken in some autoconf versions

Makefile
autogen.sh [new file with mode: 0755]

index 61216d9cc4e3f7f12d54ef9b91d8b6a823455448..6c807f0393680bc2954379f64edb1e99ea1ec834 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,11 +88,7 @@ realclean:
        rm -f usual/pgutil_kwlookup.h
 
 boot:
-       rm -rf usual/config.*
-       aclocal -I ./m4
-       autoheader
-       autoconf
-       rm -rf aclocal* autom4te.*
+       ./autogen.sh
 
 #config.mak:
 #      @echo "Config out-of-date, please run ./configure again"
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..8d99888
--- /dev/null
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+# get install-sh, config.*
+rm -f config.sub config.guess install-sh ltmain.sh
+libtoolize --install --copy
+# ignore libtool itself
+rm -f ltmain.sh
+
+rm -f usual/config.* configure
+aclocal -I ./m4
+autoheader
+autoconf
+rm -rf autom4te*
+