File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
scripts/autotools/libmongocrypt Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ if test "$PHP_MONGODB" != "no"; then
266
266
267
267
if test "$PHP_LIBBSON" = "no" -a "$PHP_LIBMONGOC" = "no"; then
268
268
PHP_MONGODB_BUNDLED_CFLAGS="$STD_CFLAGS -DBSON_COMPILATION -DMONGOC_COMPILATION"
269
+ PHP_MONGODB_LIBMONGOCRYPT_CFLAGS="$PHP_MONGODB_BUNDLED_CFLAGS -std=gnu99"
269
270
270
271
dnl M4 doesn't know if we're building statically or as a shared module, so
271
272
dnl attempt to include both paths while ignoring errors. If neither path
@@ -385,7 +386,6 @@ if test "$PHP_MONGODB" != "no"; then
385
386
386
387
if test "$PHP_CLIENT_SIDE_ENCRYPTION" = "yes"; then
387
388
dnl TODO: MONGOCRYPT-219 makes the -std argument obsolete
388
- PHP_MONGODB_LIBMONGOCRYPT_CFLAGS="$PHP_MONGODB_BUNDLED_CFLAGS -std=gnu99"
389
389
390
390
AC_SUBST ( MONGOCRYPT_ENABLE_TRACE , 1 )
391
391
AC_SUBST ( MONGOCRYPT_IS_POSIX , 1 )
Original file line number Diff line number Diff line change @@ -11,13 +11,16 @@ if test "$PHP_CLIENT_SIDE_ENCRYPTION" != "no"; then
11
11
AC_SUBST ( MONGOCRYPT_ENABLE_CRYPTO , 1 )
12
12
AC_SUBST ( MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO , 0 )
13
13
AC_SUBST ( MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO , 1 )
14
+
15
+ PHP_MONGODB_LIBMONGOCRYPT_CFLAGS="$PHP_MONGODB_LIBMONGOCRYPT_CFLAGS -DKMS_MESSAGE_ENABLE_CRYPTO=1 -DKMS_MESSAGE_ENABLE_CRYPTO_COMMON_CRYPTO=1"
14
16
elif test "$PHP_MONGODB_SSL" = "openssl" -o "$PHP_MONGODB_SSL" = "libressl"; then
15
17
PHP_CLIENT_SIDE_ENCRYPTION="yes"
16
18
17
- AC_SUBST ( MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION , 1 )
18
19
AC_SUBST ( MONGOCRYPT_ENABLE_CRYPTO , 1 )
19
20
AC_SUBST ( MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO , 1 )
20
21
AC_SUBST ( MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO , 0 )
22
+
23
+ PHP_MONGODB_LIBMONGOCRYPT_CFLAGS="$PHP_MONGODB_LIBMONGOCRYPT_CFLAGS -DKMS_MESSAGE_ENABLE_CRYPTO=1 -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO=1"
21
24
elif test "$PHP_CLIENT_SIDE_ENCRYPTION" = "auto"; then
22
25
PHP_CLIENT_SIDE_ENCRYPTION="no"
23
26
You can’t perform that action at this time.
0 commit comments