* autogen.sh: make absolutely sure we can't have stale files from
[bpt/guile.git] / autogen.sh
1 #!/bin/sh
2
3 set -e
4
5 [ -f GUILE-VERSION ] || {
6 echo "autogen.sh: run this command only at the top of a Guile source tree."
7 exit 1
8 }
9
10 ./guile-aclocal.sh
11
12 ######################################################################
13 ### Libtool setup.
14
15 # Get a clean version.
16 rm -rf libltdl
17 libtoolize --force --copy --automake --ltdl
18
19 # Make sure we use a ./configure.in compatible autoconf in ./libltdl/
20 mv libltdl/configure.in libltdl/configure.tmp
21 echo 'AC_PREREQ(2.50)' > libltdl/configure.in
22 cat libltdl/configure.tmp >> libltdl/configure.in
23 rm libltdl/configure.tmp
24 ######################################################################
25
26 autoheader
27 autoconf
28 automake --add-missing
29
30 # Make sure that libltdl uses the same autoconf version as the rest.
31 #
32 echo "libltdl..."
33 (cd libltdl && autoconf)
34 (cd libltdl && automake --gnu --add-missing)
35
36 echo "guile-readline..."
37 (cd guile-readline && ./autogen.sh)
38
39 echo "Now run configure and make."
40 echo "You must pass the \`--enable-maintainer-mode' option to configure."