Return to config.m4 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / spl |
1.1 ! misho 1: dnl $Id: config.m4 268395 2008-11-06 00:37:13Z colder $ ! 2: dnl config.m4 for extension SPL ! 3: ! 4: AC_MSG_CHECKING(whether zend_object_value is packed) ! 5: old_CPPFLAGS=$CPPFLAGS ! 6: CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS" ! 7: AC_TRY_RUN([ ! 8: #include "Zend/zend_types.h" ! 9: int main(int argc, char **argv) { ! 10: return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1; ! 11: } ! 12: ], [ ! 13: ac_result=1 ! 14: AC_MSG_RESULT(yes) ! 15: ],[ ! 16: ac_result=0 ! 17: AC_MSG_RESULT(no) ! 18: ], [ ! 19: ac_result=0 ! 20: AC_MSG_RESULT(no) ! 21: ]) ! 22: CPPFLAGS=$old_CPPFLAGS ! 23: AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed]) ! 24: AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) ! 25: PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c, no) ! 26: PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h]) ! 27: PHP_ADD_EXTENSION_DEP(spl, pcre, true)