summaryrefslogtreecommitdiff
path: root/ext/spl/config.m4
blob: eea80921666f0bcd371eeaed0fc6c4537b419c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dnl $Id$
dnl config.m4 for extension SPL

PHP_ARG_ENABLE(spl, enable SPL suppport,
[  --disable-spl           Disable Standard PHP Library], yes)

if test "$PHP_SPL" != "no"; then
  if test "$ext_shared" = "yes"; then
    AC_MSG_ERROR(Cannot build SPL as a shared module)
  fi
  AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) 
  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, $ext_shared)
  PHP_ADD_EXTENSION_DEP(spl, simplexml)
fi