Merge pull request #199 from sureshsundriyal/wip

[autogen] Fix autogen on systems without 'which'.
pull/200/head
Suresh Sundriyal 9 years ago
commit 07179063f8

@ -1,15 +1,20 @@
#! /bin/sh #! /bin/sh
AUTORECONF=${AUTORECONF:-$(which autoreconf)} if [ -n ${AUTORECONF} ]; then
autoreconf 1>/dev/null 2>/dev/null
if [ $? ]; then
AUTORECONF=autoreconf
fi
fi
if [ -n ${AUTORECONF} ]; then if [ -n ${AUTORECONF} ]; then
${AUTORECONF} -vfi -I m4 ${AUTORECONF} -vfi -I m4
else else
AUTOCONF=${AUTOCONF:-$(which autoconf)} AUTOCONF=${AUTOCONF:-autoconf}
AUTOMAKE=${AUTOMAKE:-$(which automake)} AUTOMAKE=${AUTOMAKE:-automake}
AUTOHEADER=${AUTOHEADER:-$(which autoheader)} AUTOHEADER=${AUTOHEADER:-autoheader}
ACLOCAL=${ACLOCAL:-$(which aclocal)} ACLOCAL=${ACLOCAL:-aclocal}
${AUTOCONF} --version ${AUTOCONF} --version
${AUTOMAKE} --version ${AUTOMAKE} --version

Loading…
Cancel
Save