mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
Merge pull request #198 from sureshsundriyal/wip
[autogen] Honor environment variables and prefer autoreconf.
This commit is contained in:
commit
4d3c1e206b
24
autogen.sh
24
autogen.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user