File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,8 @@ if test "$PHP_MONGODB" != "no"; then
75
75
PHP_CHECK_GCC_ARG(-Wno-unused-but-set-variable, _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wno-unused-but-set-variable")
76
76
PHP_CHECK_GCC_ARG(-Wno-missing-field-initializers, _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wno-missing-field-initializers")
77
77
78
- AC_SUBST ( MONGOC_ENABLE_DEBUG_ASSERTIONS , 1 )
79
-
80
78
MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS"
81
79
STD_CFLAGS="-g -O0 -Wall"
82
- else
83
- AC_SUBST ( MONGOC_ENABLE_DEBUG_ASSERTIONS , 0 )
84
80
fi
85
81
86
82
@@ -369,6 +365,12 @@ if test "$PHP_MONGODB" != "no"; then
369
365
AC_SUBST ( MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION , 0 )
370
366
fi
371
367
368
+ if test "$PHP_MONGODB_DEVELOPER_FLAGS" = "yes"; then
369
+ AC_SUBST ( MONGOC_ENABLE_DEBUG_ASSERTIONS , 1 )
370
+ else
371
+ AC_SUBST ( MONGOC_ENABLE_DEBUG_ASSERTIONS , 0 )
372
+ fi
373
+
372
374
dnl On MacOS, use gcut from the coreutils brew package instead of cut
373
375
dnl Generated with: find src/libmongoc/src/common -name '*.c' -print0 | cut -sz -d / -f 5- | sort -dz | tr '\000' ' '
374
376
PHP_MONGODB_COMMON_SOURCES="common-b64.c common-md5.c common-thread.c"
You can’t perform that action at this time.
0 commit comments