Leonardo de Moura avatar Leonardo de Moura committed 25f8086

Configure script aborts if python is not installed

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>;

Comments (0)

Files changed (1)

   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
 #
 ###################
 
-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
-cat <<EOF
-Z3 was configured with success.
-Host platform:  $PLATFORM
-Arithmetic:     $ARITH
-Python Support: $HAS_PYTHON_MSG
-Python:         $PYTHON 
-Prefix:         $prefix
-64-bit:         $IS_X64
-
-Type 'cd build; make' to compile Z3.
-Type 'sudo make install' to install Z3.
-Type 'sudo make install-z3py' to install Z3 Python (Z3Py) bindings.
-EOF
-   else
-      AC_MSG_ERROR([Pre generated Makefiles were not detected. You need python to generate the Z3 Makefiles.\nPlease download python at http://python.org])
-   fi
-else
-   # Python is available, give user the option to generate the make files wherever they want
+# Python is available, give user the option to generate the make files wherever they want
 cat <<EOF
 Z3 was configured with success.
 Host platform:  $PLATFORM
 Arithmetic:     $ARITH
-Python Support: $HAS_PYTHON_MSG
 Python:         $PYTHON 
 Prefix:         $prefix
 64-bit:         $IS_X64
 
-Type 'python scripts/mk_make.py' to generate Makefiles in the subdirectory 'build'.
-Type 'cd build; make' to make Z3.
-Type 'sudo make install' to install Z3.
-Type 'sudo make install-z3py' to install Z3 Python (Z3Py) bindings.
+To build and install Z3, execute:
+   python scripts/mk_make.py
+   cd build
+   make
+   sudo make install
 EOF
 
-fi
-
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.