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