@@ -304,6 +304,26 @@ dnl libmongoc stuff {{{
304304 AC_SUBST ( MONGOC_ENABLE_SSL )
305305
306306
307+ PHP_ARG_WITH(pcre-dir, pcre-dir install prefix
308+ [ --with-pcre-dir[ =DIR] mongodb: pcre install prefix] , auto, yes)
309+
310+ if test "$PHP_PCRE_DIR" != "no"; then
311+ AC_MSG_CHECKING ( for pcre )
312+ for i in $PHP_PCRE_DIR /usr /usr/local; do
313+ if test -f $i/include/pcre.h; then
314+ MONGODB_PCRE_DIR=$i/include
315+ AC_MSG_RESULT ( found in $i )
316+ break
317+ fi
318+ done
319+
320+ if test -z "$MONGODB_PCRE_DIR"; then
321+ AC_MSG_RESULT ( not found )
322+ else
323+ PHP_ADD_INCLUDE($MONGODB_PCRE_DIR)
324+ fi
325+ fi
326+
307327PHP_ARG_WITH(mongodb-sasl, Build with Cyrus SASL support,
308328[ --with-mongodb-sasl[ =DIR] mongodb: Include Cyrus SASL support] , auto, yes)
309329
@@ -367,12 +387,14 @@ dnl }}}
367387
368388 PHP_ADD_INCLUDE([ $ext_srcdir/src/BSON/] )
369389 PHP_ADD_INCLUDE([ $ext_srcdir/src/MongoDB/] )
390+ PHP_ADD_INCLUDE([ $ext_srcdir/src/contrib/] )
370391 PHP_ADD_INCLUDE([ $ext_srcdir/src/libbson/src/] )
371392 PHP_ADD_INCLUDE([ $ext_srcdir/src/libbson/src/yajl/] )
372393 PHP_ADD_INCLUDE([ $ext_srcdir/src/libbson/src/bson/] )
373394 PHP_ADD_INCLUDE([ $ext_srcdir/src/libmongoc/src/mongoc/] )
374395 PHP_ADD_BUILD_DIR([ $ext_builddir/src/BSON/] )
375396 PHP_ADD_BUILD_DIR([ $ext_builddir/src/MongoDB/] )
397+ PHP_ADD_BUILD_DIR([ $ext_builddir/src/contrib/] )
376398 PHP_ADD_BUILD_DIR([ $ext_builddir/src/libbson/src/] )
377399 PHP_ADD_BUILD_DIR([ $ext_builddir/src/libbson/src/yajl/] )
378400 PHP_ADD_BUILD_DIR([ $ext_builddir/src/libbson/src/bson/] )
0 commit comments