From f0d9cb41333a2930e73cd2e31e0c0aaa855ffd21 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 18 Sep 2011 19:32:54 -0400 Subject: [PATCH] Allow bootstrap tools to be overridden via environment variables. Useful if you want to use a different installed version of autoreconf, for instance. --- bootstrap | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bootstrap b/bootstrap index f0e1d0d..94d0bc8 100755 --- a/bootstrap +++ b/bootstrap @@ -3,11 +3,17 @@ trap 'exit 1' USR1 die() { printf '%s\n' "$@" 1>&2; kill -USR1 $$; } -git submodule update --init || echo "Failed to update Gnulib sources from git." -if test -x ./gnulib/gnulib-tool; then - ./gnulib/gnulib-tool --update -S || die "Failed to update Gnulib." +: ${AUTORECONF=autoreconf} +: ${GNULIB=gnulib} +: ${GIT=git} + +$GIT submodule update --init \ + || echo "Failed to update Gnulib sources from git." + +if test -x $GNULIB/gnulib-tool; then + $GNULIB/gnulib-tool --update -S || die "Failed to update Gnulib." else die "Gnulib sources are not properly installed in gnulib/." fi -autoreconf -fis +$AUTORECONF -fis -- 2.43.2