Commit 7c0cf204 authored by Sergei Golubchik's avatar Sergei Golubchik

update libmarias3

parent 7bb32cda
...@@ -104,33 +104,6 @@ OPTION(USE_ARIA_FOR_TMP_TABLES "Use Aria for temporary tables" ON) ...@@ -104,33 +104,6 @@ OPTION(USE_ARIA_FOR_TMP_TABLES "Use Aria for temporary tables" ON)
# S3 # S3
# #
INCLUDE (CheckIncludeFiles) INCLUDE (CheckIncludeFiles)
INCLUDE (CheckCSourceRuns)
SET(CURL_SSL_TEST_SOURCE "\n
#include <curl/curl.h>\n
#include <stdlib.h>\n
#include <string.h>\n
int main(void)\n
{\n
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);\n
\n
if (data->ssl_version)\n
{\n
if (strncmp(data->ssl_version, \"OpenSSL\", 7) != 0)\n
{\n
return EXIT_SUCCESS;\n
}\n
if (data->ssl_version[8] == '0')\n
{\n
return EXIT_FAILURE;\n
}\n
if ((data->ssl_version[8] == '1') && (data->ssl_version[10] == '0'))\n
{\n
return EXIT_FAILURE;\n
}\n
}\n
return EXIT_SUCCESS;\n
}")
SET(S3_SOURCES ha_s3.cc s3_func.c SET(S3_SOURCES ha_s3.cc s3_func.c
libmarias3/src/debug.c libmarias3/src/error.c libmarias3/src/marias3.c libmarias3/src/debug.c libmarias3/src/error.c libmarias3/src/marias3.c
...@@ -148,21 +121,12 @@ IF (CURL_FOUND) ...@@ -148,21 +121,12 @@ IF (CURL_FOUND)
ENDIF() ENDIF()
IF(TARGET s3) IF(TARGET s3)
SET(CMAKE_REQUIRED_LIBRARIES curl)
CHECK_C_SOURCE_RUNS("${CURL_SSL_TEST_SOURCE}" FOUND_SAFE_CURL_SSL)
UNSET(CMAKE_REQUIRED_LIBRARIES)
MYSQL_ADD_EXECUTABLE(aria_s3_copy aria_s3_copy.cc COMPONENT Server) MYSQL_ADD_EXECUTABLE(aria_s3_copy aria_s3_copy.cc COMPONENT Server)
TARGET_LINK_LIBRARIES(aria_s3_copy s3) TARGET_LINK_LIBRARIES(aria_s3_copy s3)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/libmarias3) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/libmarias3)
ADD_DEFINITIONS(-DWITH_S3_STORAGE_ENGINE) ADD_DEFINITIONS(-DWITH_S3_STORAGE_ENGINE)
IF (FOUND_SAFE_CURL_SSL)
MESSAGE(STATUS "Found thread safe curl ssl")
ELSE ()
MESSAGE(STATUS "Found thread unsafe curl ssl, locks added")
ADD_DEFINITIONS(-DHAVE_CURL_OPENSSL_UNSAFE)
ENDIF ()
TARGET_LINK_LIBRARIES(aria s3) TARGET_LINK_LIBRARIES(aria s3)
ENDIF() ENDIF()
Subproject commit 8727cf74fd9fe641ee1b200486036f311e2bd09b Subproject commit d172e86c16224b4e0229ca6f102e662a2315aeff
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment