mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-25 09:22:18 +01:00
* PHPC-2382: Allow static builds with php-src
Prefer PHP_VERSION_ID for static builds, and fall back to invoking php-config otherwise.
mongocrypt.h previously used a path relative to the PHPC project root, which is not compatible with static builds. The current path is relative to src/, which is explicitly defined as an include path in config.m4.
* Preserve CPPFLAGS before modification by PlatformFlags.m4
PlatformFlags.m4 modifies CPPFLAGS in order to make checks in subsequent M4 scripts consistent with PHP_MONGODB_BUNDLED_CFLAGS. Restoring its original value after executing all M4 scripts will avoid unintended side effects on a static PHP build.
* Remove obsolete STD_CFLAGS assignments
STD_CFLAGS was never appended to PHP_MONGODB_BUNDLED_CFLAGS after these M4 scripts were run, so it's safe to assume they had no effect and can be removed entirely.
For CheckCompiler.m4, bumping the GCC requirement to 4.6 (still quite old) will ensure compatibility for libmongoc's BEGIN_IGNORE_DEPRECATIONS macro.
* Prefix names of internal CFLAGS vars in config.m4
* Remove obsolete comment in config.m4
This comment should have been removed in d8d30e5a88
* Include CPPFLAGS in build config output
Co-authored-by: Andreas Braun <git@alcaeus.org>