autogen.sh : Check for Python.

This commit is contained in:
Erik de Castro Lopo 2012-09-07 01:22:25 +10:00
parent 542b5493db
commit dca9fcde82

View File

@ -130,6 +130,18 @@ result="yes"
echo $result
echo -n "checking for python ... "
result="yes"
(python --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have Python installed to compile $package."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
result="no"
DIE=1
}
echo $result
if test "$DIE" -eq 1; then
exit 1
fi