buildcheck.sh (apr-1.6.5.tar.bz2) | : | buildcheck.sh (apr-1.7.0.tar.bz2) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
echo "buildconf: checking installation..." | echo "buildconf: checking installation..." | |||
res=0 | res=0 | |||
# any python | # any python | |||
python=`build/PrintPath python` | python=${PYTHON-`build/PrintPath python3 python2 python`} | |||
if test -z "$python"; then | if test -z "$python"; then | |||
echo "buildconf: python not found." | echo "buildconf: python not found." | |||
echo " You need python installed" | echo " You need python installed" | |||
echo " to build APR from SVN." | echo " to build APR from SVN." | |||
res=1 | res=1 | |||
else | else | |||
py_version=`python -c 'import sys; print sys.version' 2>&1|sed 's/ .*//;q'` | py_version=`$python -c 'import sys; print(sys.version)' 2>&1|sed 's/ .*//;q'` | |||
echo "buildconf: python version $py_version (ok)" | echo "buildconf: python version $py_version (ok)" | |||
fi | fi | |||
# autoconf 2.59 or newer | # autoconf 2.59 or newer | |||
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[ a-z]* *$//;q'` | ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[ a-z]* *$//;q'` | |||
if test -z "$ac_version"; then | if test -z "$ac_version"; then | |||
echo "buildconf: autoconf not found." | echo "buildconf: autoconf not found." | |||
echo " You need autoconf version 2.59 or newer installed" | echo " You need autoconf version 2.59 or newer installed" | |||
echo " to build APR from SVN." | echo " to build APR from SVN." | |||
res=1 | res=1 | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |