Skip to content

Commit

Permalink
cmake: check for HAVE_RADOS_NAMESPACES and HAVE_RADOS_NOBJECTS_LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed May 14, 2018
1 parent 6a5e23a commit 48f6c9a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/cmake/BareosCheckFunctions.cmake
Expand Up @@ -18,6 +18,7 @@
# 02110-1301, USA.

INCLUDE (CheckFunctionExists)

CHECK_FUNCTION_EXISTS(strtoll HAVE_STRTOLL)
CHECK_FUNCTION_EXISTS(backtrace HAVE_BACKTRACE)
CHECK_FUNCTION_EXISTS(backtrace_symbols HAVE_BACKTRACE_SYMBOLS)
Expand Down
1 change: 0 additions & 1 deletion core/cmake/BareosCheckIncludes.cmake
Expand Up @@ -20,7 +20,6 @@

INCLUDE (CheckIncludeFiles)


CHECK_INCLUDE_FILES(rpc/rpc.h HAVE_RPC_RPC_H)
CHECK_INCLUDE_FILES(alloca.h HAVE_ALLOCA_H)
CHECK_INCLUDE_FILES(tcpd.h HAVE_TCPD_H)
Expand Down
10 changes: 10 additions & 0 deletions core/cmake/BareosCheckSymbols.cmake
Expand Up @@ -23,6 +23,8 @@ INCLUDE (CheckSymbolExists)
CHECK_SYMBOL_EXISTS(__stub_lchmod features.h LCHMOD_IS_A_STUB1)
CHECK_SYMBOL_EXISTS(__stub___lchmod features_h LCHMOD_IS_A_STUB2)



if ("${LCHMOD_IS_A_STUB1}" OR "${LCHMOD_IS_A_STUB2}")
MESSAGE(STATUS " lchmod is a stub, setting HAVE_LCHMOD to 0")
set (HAVE_LCHMOD 0)
Expand All @@ -37,3 +39,11 @@ CHECK_SYMBOL_EXISTS(dlerror dlfcn.h HAVE_DLERROR)
cmake_pop_check_state()

CHECK_SYMBOL_EXISTS(va_copy stdarg.h HAVE_VA_COPY)


cmake_push_check_state()
SET(CMAKE_REQUIRED_LIBRARIES ${RADOS_LIBRARIES})
CHECK_SYMBOL_EXISTS(rados_ioctx_set_namespace rados/librados.h HAVE_RADOS_NAMESPACES)
CHECK_SYMBOL_EXISTS(rados_nobjects_list_open rados/librados.h HAVE_RADOS_NOBJECTS_LIST)
cmake_pop_check_state()

0 comments on commit 48f6c9a

Please sign in to comment.