Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -52,6 +52,7 @@ include(MakefileFunctions) include(SingleMultiSource) +include(CheckFunctionExists) find_package(YACC) find_package(TCL) @@ -72,6 +73,7 @@ set(ENDIAN "little") endif() endif() +check_function_exists(re_comp HAVE_RE_COMP) add_subdirectory(tools) # Shortcut for the path to the fpcmp executable