2018-07-03 08:52:16 +08:00
|
|
|
dnl config.m4 for extension openssl
|
2003-06-24 22:05:26 +08:00
|
|
|
|
2019-03-03 23:44:16 +08:00
|
|
|
PHP_ARG_WITH([openssl],
|
|
|
|
[for OpenSSL support],
|
|
|
|
[AS_HELP_STRING([--with-openssl],
|
|
|
|
[Include OpenSSL support (requires OpenSSL >= 1.0.1)])])
|
2003-06-24 22:05:26 +08:00
|
|
|
|
2019-03-03 23:44:16 +08:00
|
|
|
PHP_ARG_WITH([kerberos],
|
|
|
|
[for Kerberos support],
|
2019-04-19 12:57:35 +08:00
|
|
|
[AS_HELP_STRING([--with-kerberos],
|
2019-03-03 23:44:16 +08:00
|
|
|
[OPENSSL: Include Kerberos support])],
|
|
|
|
[no],
|
|
|
|
[no])
|
2004-12-30 22:50:06 +08:00
|
|
|
|
2019-03-03 23:44:16 +08:00
|
|
|
PHP_ARG_WITH([system-ciphers],
|
|
|
|
[whether to use system default cipher list instead of hardcoded value],
|
|
|
|
[AS_HELP_STRING([--with-system-ciphers],
|
|
|
|
[OPENSSL: Use system default cipher list instead of hardcoded value])],
|
|
|
|
[no],
|
|
|
|
[no])
|
2014-09-24 16:34:55 +08:00
|
|
|
|
2003-06-24 22:05:26 +08:00
|
|
|
if test "$PHP_OPENSSL" != "no"; then
|
2005-01-01 22:32:59 +08:00
|
|
|
PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared)
|
2004-12-30 22:50:06 +08:00
|
|
|
PHP_SUBST(OPENSSL_SHARED_LIBADD)
|
|
|
|
|
|
|
|
if test "$PHP_KERBEROS" != "no"; then
|
2019-04-20 22:12:54 +08:00
|
|
|
PKG_CHECK_MODULES([KERBEROS], [krb5-gssapi krb5])
|
|
|
|
|
|
|
|
PHP_EVAL_INCLINE($KERBEROS_CFLAGS)
|
|
|
|
PHP_EVAL_LIBLINE($KERBEROS_LIBS, OPENSSL_SHARED_LIBADD)
|
2004-12-30 22:50:06 +08:00
|
|
|
fi
|
|
|
|
|
2015-03-27 20:24:36 +08:00
|
|
|
AC_CHECK_FUNCS([RAND_egd])
|
2007-05-28 21:46:24 +08:00
|
|
|
|
2018-07-29 09:43:45 +08:00
|
|
|
PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD,
|
2003-06-24 22:05:26 +08:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
|
|
|
|
], [
|
|
|
|
AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
|
|
|
|
])
|
2014-09-24 16:34:55 +08:00
|
|
|
if test "$PHP_SYSTEM_CIPHERS" != "no"; then
|
|
|
|
AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
|
|
|
|
fi
|
2003-06-24 22:05:26 +08:00
|
|
|
fi
|