mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

The CMake-generated config.h would redundantly define some types to themselves, causing lots of warning in some cases (e.g. Xcode build). This addresses #414
12 lines
391 B
CMake
12 lines
391 B
CMake
include(CheckFunctionExists)
|
|
|
|
check_function_exists(getopt_long HAVE_GETOPT_LONG)
|
|
check_function_exists(mallinfo HAVE_MALLINFO)
|
|
check_function_exists(strcasestr HAVE_STRCASESTR)
|
|
check_function_exists(strerror HAVE_STRERROR)
|
|
check_function_exists(strsep HAVE_STRSEP)
|
|
check_function_exists(sigset HAVE_SIGSET)
|
|
|
|
if (NOT HAVE_SIGSET)
|
|
check_function_exists(sigaction HAVE_SIGACTION)
|
|
endif ()
|