File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ if test "$PHP_MONGODB" != "no"; then
390
390
391
391
dnl If compiling without libmongocrypt, use kms_message sources bundled with libmongoc.
392
392
dnl If compiling with libmongocrypt, kms_message bundled with libmongocrypt is used as it is most likely newer.
393
- if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" != "yes"; then
393
+ if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" != "yes" && "$PHP_MONGODB_SSL" != "no" ; then
394
394
PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/kms-message/src/] , $PHP_MONGODB_KMS_MESSAGE_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
395
395
PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/kms-message/src/] )
396
396
PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/kms-message/src/] )
Original file line number Diff line number Diff line change @@ -285,8 +285,11 @@ if (PHP_MONGODB != "no") {
285
285
mongocrypt_opts
286
286
) ;
287
287
} else if ( PHP_MONGODB_CLIENT_SIDE_ENCRYPTION != "no" ) {
288
+ // No SSL library found, we can't enable libmongocrypt
288
289
WARNING ( "mongodb libmongocrypt support not enabled, crypto libs not found" ) ;
290
+ }
289
291
292
+ if ( PHP_MONGODB_CLIENT_SIDE_ENCRYPTION == "no" && mongoc_ssl_found ) {
290
293
// Add kms_message sources bundled with libmongoc
291
294
ADD_SOURCES ( configure_module_dirname + "/src/libmongoc/src/kms_message/src" , PHP_MONGODB_KMS_MESSAGE_SOURCES , "mongodb" ) ;
292
295
ADD_FLAG ( "CFLAGS_MONGODB" , "/I" + configure_module_dirname + "/src/libmongoc/src/kms-message/src" ) ;
You can’t perform that action at this time.
0 commit comments