summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2010-09-08 19:20:18 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2010-10-05 11:45:48 +0100
commit340d114cd0e6b065c7cc4b93b66c989e8108876e (patch)
treea5617ec822ffe002bfc820ac064f7bf5b2710a3b /autogen.sh
parent4510983f13c8a403a0e4a916119667f24920bdd5 (diff)
downloaddbus-340d114cd0e6b065c7cc4b93b66c989e8108876e.tar.gz
Use Automake 1.11, if available, for silent rules
Automake 1.11 adds support for silent rules, which are conditionally enabled in configure.in if available. Also, previously it was impossible to override the version chosen by this script; this patch makes that possible.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index bf53b277..7c2ae062 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -27,8 +27,12 @@ fi
DIE=1
}
-AUTOMAKE=automake-1.9
-ACLOCAL=aclocal-1.9
+# If the user hasn't explicitly chosen an Automake version, use 1.11. This is
+# the earliest version that gives us silent rules.
+if test -z "$AUTOMAKE"; then
+ AUTOMAKE=automake-1.11
+ ACLOCAL=aclocal-1.11
+fi
($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
AUTOMAKE=automake