diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-01-28 10:36:07 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-01-28 10:36:07 +0000 |
| commit | 3243ff6681b1bbb421f6bb27b12ade9281e045f8 (patch) | |
| tree | 9875dd729ef394dbd8a8ee6dcc64d194fd417559 | |
| parent | 299d5bd2cfe15cf4288d04ac9707fd8cfddf014b (diff) | |
abort configure if python is not found
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index bf4356bb..dc4e48e6 100644 --- a/configure.ac +++ b/configure.ac @@ -295,7 +295,6 @@ AC_ARG_ENABLE(python, [ --disable-python disable the Python binding],, dnl Check if user passed a specific python program. AC_ARG_WITH(python, [ --with-python=(PYTHON) set the full path to the python program to use.]) -AC_MSG_CHECKING(for Python development files) dnl specific program passed, set PYTHON to it. if test "X$with_python" != "X"; then @@ -308,6 +307,9 @@ changequote(<<, >>)dnl PYTHON_VERSION=`$PYTHON -c 'import sys; print sys.version[:3]' 2>/dev/null` changequote([, ])dnl +test "x$PYTHON" != "x" || AC_MSG_ERROR(Python must be installed to compile lasso) + +AC_MSG_CHECKING(for Python development files) dnl Check if we were be able to extract a good version number. if test "X$PYTHON_VERSION" != "X"; then PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` @@ -343,7 +345,6 @@ AM_CONDITIONAL([PYTHON_ENABLED],[test "x$enable_python" = "xyes"]) AC_MSG_RESULT($enable_python) AC_SUBST(PYTHON_VERSION) - # ----------- # PHP binding # ----------- |
