@@ -4,13 +4,17 @@ PHP_ARG_ENABLE([phar],
4
4
[ Disable phar support] ) ] ,
5
5
[ yes] )
6
6
7
+ dnl Empty variable means 'no' (for phpize builds).
8
+ AS_VAR_IF ( [ PHP_OPENSSL] ,, [ PHP_OPENSSL=no] )
9
+
7
10
PHP_ARG_WITH([ phar-ssl] ,
8
- [ whether to explicitly enable SSL support for phar] ,
11
+ [ whether to enable native OpenSSL support for phar] ,
9
12
[ 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] ,
14
18
[ no] )
15
19
16
20
if test "$PHP_PHAR" != "no"; then
@@ -28,15 +32,11 @@ if test "$PHP_PHAR" != "no"; then
28
32
[ $ext_shared] ,,
29
33
[ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1] )
30
34
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] ,, [
35
36
PHP_SETUP_OPENSSL([ PHAR_SHARED_LIBADD] ,
36
37
[ AC_DEFINE ( [ PHAR_HAVE_OPENSSL] , [ 1] ,
37
38
[ Define to 1 if phar extension has native OpenSSL support.] ) ] )
38
39
PHP_SUBST([ PHAR_SHARED_LIBADD] )
39
- AC_MSG_NOTICE ( [ phar SSL support enabled] )
40
40
] )
41
41
42
42
PHP_ADD_EXTENSION_DEP(phar, hash)
0 commit comments