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