Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.656 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
PHP_ARG_ENABLE(mongo, whether to enable Mongo extension,
[ --enable-mongo Enable Mongo extension])

PHP_ARG_ENABLE(osx, whether to compile for the gaggle of osx architectures,
[ --enable-osx Compile for the gaggle of osx architectures], no, no)

if test "$PHP_MONGO" != "no"; then
  AC_DEFINE(HAVE_MONGO, 1, [Whether you have Mongo extension])
  PHP_NEW_EXTENSION(mongo, mongo.c mongo_types.c bson.c cursor.c collection.c db.c gridfs.c, $ext_shared)

  PHP_ADD_EXTENSION_DEP(mongo, date, false)
  PHP_ADD_EXTENSION_DEP(mongo, spl, false)

  if test "$PHP_OSX" != "no"; then
    CFLAGS="$CFLAGS -arch i386 -arch x86_64 -arch ppc -arch ppc64"
Something went wrong with that request. Please try again.