attempt to fix murmur on big endian
[awesomized/libmemcached] / CMake / _Include.cmake
index 67fe16bfd826c88728cd109ea86a0523899f8311..41077574258e89dff776e61a9b6441561348cee6 100644 (file)
@@ -26,6 +26,8 @@ include(CheckHeader)
 include(CheckCompiles)
 include(CheckType)
 include(CheckStdatomic)
+include(TestBigEndian)
+include(CheckByteswap)
 
 # configuration
 
@@ -76,6 +78,9 @@ endif()
 
 # system checks
 
+test_big_endian(WORDS_BIGENDIAN)
+check_byteswap()
+
 check_header(alloca.h)
 check_header(arpa/inet.h)
 check_header(dlfcn.h)
@@ -109,6 +114,7 @@ check_decl(sndtimeo sys/socket.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)