From 7bf6638ce2652468881dbdf5ab4fe1e5a632f519 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 1 Oct 2004 19:31:28 +0000 Subject: [PATCH] Added more handling of the PYTHON_CMD variable. --- config/configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/configure.in b/config/configure.in index 6aac62ff9..c9f58464d 100755 --- a/config/configure.in +++ b/config/configure.in @@ -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"`