merge guile-vm to guile
[bpt/guile.git] / autogen.sh
1 #!/bin/sh
2 # Usage: sh -x ./autogen.sh
3
4 set -e
5
6 [ -f GUILE-VERSION ] || {
7 echo "autogen.sh: run this command only at the top of guile-core."
8 exit 1
9 }
10
11 ######################################################################
12 ### announce build tool versions
13 echo ""
14 autoconf --version
15 echo ""
16 automake --version
17 echo ""
18 libtool --version
19 echo ""
20 ${M4:-/usr/bin/m4} --version
21 echo ""
22 gnulib-tool --version
23 echo ""
24
25 ######################################################################
26 ### update infrastructure
27
28 gnulib-tool --update && \
29 autoreconf -i --force --verbose
30
31 echo "guile-readline..."
32 (cd guile-readline && ./autogen.sh)
33
34 # Copy versions of config.guess and config.sub from Guile's repository to
35 # build-aux and guile-readline.
36 cp -f config.guess config.sub build-aux/
37 cp -f config.guess config.sub guile-readline/
38
39 echo "Now run configure and make."
40 echo "You must pass the \`--enable-maintainer-mode' option to configure."