From 3fa2ca6ef03b44831d66da7022b7521e2385bd37 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Sun, 27 Oct 2002 10:11:06 +0000 Subject: Change autogen.sh script to use env vars if available. (Old svn revision: 10653) --- autogen.sh | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 2e4c9e527..381128ca2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,32 @@ #!/bin/sh -aclocal --verbose \ - && autoheader \ - && automake --add-missing --copy --include-deps --foreign --gnu --verbose \ - && autoconf \ - && ./configure $@ +# +# NOTE: Some distribution ship different version of auto tools using +# postfixing (e.g."automake-1.6"). If you want to use those, simply +# set the variable $ACLOCAL, $AUTOHEADER, $AUTOMAKE and $AUTOCONF +# to the proper command to use. +# +# if unset, default commands will be used. +# + +if test "x$ACLOCAL" = "x"; then + ACLOCAL=aclocal +fi + +if test "x$AUTOHEADER" = "x"; then + AUTOHEADER=autoheader +fi + +if test "x$AUTOMAKE" = "x"; then + AUTOMAKE=automake +fi + +if test "x$AUTOCONF" = "x"; then + AUTOCONF=autoconf +fi + +$ACLOCAL --verbose \ +&& $AUTOHEADER \ +&& $AUTOMAKE --add-missing --copy --include-deps --foreign --gnu --verbose \ +&& $AUTOCONF \ +&& ./configure $@ -- cgit v1.2.1