summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-17 14:30:11 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-17 14:30:11 +0000
commitcfd35bf592be06b5368ee96c8a42e08af3e2e741 (patch)
tree2b048b00c8a000f995ffb7838a8684a507101d77 /autogen.sh
parent24d30d6222a20a92ccf3f54ced4ab6a88b843cd7 (diff)
Prefer to use automake-1.8, to check that our build will still work in Scratchbox
Diffstat (limited to 'autogen.sh')
-rw-r--r--autogen.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index ee33c619f..d28e1d836 100644
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,19 @@
#!/bin/sh
set -e
-autoreconf -i
+if test -n "$AUTOMAKE"; then
+ : # don't override an explicit user request
+elif automake-1.8 --version &>/dev/null && \
+ aclocal-1.8 --version &>/dev/null; then
+ # If we have automake-1.8, use it. This helps to ensure that our build
+ # system doesn't accidentally grow automake-1.9 dependencies.
+ AUTOMAKE=automake-1.8
+ export AUTOMAKE
+ ACLOCAL=aclocal-1.8
+ export ACLOCAL
+fi
+
+autoreconf -i -f
run_configure=true
for arg in $*; do