@@ -127,6 +127,7 @@ if test "$PHP_MONGODB" != "no"; then
127127 PHP_MONGODB_SOURCES="\
128128 php_phongo.c \
129129 src/phongo_apm.c \
130+ src/phongo_atomic.c \
130131 src/phongo_bson.c \
131132 src/phongo_bson_encode.c \
132133 src/phongo_client.c \
@@ -276,26 +277,26 @@ if test "$PHP_MONGODB" != "no"; then
276277 PHP_MONGODB_MONGOCRYPT_VERSION_STRING="None"
277278
278279 if test "$PHP_MONGODB_SYSTEM_LIBS" != "no"; then
279- PKG_CHECK_MODULES([ PHP_MONGODB_BSON] , [ libbson-1.0 >= 1.28.1 ] , [
280+ PKG_CHECK_MODULES([ PHP_MONGODB_BSON] , [ libbson-1.0 >= 1.29.0 ] , [
280281 PHP_MONGODB_BSON_VERSION=`$PKG_CONFIG libbson-1.0 --modversion`
281282 PHP_MONGODB_BSON_VERSION_STRING="System ($PHP_MONGODB_BSON_VERSION)"
282283
283284 PHP_MONGODB_CFLAGS="$PHP_MONGODB_CFLAGS $PHP_MONGODB_BSON_CFLAGS"
284285 PHP_EVAL_LIBLINE($PHP_MONGODB_BSON_LIBS, MONGODB_SHARED_LIBADD)
285286 AC_DEFINE ( HAVE_SYSTEM_LIBBSON , 1 , [ Use system libbson] )
286287 ] ,[
287- AC_MSG_ERROR ( [ Could not find system library for libbson >= 1.28.1 ] )
288+ AC_MSG_ERROR ( [ Could not find system library for libbson >= 1.29.0 ] )
288289 ] )
289290
290- PKG_CHECK_MODULES([ PHP_MONGODB_MONGOC] , [ libmongoc-1.0 >= 1.28.1 ] , [
291+ PKG_CHECK_MODULES([ PHP_MONGODB_MONGOC] , [ libmongoc-1.0 >= 1.29.0 ] , [
291292 PHP_MONGODB_BSON_VERSION=`$PKG_CONFIG libbson-1.0 --modversion`
292293 PHP_MONGODB_BSON_VERSION_STRING="System ($PHP_MONGODB_BSON_VERSION)"
293294
294295 PHP_MONGODB_CFLAGS="$PHP_MONGODB_CFLAGS $PHP_MONGODB_MONGOC_CFLAGS"
295296 PHP_EVAL_LIBLINE($PHP_MONGODB_MONGOC_LIBS, MONGODB_SHARED_LIBADD)
296297 AC_DEFINE ( HAVE_SYSTEM_LIBMONGOC , 1 , [ Use system libmongoc] )
297298 ] ,[
298- AC_MSG_ERROR ( Could not find system library for libmongoc >= 1.28.1 )
299+ AC_MSG_ERROR ( Could not find system library for libmongoc >= 1.29.0 )
299300 ] )
300301
301302 if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" != "no"; then
@@ -394,26 +395,26 @@ if test "$PHP_MONGODB" != "no"; then
394395 fi
395396
396397 dnl Sources below are updated by scripts/update-submodule-sources.php
397- PHP_MONGODB_COMMON_SOURCES="common-b64.c common-md5.c common-thread.c"
398+ PHP_MONGODB_COMMON_SOURCES="common-atomic.c common- b64.c common-md5.c common-thread.c"
398399 PHP_MONGODB_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"
399400 PHP_MONGODB_BSON_SOURCES="bcon.c bson-atomic.c bson.c bson-clock.c bson-context.c bson-decimal128.c bson-error.c bson-iso8601.c bson-iter.c bson-json.c bson-keys.c bson-md5.c bson-memory.c bson-oid.c bson-reader.c bson-string.c bson-timegm.c bson-utf8.c bson-value.c bson-version-functions.c bson-writer.c"
400401 PHP_MONGODB_JSONSL_SOURCES="jsonsl.c"
401402 PHP_MONGODB_MONGOC_SOURCES="mcd-azure.c mcd-nsinfo.c mcd-rpc.c mongoc-aggregate.c mongoc-apm.c mongoc-array.c mongoc-async.c mongoc-async-cmd.c mongoc-buffer.c mongoc-bulk-operation.c mongoc-bulkwrite.c mongoc-change-stream.c mongoc-client.c mongoc-client-pool.c mongoc-client-session.c mongoc-client-side-encryption.c mongoc-cluster-aws.c mongoc-cluster.c mongoc-cluster-cyrus.c mongoc-cluster-sasl.c mongoc-cluster-sspi.c mongoc-cmd.c mongoc-collection.c mongoc-compression.c mongoc-counters.c mongoc-crypt.c mongoc-crypto.c mongoc-crypto-cng.c mongoc-crypto-common-crypto.c mongoc-crypto-openssl.c mongoc-cursor-array.c mongoc-cursor.c mongoc-cursor-change-stream.c mongoc-cursor-cmd.c mongoc-cursor-cmd-deprecated.c mongoc-cursor-find.c mongoc-cursor-find-cmd.c mongoc-cursor-find-opquery.c mongoc-cursor-legacy.c mongoc-cyrus.c mongoc-database.c mongoc-deprioritized-servers.c mongoc-error.c mongoc-find-and-modify.c mongoc-flags.c mongoc-generation-map.c mongoc-gridfs-bucket.c mongoc-gridfs-bucket-file.c mongoc-gridfs.c mongoc-gridfs-file.c mongoc-gridfs-file-list.c mongoc-gridfs-file-page.c mongoc-handshake.c mongoc-host-list.c mongoc-http.c mongoc-index.c mongoc-init.c mongoc-interrupt.c mongoc-libressl.c mongoc-linux-distro-scanner.c mongoc-list.c mongoc-log.c mongoc-matcher.c mongoc-matcher-op.c mongoc-memcmp.c mongoc-ocsp-cache.c mongoc-opcode.c mongoc-openssl.c mongoc-optional.c mongoc-opts.c mongoc-opts-helpers.c mongoc-queue.c mongoc-rand-cng.c mongoc-rand-common-crypto.c mongoc-rand-openssl.c mongoc-read-concern.c mongoc-read-prefs.c mongoc-rpc.c mongoc-sasl.c mongoc-scram.c mongoc-secure-channel.c mongoc-secure-transport.c mongoc-server-api.c mongoc-server-description.c mongoc-server-monitor.c mongoc-server-stream.c mongoc-set.c mongoc-shared.c mongoc-socket.c mongoc-ssl.c mongoc-sspi.c mongoc-stream-buffered.c mongoc-stream.c mongoc-stream-file.c mongoc-stream-gridfs.c mongoc-stream-gridfs-download.c mongoc-stream-gridfs-upload.c mongoc-stream-socket.c mongoc-stream-tls.c mongoc-stream-tls-libressl.c mongoc-stream-tls-openssl-bio.c mongoc-stream-tls-openssl.c mongoc-stream-tls-secure-channel.c mongoc-stream-tls-secure-transport.c mongoc-timeout.c mongoc-topology-background-monitoring.c mongoc-topology.c mongoc-topology-description-apm.c mongoc-topology-description.c mongoc-topology-scanner.c mongoc-ts-pool.c mongoc-uri.c mongoc-util.c mongoc-version-functions.c mongoc-write-command.c mongoc-write-concern.c service-gcp.c"
402403 PHP_MONGODB_UTF8PROC_SOURCES="utf8proc.c"
403404 PHP_MONGODB_ZLIB_SOURCES="adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c"
404405
405- PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/common/] , $PHP_MONGODB_COMMON_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
406+ PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/common/src/ ] , $PHP_MONGODB_COMMON_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
406407 PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/libbson/src/bson/] , $PHP_MONGODB_BSON_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
407408 PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/libbson/src/jsonsl/] , $PHP_MONGODB_JSONSL_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
408409 PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/libmongoc/src/mongoc/] , $PHP_MONGODB_MONGOC_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
409410
410- PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/common/] )
411+ PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/common/src/ ] )
411412 PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/uthash/] )
412413 PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/libbson/src/] )
413414 PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/libbson/src/jsonsl/] )
414415 PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/libmongoc/src/] )
415416
416- PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/common/] )
417+ PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/common/src/ ] )
417418 PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/libbson/src/bson/] )
418419 PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/libbson/src/jsonsl/] )
419420 PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/libmongoc/src/mongoc/] )
@@ -431,7 +432,7 @@ if test "$PHP_MONGODB" != "no"; then
431432 ac_config_dir=PHP_EXT_SRCDIR(mongodb)
432433
433434 AC_CONFIG_FILES ( [
434- ${ac_config_dir}/src/libmongoc/src/common/common-config.h
435+ ${ac_config_dir}/src/libmongoc/src/common/src/ common-config.h
435436 ${ac_config_dir}/src/libmongoc/src/libbson/src/bson/bson-config.h
436437 ${ac_config_dir}/src/libmongoc/src/libbson/src/bson/bson-version.h
437438 ${ac_config_dir}/src/libmongoc/src/libmongoc/src/mongoc/mongoc-config.h
0 commit comments