Skip to content

Commit f382ccb

Browse files
committed
[skip ci] Fix log messages
1 parent 904cdca commit f382ccb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ext/phar/config.m4

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ PHP_ARG_ENABLE([phar],
44
[Disable phar support])],
55
[yes])
66

7+
dnl Empty variable means 'no' (for phpize builds).
8+
AS_VAR_IF([PHP_OPENSSL],, [PHP_OPENSSL=no])
9+
710
PHP_ARG_WITH([phar-ssl],
8-
[whether to explicitly enable SSL support for phar],
11+
[whether to enable native OpenSSL support for phar],
912
[AS_HELP_STRING([--with-phar-ssl],
10-
[Explicitly enable SSL support in phar extension when building without
11-
openssl extension. If openssl extension is enabled at the configure step,
12-
SSL is enabled implicitly.])],
13-
[no],
13+
[Explicitly enable SSL support in phar extension through the OpenSSL library
14+
when building without openssl extension or when using phpize. If the openssl
15+
extension is enabled at the configure step (--with-openssl), SSL is enabled
16+
implicitly regardless of this option.])],
17+
[$PHP_OPENSSL],
1418
[no])
1519

1620
if test "$PHP_PHAR" != "no"; then
@@ -28,15 +32,11 @@ if test "$PHP_PHAR" != "no"; then
2832
[$ext_shared],,
2933
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
3034

31-
dnl Empty variable means 'no' (for phpize builds).
32-
AS_VAR_IF([PHP_OPENSSL],, [PHP_OPENSSL=no])
33-
34-
AS_IF([test "x$PHP_OPENSSL" != xno || test "x$PHP_PHAR_SSL" != xno], [dnl
35+
AS_VAR_IF([PHP_PHAR_SSL], [no],, [
3536
PHP_SETUP_OPENSSL([PHAR_SHARED_LIBADD],
3637
[AC_DEFINE([PHAR_HAVE_OPENSSL], [1],
3738
[Define to 1 if phar extension has native OpenSSL support.])])
3839
PHP_SUBST([PHAR_SHARED_LIBADD])
39-
AC_MSG_NOTICE([phar SSL support enabled])
4040
])
4141

4242
PHP_ADD_EXTENSION_DEP(phar, hash)

0 commit comments

Comments
 (0)