config0.m4 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_WITH(openssl, for OpenSSL support,
  5. [ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)])
  6. PHP_ARG_WITH(kerberos, for Kerberos support,
  7. [ --with-kerberos[=DIR] OPENSSL: Include Kerberos support], no, no)
  8. PHP_ARG_WITH(system-ciphers, whether to use system default cipher list instead of hardcoded value,
  9. [ --with-system-ciphers OPENSSL: Use system default cipher list instead of hardcoded value], no, no)
  10. if test "$PHP_OPENSSL" != "no"; then
  11. PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared)
  12. PHP_SUBST(OPENSSL_SHARED_LIBADD)
  13. if test "$PHP_KERBEROS" != "no"; then
  14. PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD)
  15. fi
  16. AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
  17. AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
  18. AC_CHECK_FUNCS([RAND_egd])
  19. PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD,
  20. [
  21. AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
  22. ], [
  23. AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
  24. ])
  25. if test "$PHP_SYSTEM_CIPHERS" != "no"; then
  26. AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
  27. fi
  28. fi