Minimal CMake build of Bro done.

This commit is contained in:
Jon Siwek 2010-10-15 17:27:04 -05:00
parent 8e725fdc7a
commit d1e0008999
18 changed files with 2841 additions and 0 deletions

View file

@ -0,0 +1,17 @@
include(CheckFunctionExists)
check_function_exists(getopt_long HAVE_GETOPT_LONG)
check_function_exists(mallinfo HAVE_MALLINFO)
check_function_exists(pfopen HAVE_PFOPEN)
check_function_exists(strcasestr HAVE_STRCASESTR)
check_function_exists(strerror HAVE_STRERROR)
check_function_exists(strftime HAVE_STRFTIME)
check_function_exists(strsep HAVE_STRSEP)
check_function_exists(sigset HAVE_SIGSET)
if(HAVE_SIGSET)
set(SIG_FUNC sigset)
else()
set(SIG_FUNC signal)
check_function_exists(sigaction HAVE_SIGACTION)
endif()