projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
memaslap: mv src/bin/contrib => contrib/bin
[awesomized/libmemcached]
/
CMake
/
_Include.cmake
diff --git
a/CMake/_Include.cmake
b/CMake/_Include.cmake
index 67fe16bfd826c88728cd109ea86a0523899f8311..9dbd3dfaaa221dafd27f12cdb1d61819500352d9 100644
(file)
--- a/
CMake/_Include.cmake
+++ b/
CMake/_Include.cmake
@@
-6,7
+6,7
@@
endif()
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
-if(CMAKE_HOST_SYSTEM_NAME
STREQUAL "Free
BSD")
+if(CMAKE_HOST_SYSTEM_NAME
MATCHES "
BSD")
find_program(PKGCONF pkgconf)
if(PKGCONF)
set(PKG_CONFIG_EXECUTABLE ${PKGCONF})
find_program(PKGCONF pkgconf)
if(PKGCONF)
set(PKG_CONFIG_EXECUTABLE ${PKGCONF})
@@
-25,20
+25,14
@@
include(CheckDependency)
include(CheckHeader)
include(CheckCompiles)
include(CheckType)
include(CheckHeader)
include(CheckCompiles)
include(CheckType)
-include(CheckStdatomic)
+include(TestBigEndian)
+include(CheckByteswap)
# configuration
## debug
check_debug()
# configuration
## debug
check_debug()
-## memaslap
-if(ENABLE_MEMASLAP)
- check_stdatomic()
- check_dependency(LIBEVENT event event.h)
- check_decl(getline stdio.h)
-endif()
-
## dtrace
include(EnableDtrace)
if(ENABLE_DTRACE)
## dtrace
include(EnableDtrace)
if(ENABLE_DTRACE)
@@
-52,13
+46,16
@@
endif()
## uuid
if(BUILD_TESTING)
## uuid
if(BUILD_TESTING)
- check_dependency(LIBUUID uuid uuid/uuid.h)
+ if(NOT MEMCACHED_BINARY)
+ find_package(Memcached)
+ set(MEMCACHED_BINARY ${MEMCACHED_EXECUTABLE})
+ endif()
endif()
## sasl
if(ENABLE_SASL)
check_dependency(LIBSASL sasl2 sasl/sasl.h)
endif()
## sasl
if(ENABLE_SASL)
check_dependency(LIBSASL sasl2 sasl/sasl.h)
- if(LIBSASL)
+ if(
HAVE_
LIBSASL)
set(LIBMEMCACHED_WITH_SASL_SUPPORT 1)
endif()
endif()
set(LIBMEMCACHED_WITH_SASL_SUPPORT 1)
endif()
endif()
@@
-76,6
+73,9
@@
endif()
# system checks
# system checks
+test_big_endian(WORDS_BIGENDIAN)
+check_byteswap()
+
check_header(alloca.h)
check_header(arpa/inet.h)
check_header(dlfcn.h)
check_header(alloca.h)
check_header(arpa/inet.h)
check_header(dlfcn.h)
@@
-104,11
+104,12
@@
check_decl(htonll arpa/inet.h)
check_decl(MSG_DONTWAIT sys/socket.h)
check_decl(MSG_MORE sys/socket.h)
check_decl(MSG_NOSIGNAL sys/socket.h)
check_decl(MSG_DONTWAIT sys/socket.h)
check_decl(MSG_MORE sys/socket.h)
check_decl(MSG_NOSIGNAL sys/socket.h)
-check_decl(
rcvtimeo
sys/socket.h)
-check_decl(
sndtimeo
sys/socket.h)
+check_decl(
SO_RCVTIMEO
sys/socket.h)
+check_decl(
SO_SNDTIMEO
sys/socket.h)
check_decl(setenv stdlib.h)
check_decl(strerror string.h)
check_decl(strerror_r string.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)
check_compiles(HAVE_STRERROR_R_CHAR_P "char x, y = *strerror_r(0,&x,1);" string.h)
check_decl(abi::__cxa_demangle cxxabi.h)
@@
-116,9
+117,15
@@
check_decl(abi::__cxa_demangle cxxabi.h)
find_package(Backtrace)
if(Backtrace_FOUND)
set(HAVE_BACKTRACE 1)
find_package(Backtrace)
if(Backtrace_FOUND)
set(HAVE_BACKTRACE 1)
+ set(BACKTRACE BACKTRACE)
+ add_library(BACKTRACE INTERFACE IMPORTED)
+ set_target_properties(BACKTRACE PROPERTIES
+ INTERFACE_LINK_LIBRARIES "${Backtrace_LIBRARIES}"
+ INTERFACE_INCLUDE_DIRECTORIES "${Backtrace_INCLUDE_DIR}")
endif()
check_type(in_port_t netinet/in.h)
check_header(cstdint)
check_header(cinttypes)
endif()
check_type(in_port_t netinet/in.h)
check_header(cstdint)
check_header(cinttypes)
+check_header(inttypes.h)