You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPC-2647, PHPC-2715: Fix all possible build configurations (standalone vs. in-tree, in-source vs. out-of-source) (#2014)
* PHPC-2647: Write generated config headers to extension build directory
Use PHP_EXT_BUILDDIR as the base for all AC_CONFIG_FILES paths so that
generated config headers (common-config.h, bson/config.h, mongoc-config.h,
etc.) are written to the extension's build directory rather than its source
directory, keeping the source tree clean for out-of-source builds.
Add PHP_MONGODB_ADD_BUILD_INCLUDE to php_mongodb.m4 as the counterpart to
PHP_MONGODB_ADD_INCLUDE: it adds a compiler include path relative to the
extension build directory (PHP_EXT_BUILDDIR), which is needed so the
compiler can find the generated config headers regardless of whether the
build is in-source or out-of-source.
Call PHP_MONGODB_ADD_BUILD_INCLUDE for each directory that receives a
generated header via AC_CONFIG_FILES: common/src, libbson/src/bson,
libmongoc/src/mongoc, and conditionally zlib-1.3.1 and libmongocrypt/src.
* Test both in-source and out-of-source for in-tree builds
* Correctly expand build directory before adding as include
* Fail on unsupported modes
* Fix comment to match matrix value (in-source, not from-source)
0 commit comments