patch-acinclude_m4 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $OpenBSD: patch-acinclude_m4,v 1.1.1.1 2013/08/07 16:46:56 robert Exp $
  2. --- acinclude.m4.orig.port Sun Jul 28 10:54:23 2013
  3. +++ acinclude.m4 Sun Jul 28 10:55:00 2013
  4. @@ -984,15 +984,9 @@ dnl ---------------------------------------------- Sha
  5. if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then
  6. dnl ---------------------------------------------- CLI static module
  7. [PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no
  8. - case "$PHP_SAPI" in
  9. - cgi|embed[)]
  10. - PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,)
  11. - EXT_STATIC="$EXT_STATIC $1"
  12. - ;;
  13. - *[)]
  14. PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cli)
  15. - ;;
  16. - esac
  17. + PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cgi)
  18. + PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,fpm)
  19. EXT_CLI_STATIC="$EXT_CLI_STATIC $1"
  20. fi
  21. PHP_ADD_BUILD_DIR($ext_builddir)
  22. @@ -1042,12 +1036,6 @@ You either need to build $1 shared or build $2 statica
  23. build to be successful.
  24. ])
  25. fi
  26. - if test "x$is_it_enabled" = "xno" && test "x$3" != "xtrue"; then
  27. - AC_MSG_ERROR([
  28. -You've configured extension $1, which depends on extension $2,
  29. -but you've either not enabled $2, or have disabled it.
  30. -])
  31. - fi
  32. dnl Some systems require that we link $2 to $1 when building
  33. ])
  34. @@ -2320,9 +2308,9 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
  35. test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
  36. dnl Fallbacks for different configure options
  37. - if test "$PHP_OPENSSL" != "no"; then
  38. + if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
  39. PHP_OPENSSL_DIR=$PHP_OPENSSL
  40. - elif test "$PHP_IMAP_SSL" != "no"; then
  41. + elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
  42. PHP_OPENSSL_DIR=$PHP_IMAP_SSL
  43. fi