Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
check_builtin_exist(__builtin_clzl HAVE_DECL___BUILTIN_CLZL) | check_builtin_exist(__builtin_clzl HAVE_DECL___BUILTIN_CLZL) | ||||
check_builtin_exist(__builtin_clzll HAVE_DECL___BUILTIN_CLZLL) | check_builtin_exist(__builtin_clzll HAVE_DECL___BUILTIN_CLZLL) | ||||
check_builtin_exist(__builtin_popcount HAVE_DECL___BUILTIN_POPCOUNT) | check_builtin_exist(__builtin_popcount HAVE_DECL___BUILTIN_POPCOUNT) | ||||
# Memory management capabilities | # Memory management capabilities | ||||
check_symbol_exists(M_ARENA_MAX "malloc.h" HAVE_MALLOPT_ARENA_MAX) | check_symbol_exists(M_ARENA_MAX "malloc.h" HAVE_MALLOPT_ARENA_MAX) | ||||
check_symbol_exists(malloc_info "malloc.h" HAVE_MALLOC_INFO) | check_symbol_exists(malloc_info "malloc.h" HAVE_MALLOC_INFO) | ||||
# Check for compiler features. | |||||
if (cxx_thread_local IN_LIST CMAKE_CXX_COMPILE_FEATURES) | |||||
set(HAVE_THREAD_LOCAL 1) | |||||
endif() | |||||
# Various system libraries | # Various system libraries | ||||
check_symbol_exists(strnlen "string.h" HAVE_DECL_STRNLEN) | check_symbol_exists(strnlen "string.h" HAVE_DECL_STRNLEN) | ||||
check_symbol_exists(daemon "unistd.h" HAVE_DECL_DAEMON) | check_symbol_exists(daemon "unistd.h" HAVE_DECL_DAEMON) | ||||
# Check for ways to obtain entropy | # Check for ways to obtain entropy | ||||
check_symbol_exists(getentropy "unistd.h" HAVE_GETENTROPY) | check_symbol_exists(getentropy "unistd.h" HAVE_GETENTROPY) | ||||
check_symbol_exists(getentropy "sys/random.h" HAVE_GETENTROPY_RAND) | check_symbol_exists(getentropy "sys/random.h" HAVE_GETENTROPY_RAND) | ||||
Show All 32 Lines |