@@ -6,13 +6,17 @@ PHP_ARG_ENABLE([mysqlnd],
66 [ no] ,
77 [ yes] )
88
9+ dnl Empty variable means 'no' (for phpize builds).
10+ AS_VAR_IF ( [ PHP_OPENSSL] ,, [ PHP_OPENSSL=no] )
11+
912PHP_ARG_WITH([ mysqlnd-ssl] ,
10- [ whether to explicitly enable SSL support in mysqlnd] ,
13+ [ whether to enable extended SSL support in mysqlnd] ,
1114 [ AS_HELP_STRING ( [ --with-mysqlnd-ssl] ,
12- [ Explicitly enable SSL support in ext/mysqlnd when not building with
13- ext/openssl. If ext/openssl is enabled at the configure step, SSL is enabled
14- implicitly.] ) ] ,
15- [ no] ,
15+ [ Explicitly enable extended SSL support in the mysqlnd extension when
16+ building without openssl extension or when using phpize. If the openssl
17+ extension is enabled at the configure step (--with-openssl), extended SSL is
18+ enabled implicitly regardless of this option.] ) ] ,
19+ [ $PHP_OPENSSL] ,
1620 [ no] )
1721
1822PHP_ARG_ENABLE([ mysqlnd-compression-support] ,
@@ -29,16 +33,13 @@ if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
2933 [ AC_DEFINE ( [ MYSQLND_COMPRESSION_ENABLED] , [ 1] ,
3034 [ Define to 1 if mysqlnd has compressed protocol support.] ) ] )] )
3135
32- AC_DEFINE ( [ MYSQLND_SSL_SUPPORTED] , 1 , [ Enable core mysqlnd SSL code] )
33-
34- dnl Empty variable means 'no' (for phpize builds).
35- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
36+ AC_DEFINE ( [ MYSQLND_SSL_SUPPORTED] , [ 1] ,
37+ [ Define to 1 if mysqlnd core SSL is enabled.] )
3638
37- if test "$PHP_OPENSSL" != "no" || test "$ PHP_MYSQLND_SSL" != "no"; then
38- PHP_SETUP_OPENSSL([ MYSQLND_SHARED_LIBADD] ,
39+ AS_VAR_IF ( [ PHP_MYSQLND_SSL] , [ no ] ,,
40+ [ PHP_SETUP_OPENSSL([ MYSQLND_SHARED_LIBADD] ,
3941 [ AC_DEFINE ( [ MYSQLND_HAVE_SSL] , [ 1] ,
40- [ Define to 1 if mysqlnd has extended SSL support through OpenSSL.] ) ] )
41- fi
42+ [ Define to 1 if mysqlnd extended SSL is enabled through OpenSSL.] ) ] )] )
4243
4344 PHP_NEW_EXTENSION([ mysqlnd] , m4_normalize ( [
4445 mysqlnd_alloc.c
0 commit comments