#!/bin/sh
+# Usage: sh -x ./autogen.sh
+
+set -e
[ -f GUILE-VERSION ] || {
- echo "autogen.sh: run this command only at the top of a Guile source tree."
+ echo "autogen.sh: run this command only at the top of guile-core."
exit 1
}
-./guile-aclocal.sh
+######################################################################
+### announce build tool versions
+echo ""
+autoconf --version
+echo ""
+automake --version
+echo ""
+libtool --version
+echo ""
+${M4:-/usr/bin/m4} --version
+echo ""
+gnulib-tool --version
+echo ""
+
+######################################################################
+### update infrastructure
-libtoolize --copy --automake --ltdl
-autoheader
-autoconf
-automake --add-missing
+gnulib-tool --update && \
+autoreconf -i --force --verbose
-( echo "guile-readline..."; cd guile-readline; ./autogen.sh )
+echo "guile-readline..."
+(cd guile-readline && ./autogen.sh)
echo "Now run configure and make."
echo "You must pass the \`--enable-maintainer-mode' option to configure."