config.m4 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. PHP_ARG_WITH(xlsxwriter, xlswriter support,
  2. [ --with-xlswriter Include xlswriter support])
  3. if test "$PHP_XLSWRITER" != "no"; then
  4. xls_writer_sources="
  5. library/third_party/minizip/ioapi.c \
  6. library/third_party/minizip/mztools.c \
  7. library/third_party/minizip/unzip.c \
  8. library/third_party/minizip/zip.c \
  9. library/third_party/tmpfileplus/tmpfileplus.c \
  10. library/src/app.c \
  11. library/src/chart.c \
  12. library/src/content_types.c \
  13. library/src/core.c \
  14. library/src/custom.c \
  15. library/src/drawing.c \
  16. library/src/format.c \
  17. library/src/hash_table.c \
  18. library/src/packager.c \
  19. library/src/relationships.c \
  20. library/src/shared_strings.c \
  21. library/src/styles.c \
  22. library/src/theme.c \
  23. library/src/utility.c \
  24. library/src/workbook.c \
  25. library/src/worksheet.c \
  26. library/src/xmlwriter.c \
  27. xls_writer.c \
  28. kernel/exception.c \
  29. kernel/resource.c \
  30. kernel/common.c \
  31. kernel/excel.c \
  32. kernel/write.c \
  33. kernel/format.c"
  34. if test -z "$PHP_DEBUG"; then
  35. AC_ARG_ENABLE(debug, [--enable-debug compile with debugging system], [PHP_DEBUG=$enableval],[PHP_DEBUG=no])
  36. fi
  37. PHP_ADD_INCLUDE($XLSWRITER_DIR/include)
  38. PHP_NEW_EXTENSION(xlswriter, $xls_writer_sources, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
  39. PHP_ADD_BUILD_DIR([$ext_builddir/kernel])
  40. fi