diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/ftp/config.m4 | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/ftp/config.m4')
-rw-r--r-- | ext/ftp/config.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/ftp/config.m4 b/ext/ftp/config.m4 new file mode 100644 index 0000000..2df7f7b --- /dev/null +++ b/ext/ftp/config.m4 @@ -0,0 +1,22 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(ftp,whether to enable FTP support, +[ --enable-ftp Enable FTP support]) + +PHP_ARG_WITH(openssl-dir,OpenSSL dir for FTP, +[ --with-openssl-dir[=DIR] FTP: openssl install prefix], no, no) + +if test "$PHP_FTP" = "yes"; then + AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support]) + PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared) + + dnl Empty variable means 'no' + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD) + PHP_SUBST(FTP_SHARED_LIBADD) + fi +fi |