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