|
|
|
@ -330,7 +330,18 @@ check_symbol_exists( gethostbyname2_r "netdb.h" HAVE_GETHOSTBYNAME2_R )
|
|
|
|
|
check_symbol_exists( gethostbyname_r "netdb.h" HAVE_GETHOSTBYNAME_R )
|
|
|
|
|
check_symbol_exists( gai_strerror "sys/types.h;sys/socket.h;netdb.h" HAVE_GAI_STRERROR )
|
|
|
|
|
check_symbol_exists( getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRINFO )
|
|
|
|
|
check_symbol_exists( backtrace "execinfo.h" HAVE_BACKTRACE )
|
|
|
|
|
if ( CMAKE_MAJOR_VERSION LESS "3" )
|
|
|
|
|
check_symbol_exists( backtrace "execinfo.h" HAVE_BACKTRACE )
|
|
|
|
|
if ( HAVE_BACKTRACE )
|
|
|
|
|
set ( Backtrace_LIBRARY "" )
|
|
|
|
|
set ( Backtrace_HEADER "execinfo.h" )
|
|
|
|
|
endif ()
|
|
|
|
|
else ()
|
|
|
|
|
find_package( Backtrace )
|
|
|
|
|
if ( Backtrace_FOUND )
|
|
|
|
|
set ( HAVE_BACKTRACE 1 )
|
|
|
|
|
endif ()
|
|
|
|
|
endif ()
|
|
|
|
|
check_cxx_source_compiles( "#include <cxxabi.h>
|
|
|
|
|
int main() { abi::__cxa_demangle(0, 0, 0, 0); return 0; }"
|
|
|
|
|
HAVE_ABI_CXA_DEMANGLE )
|
|
|
|
|