@@ -104,33 +104,6 @@ OPTION(USE_ARIA_FOR_TMP_TABLES "Use Aria for temporary tables" ON)
104
104
# S3
105
105
#
106
106
INCLUDE (CheckIncludeFiles )
107
- INCLUDE (CheckCSourceRuns )
108
-
109
- SET (CURL_SSL_TEST_SOURCE "\n
110
- #include <curl/curl.h>\n
111
- #include <stdlib.h>\n
112
- #include <string.h>\n
113
- int main(void)\n
114
- {\n
115
- curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);\n
116
- \n
117
- if (data->ssl_version)\n
118
- {\n
119
- if (strncmp(data->ssl_version, \" OpenSSL\" , 7) != 0)\n
120
- {\n
121
- return EXIT_SUCCESS;\n
122
- }\n
123
- if (data->ssl_version[8] == '0')\n
124
- {\n
125
- return EXIT_FAILURE;\n
126
- }\n
127
- if ((data->ssl_version[8] == '1') && (data->ssl_version[10] == '0'))\n
128
- {\n
129
- return EXIT_FAILURE;\n
130
- }\n
131
- }\n
132
- return EXIT_SUCCESS;\n
133
- }" )
134
107
135
108
SET (S3_SOURCES ha_s3.cc s3_func.c
136
109
libmarias3/src/debug.c libmarias3/src/error.c libmarias3/src/marias3.c
@@ -148,21 +121,12 @@ IF (CURL_FOUND)
148
121
ENDIF ()
149
122
150
123
IF (TARGET s3 )
151
- SET (CMAKE_REQUIRED_LIBRARIES curl )
152
- CHECK_C_SOURCE_RUNS ("${CURL_SSL_TEST_SOURCE} " FOUND_SAFE_CURL_SSL )
153
- UNSET (CMAKE_REQUIRED_LIBRARIES )
154
124
MYSQL_ADD_EXECUTABLE (aria_s3_copy aria_s3_copy.cc COMPONENT Server )
155
125
TARGET_LINK_LIBRARIES (aria_s3_copy s3 )
156
126
157
127
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR} /libmarias3 )
158
128
159
129
ADD_DEFINITIONS (-DWITH_S3_STORAGE_ENGINE )
160
- IF (FOUND_SAFE_CURL_SSL )
161
- MESSAGE (STATUS "Found thread safe curl ssl" )
162
- ELSE ()
163
- MESSAGE (STATUS "Found thread unsafe curl ssl, locks added" )
164
- ADD_DEFINITIONS (-DHAVE_CURL_OPENSSL_UNSAFE )
165
- ENDIF ()
166
130
167
131
TARGET_LINK_LIBRARIES (aria s3 )
168
132
ENDIF ()
0 commit comments