Check python installed in autogen.sh

python is required to build fontconfig from the scratch
This commit is contained in:
Akira TAGOH 2016-07-08 11:14:34 +09:00
parent 5d74251986
commit 416cdd9d49
1 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,7 @@ AUTOMAKE=${AUTOMAKE-automake}
AUTOHEADER=${AUTOHEADER-autoheader} AUTOHEADER=${AUTOHEADER-autoheader}
AUTOCONF=${AUTOCONF-autoconf} AUTOCONF=${AUTOCONF-autoconf}
GPERF=${GPERF-gperf} GPERF=${GPERF-gperf}
PYTHON=${PYTHON-python}
LIBTOOLIZE_FLAGS="--copy --force" LIBTOOLIZE_FLAGS="--copy --force"
DIE=0 DIE=0
@ -59,6 +60,14 @@ DIE=0
DIE=1 DIE=1
} }
($PYTHON --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have python installed to compile $PROJECT."
echo "Install the appropriate package for your distribution."
echo "or get the source tarball at https://www.python.org/downloads/source/"
DIE=1
}
have_libtool=false have_libtool=false
if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
libtool_version=`$LIBTOOLIZE --version | sed 's/^.* \([0-9][.][0-9.]*\)[^ ]*$/\1/'` libtool_version=`$LIBTOOLIZE --version | sed 's/^.* \([0-9][.][0-9.]*\)[^ ]*$/\1/'`