Added more handling of the PYTHON_CMD variable.
This commit is contained in:
parent
bafe8debe9
commit
7bf6638ce2
1 changed files with 7 additions and 1 deletions
|
|
@ -527,8 +527,14 @@ fi
|
|||
|
||||
WIN_PYTHON_CMD=python
|
||||
if test $BUILD_PYTHON -gt 0; then
|
||||
if test "$PYTHON_CMD" = "default"; then
|
||||
if test "$PYTHON_CMD" = "default" -o \
|
||||
"$PYTHON_CMD"x = "x"; then
|
||||
AC_PATH_PROGS(PYTHON_CMD, python2 python, "none")
|
||||
if test "$PYTHON_CMD" = "none" ; then
|
||||
echo "ERROR: python requested, but no python executable found!"
|
||||
else
|
||||
echo "Python command set to " $PYTHON_CMD
|
||||
fi
|
||||
if test "x$OS_IS_WIN" = "x1"; then
|
||||
AC_PATH_PROGS(WIN_PYTHON_CMD, python, "none")
|
||||
WIN_PYTHON_CMD=`cygpath -a -m "$WIN_PYTHON_CMD"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue