config.m4 958 B

123456789101112131415161718192021222324252627282930313233
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_ENABLE(embed,,
  5. [ --enable-embed[=TYPE] EXPERIMENTAL: Enable building of embedded SAPI library
  6. TYPE is either 'shared' or 'static'. [TYPE=shared]], no, no)
  7. AC_MSG_CHECKING([for embedded SAPI library support])
  8. if test "$PHP_EMBED" != "no"; then
  9. case "$PHP_EMBED" in
  10. yes|shared)
  11. PHP_EMBED_TYPE=shared
  12. INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
  13. ;;
  14. static)
  15. PHP_EMBED_TYPE=static
  16. INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
  17. ;;
  18. *)
  19. PHP_EMBED_TYPE=no
  20. ;;
  21. esac
  22. if test "$PHP_EMBED_TYPE" != "no"; then
  23. PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
  24. PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
  25. fi
  26. AC_MSG_RESULT([$PHP_EMBED_TYPE])
  27. else
  28. AC_MSG_RESULT(no)
  29. fi