include(CheckCompiles)
include(CheckType)
include(CheckStdatomic)
+include(TestBigEndian)
+include(CheckByteswap)
# configuration
# system checks
+test_big_endian(WORDS_BIGENDIAN)
+check_byteswap()
+
check_header(alloca.h)
check_header(arpa/inet.h)
check_header(dlfcn.h)
check_decl(setenv stdlib.h)
check_decl(strerror string.h)
check_decl(strerror_r string.h)
+
check_compiles(HAVE_STRERROR_R_CHAR_P "char x, y = *strerror_r(0,&x,1);" string.h)
check_decl(abi::__cxa_demangle cxxabi.h)