1PHP_ARG_ENABLE(ds, whether to enable ds support, 2[ --enable-ds Enable ds support]) 3 4if test "$PHP_DS" != "no"; then 5 PHP_NEW_EXTENSION(ds, \ 6 \ 7 src/common.c \ 8 \ 9dnl Internal 10 src/ds/ds_vector.c \ 11 src/ds/ds_deque.c \ 12 src/ds/ds_htable.c \ 13 src/ds/ds_set.c \ 14 src/ds/ds_map.c \ 15 src/ds/ds_stack.c \ 16 src/ds/ds_priority_queue.c \ 17 src/ds/ds_queue.c \ 18 \ 19 src/php/objects/php_vector.c \ 20 src/php/objects/php_deque.c \ 21 src/php/objects/php_map.c \ 22 src/php/objects/php_pair.c \ 23 src/php/objects/php_priority_queue.c \ 24 src/php/objects/php_queue.c \ 25 src/php/objects/php_set.c \ 26 src/php/objects/php_stack.c \ 27 \ 28dnl Iterators 29 src/php/iterators/php_vector_iterator.c \ 30 src/php/iterators/php_deque_iterator.c \ 31 src/php/iterators/php_set_iterator.c \ 32 src/php/iterators/php_map_iterator.c \ 33 src/php/iterators/php_stack_iterator.c \ 34 src/php/iterators/php_htable_iterator.c \ 35 src/php/iterators/php_priority_queue_iterator.c \ 36 src/php/iterators/php_queue_iterator.c \ 37 \ 38dnl Handlers 39 src/php/handlers/php_common_handlers.c \ 40 src/php/handlers/php_vector_handlers.c \ 41 src/php/handlers/php_deque_handlers.c \ 42 src/php/handlers/php_set_handlers.c \ 43 src/php/handlers/php_map_handlers.c \ 44 src/php/handlers/php_stack_handlers.c \ 45 src/php/handlers/php_pair_handlers.c \ 46 src/php/handlers/php_priority_queue_handlers.c \ 47 src/php/handlers/php_queue_handlers.c \ 48 \ 49dnl Interfaces 50 src/php/classes/php_hashable_ce.c \ 51 src/php/classes/php_collection_ce.c \ 52 src/php/classes/php_sequence_ce.c \ 53 \ 54dnl Classes 55 src/php/classes/php_vector_ce.c \ 56 src/php/classes/php_deque_ce.c \ 57 src/php/classes/php_set_ce.c \ 58 src/php/classes/php_map_ce.c \ 59 src/php/classes/php_stack_ce.c \ 60 src/php/classes/php_pair_ce.c \ 61 src/php/classes/php_priority_queue_ce.c \ 62 src/php/classes/php_queue_ce.c \ 63 \ 64 php_ds.c \ 65 \ 66 , $ext_shared, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) 67 68 PHP_ADD_BUILD_DIR($ext_builddir/src, 1) 69 PHP_ADD_BUILD_DIR($ext_builddir/src/ds, 1) 70 PHP_ADD_BUILD_DIR($ext_builddir/src/php, 1) 71 PHP_ADD_BUILD_DIR($ext_builddir/src/php/objects, 1) 72 PHP_ADD_BUILD_DIR($ext_builddir/src/php/classes, 1) 73 PHP_ADD_BUILD_DIR($ext_builddir/src/php/iterators, 1) 74 PHP_ADD_BUILD_DIR($ext_builddir/src/php/handlers, 1) 75 76 PHP_ADD_EXTENSION_DEP(ds, spl) 77 PHP_ADD_EXTENSION_DEP(ds, json) 78fi 79 80 81