# the curses package we'd find probably wouldn't work anyway
find_package( Curses )
if( CURSES_FOUND )
add_definitions( -DHAVE_CURSES )
endif()
endif()
# on some mingw32, regex.h is not on the default include path
find_path( RX_PATH regex.h )
include_directories(${RX_PATH})
...
...
@@ -78,20 +97,6 @@ set( DIVINE_INCLUDES
${MPI_INCLUDE_PATH}
${divine_SOURCE_DIR}/divine/legacy )
include( CheckCXXSourceCompiles )
check_cxx_source_compiles(
"template< typename T > struct A {
static const int x = sizeof( T );
};
struct B {
A< B > a;
};
int main() { return 0; }" TMPL_SIZEOF_WORKS )
if( NOT TMPL_SIZEOF_WORKS )
message( FATAL_ERROR "Your C++ compiler apparently does not support language features required by DiVinE. It is recommended that you compile with G++ 4.1 or 4.2.")
endif( NOT TMPL_SIZEOF_WORKS )
find_program( SHA1SUM sha1sum )
if( NOT SHA1SUM )
...
...
@@ -145,6 +150,18 @@ if( HOARD )
add_subdirectory( hoard )
endif( HOARD )
add_subdirectory( lpsolve )
find_program( BYACC "byacc")
find_package( FLEX )
find_package( BYACC )
if( MURPHI AND FLEX_FOUND AND BYACC_FOUND AND BYACC )