diff options
author | Anatol Belski <ab@php.net> | 2015-03-11 13:30:26 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-03-11 21:46:38 +0100 |
commit | 167979fe76215978efc64fccad454abb22de862a (patch) | |
tree | 704f3a1716649a6267d7fba4a014e69652015095 /ext/ftp/config.w32 | |
parent | f43cc2a19a8541ca19d4508bdb4fa95e7fd9590b (diff) | |
download | php-git-167979fe76215978efc64fccad454abb22de862a.tar.gz |
enable ftps for shared ext/ftp
Diffstat (limited to 'ext/ftp/config.w32')
-rw-r--r-- | ext/ftp/config.w32 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ftp/config.w32 b/ext/ftp/config.w32 index c91e350a86..b181a0b95a 100644 --- a/ext/ftp/config.w32 +++ b/ext/ftp/config.w32 @@ -4,6 +4,16 @@ ARG_ENABLE("ftp", "ftp support", "yes"); if (PHP_FTP == "yes") { + EXTENSION("ftp", "php_ftp.c ftp.c"); + + if (CHECK_HEADER_ADD_INCLUDE("openssl/ssl.h", "CFLAGS_FTP") && + CHECK_LIB("ssleay32.lib", "ftp", PHP_FTP) && + CHECK_LIB("libeay32.lib", "ftp", PHP_FTP) && + ADD_EXTENSION_DEP("ftp", "openssl", true)) { + MESSAGE("Enabling SSL support for ext\\ftp"); + AC_DEFINE('HAVE_FTP_SSL', 1, 'Have FTP over SSL support'); + } + AC_DEFINE('HAVE_FTP', 1, 'Have FTP support'); } |