* HACKING: mention flex.
[bpt/guile.git] / autogen.sh
index f192b49..02bba0a 100755 (executable)
@@ -1,4 +1,16 @@
 #!/bin/sh
 
+[ -f GUILE-VERSION ] || {
+  echo "autogen.sh: run this command only at the top of a Guile source tree."
+  exit 1
+}
+
+./guile-aclocal.sh
+
+libtoolize --copy --automake --ltdl
 autoheader
-autoreconf --force "$@"
+autoconf
+automake --add-missing
+flex -t libguile/c-tokenize.lex > libguile/c-tokenize.c
+
+( echo "guile-readline..."; cd guile-readline; ./autogen.sh )