From e6f06fbc78e5b7194e6ff56594248ce3688487dc Mon Sep 17 00:00:00 2001 From: Jordy Dickinson Date: Fri, 27 Dec 2013 15:02:40 -0500 Subject: [PATCH] Allow user to override environment variables --- platform/unix/automagic | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/unix/automagic b/platform/unix/automagic index 351df1268..6e5c68bb3 100755 --- a/platform/unix/automagic +++ b/platform/unix/automagic @@ -14,11 +14,11 @@ if [[ ! -d platform/unix ]]; then exit 1 fi -AUTOHEADER=$(which autoheader) -AUTOCONF=$(which autoconf) -LIBTOOLIZE=$(which libtoolize) -ACLOCAL=$(which aclocal) -AUTOMAKE=$(which automake) +AUTOHEADER=${AUTOHEADER:-$(which autoheader)} +AUTOCONF=${AUTOCONF:-$(which autoconf)} +LIBTOOLIZE=${LIBTOOLIZE:-$(which libtoolize)} +ACLOCAL=${ACLOCAL:-$(which aclocal)} +AUTOMAKE=${AUTOMAKE:-$(which automake)} [[ -x ${AUTOHEADER} ]] || die "Could not find autoheader. Install autoconf." [[ -x ${AUTOCONF} ]] || die "Could not find autoconf."