diff --git a/configure.ac b/configure.ac index f4b659a41..ddb26b776 100644 --- a/configure.ac +++ b/configure.ac @@ -42,10 +42,14 @@ else HAS_PYTHON="0" HAS_PYTHON_MSG="no" fi -AC_SUBST(PYTHON_PACKAGE_DIR) -AC_SUBST(HAS_PYTHON) rm -f tst_python.py +if test "$HAS_PYTHON" = "0"; then + AC_MSG_ERROR([You need Python 2.x to generate the Z3 Makefiles.\nPlease download python at http://python.org]) +fi + +AC_SUBST(PYTHON_PACKAGE_DIR) + ################### # # Configuring bignum package @@ -167,45 +171,21 @@ AC_OUTPUT(scripts/config-debug.mk scripts/config-release.mk) # ################### -if test "$HAS_PYTHON" = "0"; then - if test -d build/Makefile; then - # Python is not installed, but Makefile was pre generated - # Just copy configuration and terminate - cp scripts/config-release.mk build/config.mk +# Python is available, give user the option to generate the make files wherever they want cat <