php-src/ext/ftp/config.m4
Peter Kokot 9df6a1e4dd Add AS_HELP_STRING to *nix build configure options
The Autoconf's default AS_HELP_STRING macro can properly format help
strings [1] so watching out if columns are aligned manually is not
anymore.

[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
2019-03-07 20:36:59 +01:00

27 lines
750 B
Text

dnl config.m4 for extension ftp
PHP_ARG_ENABLE([ftp],
[whether to enable FTP support],
[AS_HELP_STRING([--enable-ftp],
[Enable FTP support])])
PHP_ARG_WITH([openssl-dir],
[OpenSSL dir for FTP],
[AS_HELP_STRING([[--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)
AC_DEFINE(HAVE_FTP_SSL,1,[Whether FTP over SSL is supported])
fi
fi