Merge pull request #198 from sureshsundriyal/wip

[autogen] Honor environment variables and prefer autoreconf.
This commit is contained in:
Suresh Sundriyal 2015-04-05 22:07:51 -07:00
commit 4d3c1e206b

View File

@ -1,9 +1,21 @@
#! /bin/sh #! /bin/sh
autoconf --version
automake --version
aclocal -I m4 -I . AUTORECONF=${AUTORECONF:-$(which autoreconf)}
autoheader -I .
automake --add-missing --copy --force-missing --foreign if [ -n ${AUTORECONF} ]; then
autoconf ${AUTORECONF} -vfi -I m4
else
AUTOCONF=${AUTOCONF:-$(which autoconf)}
AUTOMAKE=${AUTOMAKE:-$(which automake)}
AUTOHEADER=${AUTOHEADER:-$(which autoheader)}
ACLOCAL=${ACLOCAL:-$(which aclocal)}
${AUTOCONF} --version
${AUTOMAKE} --version
${ACLOCAL} -I m4 -I .
${AUTOHEADER} -I .
${AUTOMAKE} --add-missing --copy --force-missing --foreign
${AUTOCONF}
fi