1 | #!/bin/sh |
1 | #!/bin/sh |
2 | # |
2 | # |
3 | # Run this before configure |
3 | # Run this before configure |
4 | # |
4 | # |
5 | # This file blatantly ripped off from subversion. |
5 | # This file blatantly ripped off from subversion and Abiword |
6 | # |
6 | |
7 | # Note: this dependency on Perl is fine: only SVN developers use autogen.sh |
7 | # To run this file, you need: |
8 | # and we can state that dev people need Perl on their machine |
8 | # automake >= 1.6 (tested with 1.6.3, 1.7.8; older will probably not work) |
9 | # |
9 | # libtool >= 1.5 (tested with 1.5; older will probably not work) |
|
|
10 | # autoconf >= 2.50 (tested with 2.50, 2.57; older will not work) |
|
|
11 | |
|
|
12 | # Set this to a specific version if you want to use a non-standard automake |
|
|
13 | #AUTOMAKE_VERSION=-1.6 |
|
|
14 | # Set this to a specific version if you want to use a non-standard autoconf |
|
|
15 | #AUTOCONF_VERSION=2.50 |
10 | |
16 | |
11 | set -e |
17 | set -e |
12 | |
18 | |
13 | echo "Libtool..." |
19 | echo "Libtool..." |
14 | libtoolize --copy --force |
20 | libtoolize --copy --force |
15 | |
21 | |
16 | # Produce aclocal.m4, so autoconf gets the automake macros it needs |
22 | # Produce aclocal.m4, so autoconf gets the automake macros it needs |
17 | echo "Creating aclocal.m4..." |
23 | echo "Creating aclocal.m4..." |
18 | aclocal |
24 | aclocal$AUTOMAKE_VERSION |
19 | |
25 | |
20 | autoheader |
26 | autoheader$AUTOCONF_VERSION |
21 | |
27 | |
22 | # Produce all the `Makefile.in's, verbosely, and create neat missing things |
28 | # Produce all the `Makefile.in's, verbosely, and create neat missing things |
23 | # like `libtool', `install-sh', etc. |
29 | # like `libtool', `install-sh', etc. |
24 | automake --add-missing --verbose --gnu --copy |
30 | automake$AUTOMAKE_VERSION --add-missing --verbose --gnu --copy --force-missing |
25 | |
31 | |
26 | # If there's a config.cache file, we may need to delete it. |
32 | # If there's a config.cache file, we may need to delete it. |
27 | # If we have an existing configure script, save a copy for comparison. |
33 | # If we have an existing configure script, save a copy for comparison. |
28 | if [ -f config.cache ] && [ -f configure ]; then |
34 | if [ -f config.cache ] && [ -f configure ]; then |
29 | cp configure configure.$$.tmp |
35 | cp configure configure.$$.tmp |
30 | fi |
36 | fi |
31 | |
37 | |
32 | # Produce ./configure |
38 | # Produce ./configure |
33 | echo "Creating configure..." |
39 | echo "Creating configure..." |
34 | autoconf |
40 | autoconf$AUTOCONF_VERSION |
35 | |
41 | |
36 | echo "" |
42 | echo "" |
37 | echo "You can run ./configure now." |
43 | echo "You can run ./configure now." |
38 | echo "" |
44 | echo "" |
39 | |
45 | |