1dnl config.m4 for extension ftp 2 3PHP_ARG_ENABLE(ftp,whether to enable FTP support, 4[ --enable-ftp Enable FTP support]) 5 6PHP_ARG_WITH(openssl-dir,OpenSSL dir for FTP, 7[ --with-openssl-dir[=DIR] FTP: openssl install prefix], no, no) 8 9if test "$PHP_FTP" = "yes"; then 10 AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support]) 11 PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared) 12 13 dnl Empty variable means 'no' 14 test -z "$PHP_OPENSSL" && PHP_OPENSSL=no 15 16 if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then 17 PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD) 18 PHP_SUBST(FTP_SHARED_LIBADD) 19 AC_DEFINE(HAVE_FTP_SSL,1,[Whether FTP over SSL is supported]) 20 fi 21fi 22