config.m4 851 B

123456789101112131415161718192021222324252627
  1. PHP_ARG_ENABLE([phar],
  2. [for phar archive support],
  3. [AS_HELP_STRING([--disable-phar],
  4. [Disable phar support])],
  5. [yes])
  6. if test "$PHP_PHAR" != "no"; then
  7. PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
  8. AC_MSG_CHECKING([for phar openssl support])
  9. if test "$PHP_OPENSSL_SHARED" = "yes"; then
  10. AC_MSG_RESULT([no (shared openssl)])
  11. else
  12. if test "$PHP_OPENSSL" = "yes"; then
  13. AC_MSG_RESULT([yes])
  14. AC_DEFINE(PHAR_HAVE_OPENSSL,1,[ ])
  15. else
  16. AC_MSG_RESULT([no])
  17. fi
  18. fi
  19. PHP_ADD_EXTENSION_DEP(phar, hash, true)
  20. PHP_ADD_EXTENSION_DEP(phar, spl, true)
  21. PHP_ADD_MAKEFILE_FRAGMENT
  22. PHP_INSTALL_HEADERS([ext/phar], [php_phar.h])
  23. PHP_OUTPUT(ext/phar/phar.1 ext/phar/phar.phar.1)
  24. fi