// $Id$
// vim:ft=javascript

ARG_ENABLE("ftp", "ftp support", "no");

if (PHP_FTP != "no") {

	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)) {
		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');
}
