mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 08:50:41 +03:00
Merge pull request #199 from sureshsundriyal/wip
[autogen] Fix autogen on systems without 'which'.
This commit is contained in:
commit
07179063f8
15
autogen.sh
15
autogen.sh
@ -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…
Reference in New Issue
Block a user