Allow stasis to build on machines without python
This commit is contained in:
parent
bff22716a7
commit
9feb3efdb5
1 changed files with 4 additions and 4 deletions
|
@ -85,7 +85,7 @@ AC_DEFUN([AC_PYTHON_DEVEL],[
|
||||||
|
|
||||||
AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
|
AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
|
||||||
if test -z "$PYTHON"; then
|
if test -z "$PYTHON"; then
|
||||||
AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path])
|
AC_MSG_WARN([Cannot find python$PYTHON_VERSION in your system path])
|
||||||
PYTHON_VERSION=""
|
PYTHON_VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ to something else than an empty string.
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_MSG_ERROR([this package requires Python $1.
|
AC_MSG_WARN([this package requires Python $1.
|
||||||
If you have it installed, but it isn't the default Python
|
If you have it installed, but it isn't the default Python
|
||||||
interpreter in your system path, please pass the PYTHON_VERSION
|
interpreter in your system path, please pass the PYTHON_VERSION
|
||||||
variable to configure. See ``configure --help'' for reference.
|
variable to configure. See ``configure --help'' for reference.
|
||||||
|
@ -145,7 +145,7 @@ variable to configure. See ``configure --help'' for reference.
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_MSG_ERROR([cannot import Python module "distutils".
|
AC_MSG_WARN([cannot import Python module "distutils".
|
||||||
Please check your Python installation. The error was:
|
Please check your Python installation. The error was:
|
||||||
$ac_distutils_result])
|
$ac_distutils_result])
|
||||||
PYTHON_VERSION=""
|
PYTHON_VERSION=""
|
||||||
|
@ -245,7 +245,7 @@ $ac_distutils_result])
|
||||||
AC_MSG_RESULT([$pythonexists])
|
AC_MSG_RESULT([$pythonexists])
|
||||||
|
|
||||||
if test ! "$pythonexists" = "yes"; then
|
if test ! "$pythonexists" = "yes"; then
|
||||||
AC_MSG_ERROR([
|
AC_MSG_WARN([
|
||||||
Could not link test program to Python. Maybe the main Python library has been
|
Could not link test program to Python. Maybe the main Python library has been
|
||||||
installed in some non-standard library path. If so, pass it to configure,
|
installed in some non-standard library path. If so, pass it to configure,
|
||||||
via the LDFLAGS environment variable.
|
via the LDFLAGS environment variable.
|
||||||
|
|
Loading…
Reference in a new issue