Commits

Leonardo de Moura committed 946a06c

fixed configure.ac, now fails if gcc is not installed

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

Comments (0)

Files changed (1)

 AC_INIT([z3], [4.2])
+AC_CONFIG_SRCDIR(src/util/util.cpp)
+AC_PREFIX_DEFAULT(/usr)
 
 ###################
 #
 #
 ###################
 # Sets CXX
-AC_PROG_CXX(g++)
+AC_LANG([C++])
+AC_PROG_CXX(g++ false)
+AC_PROG_CC
+if test $CXX = "false"; then
+   AC_MSG_ERROR([C++ compiler was not found])
+fi
 
 AC_PROG_MAKE_SET