@@ -243,14 +243,14 @@ if test "$PHP_MONGODB" != "no"; then
243
243
AC_PATH_PROG ( PKG_CONFIG , pkg-config , no )
244
244
AC_MSG_CHECKING ( for libbson )
245
245
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libbson-1.0; then
246
- if $PKG_CONFIG libbson-1.0 --atleast-version 1.20 .1; then
246
+ if $PKG_CONFIG libbson-1.0 --atleast-version 1.21 .1; then
247
247
PHP_MONGODB_BSON_CFLAGS=`$PKG_CONFIG libbson-1.0 --cflags`
248
248
PHP_MONGODB_BSON_LIBS=`$PKG_CONFIG libbson-1.0 --libs`
249
249
PHP_MONGODB_BSON_VERSION=`$PKG_CONFIG libbson-1.0 --modversion`
250
250
PHP_MONGODB_BSON_VERSION_STRING="System ($PHP_MONGODB_BSON_VERSION)"
251
251
AC_MSG_RESULT ( version $PHP_MONGODB_BSON_VERSION found )
252
252
else
253
- AC_MSG_ERROR ( system libbson must be upgraded to version >= 1.20 .1 )
253
+ AC_MSG_ERROR ( system libbson must be upgraded to version >= 1.21 .1 )
254
254
fi
255
255
else
256
256
AC_MSG_ERROR ( pkgconfig and libbson must be installed )
@@ -261,14 +261,14 @@ if test "$PHP_MONGODB" != "no"; then
261
261
262
262
AC_MSG_CHECKING ( for libmongoc )
263
263
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libmongoc-1.0; then
264
- if $PKG_CONFIG libmongoc-1.0 --atleast-version 1.20 .1; then
264
+ if $PKG_CONFIG libmongoc-1.0 --atleast-version 1.21 .1; then
265
265
PHP_MONGODB_MONGOC_CFLAGS=`$PKG_CONFIG libmongoc-1.0 --cflags`
266
266
PHP_MONGODB_MONGOC_LIBS=`$PKG_CONFIG libmongoc-1.0 --libs`
267
267
PHP_MONGODB_MONGOC_VERSION=`$PKG_CONFIG libmongoc-1.0 --modversion`
268
268
PHP_MONGODB_MONGOC_VERSION_STRING="System ($PHP_MONGODB_MONGOC_VERSION)"
269
269
AC_MSG_RESULT ( version $PHP_MONGODB_MONGOC_VERSION found )
270
270
else
271
- AC_MSG_ERROR ( system libmongoc must be upgraded to version >= 1.20 .1 )
271
+ AC_MSG_ERROR ( system libmongoc must be upgraded to version >= 1.21 .1 )
272
272
fi
273
273
else
274
274
AC_MSG_ERROR ( pkgconfig and libmongoc must be installed )
@@ -281,7 +281,7 @@ if test "$PHP_MONGODB" != "no"; then
281
281
AC_MSG_CHECKING ( for libmongocrypt )
282
282
283
283
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libmongocrypt; then
284
- if $PKG_CONFIG libmongocrypt --atleast-version 1.3.0 ; then
284
+ if $PKG_CONFIG libmongocrypt --atleast-version 1.3.2 ; then
285
285
PHP_MONGODB_MONGOCRYPT_CFLAGS=`$PKG_CONFIG libmongocrypt --cflags`
286
286
PHP_MONGODB_MONGOCRYPT_LIBS=`$PKG_CONFIG libmongocrypt --libs`
287
287
PHP_MONGODB_MONGOCRYPT_VERSION=`$PKG_CONFIG libmongocrypt --modversion`
@@ -292,7 +292,7 @@ if test "$PHP_MONGODB" != "no"; then
292
292
PHP_EVAL_LIBLINE($PHP_MONGODB_MONGOCRYPT_LIBS, MONGODB_SHARED_LIBADD)
293
293
AC_DEFINE ( HAVE_SYSTEM_LIBMONGOCRYPT , 1 , [ Use system libmongocrypt] )
294
294
elif test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" = "yes"; then
295
- AC_MSG_ERROR ( system libmongocrypt must be upgraded to version >= 1.2.1 )
295
+ AC_MSG_ERROR ( system libmongocrypt must be upgraded to version >= 1.3.2 )
296
296
else
297
297
AC_MSG_RESULT ( found an older version , compiling without client-side encryption )
298
298
fi
@@ -309,7 +309,7 @@ if test "$PHP_MONGODB" != "no"; then
309
309
if test "$PHP_MONGODB_SYSTEM_LIBS" = "no"; then
310
310
PHP_MONGODB_BUNDLED_CFLAGS="$STD_CFLAGS -DBSON_COMPILATION -DMONGOC_COMPILATION"
311
311
dnl TODO: MONGOCRYPT-219 makes the -std argument obsolete
312
- PHP_MONGODB_LIBMONGOCRYPT_CFLAGS="-DKMS_MSG_STATIC -std=gnu99"
312
+ PHP_MONGODB_LIBMONGOCRYPT_CFLAGS="-DKMS_MSG_STATIC -DMLIB_USER - std=gnu99"
313
313
PHP_MONGODB_ZLIB_CFLAGS=""
314
314
315
315
dnl M4 doesn't know if we're building statically or as a shared module, so
@@ -465,11 +465,13 @@ if test "$PHP_MONGODB" != "no"; then
465
465
dnl Generated with: find src/libmongocrypt/src/crypto -name '*.c' -print0 | cut -sz -d / -f 5- | sort -dz | tr '\000' ' '
466
466
PHP_MONGODB_MONGOCRYPT_CRYPTO_SOURCES="cng.c commoncrypto.c libcrypto.c none.c"
467
467
468
+ dnl Note: src/libmongocrypt/src/mlib/ does not contain source files (as of libmongocrypt 1.3.2)
469
+
468
470
dnl Generated with: find src/libmongocrypt/src/os_posix -name '*.c' -print0 | cut -sz -d / -f 5- | sort -dz | tr '\000' ' '
469
- PHP_MONGODB_MONGOCRYPT_OS_POSIX_SOURCES="os_mutex .c os_once .c"
471
+ PHP_MONGODB_MONGOCRYPT_OS_POSIX_SOURCES="os_dll .c os_mutex .c"
470
472
471
473
dnl Generated with: find src/libmongocrypt/src/os_win -name '*.c' -print0 | cut -sz -d / -f 5- | sort -dz | tr '\000' ' '
472
- PHP_MONGODB_MONGOCRYPT_OS_WIN_SOURCES="os_mutex .c os_once .c"
474
+ PHP_MONGODB_MONGOCRYPT_OS_WIN_SOURCES="os_dll .c os_mutex .c"
473
475
474
476
dnl Generated with: find src/libmongocrypt/kms-message/src -maxdepth 1 -name '*.c' -print0 | cut -sz -d / -f 5- | sort -dz | tr '\000' ' '
475
477
PHP_MONGODB_MONGOCRYPT_KMS_MESSAGE_SOURCES="hexlify.c kms_azure_request.c kms_b64.c kms_caller_identity_request.c kms_crypto_apple.c kms_crypto_libcrypto.c kms_crypto_none.c kms_crypto_windows.c kms_decrypt_request.c kms_encrypt_request.c kms_gcp_request.c kms_kmip_reader_writer.c kms_kmip_request.c kms_kmip_response.c kms_kmip_response_parser.c kms_kv_list.c kms_message.c kms_port.c kms_request.c kms_request_opt.c kms_request_str.c kms_response.c kms_response_parser.c sort.c"
0 commit comments