From f51f365fcfa9631c36d132bf1c6193bff93e2042 Mon Sep 17 00:00:00 2001 From: foobar Date: Sun, 9 Oct 2005 20:38:28 +0000 Subject: [PATCH] Fix properly --- ext/ftp/config.m4 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ext/ftp/config.m4 b/ext/ftp/config.m4 index 08ebde9842..0d389c7f38 100644 --- a/ext/ftp/config.m4 +++ b/ext/ftp/config.m4 @@ -5,9 +5,15 @@ dnl PHP_ARG_ENABLE(ftp,whether to enable FTP support, [ --enable-ftp Enable FTP support]) +PHP_ARG_WITH(openssl-dir,OpenSSL dir for SNMP, +[ --with-openssl-dir[=DIR] SNMP: 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) - PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD) - PHP_SUBST(FTP_SHARED_LIBADD) + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD) + PHP_SUBST(FTP_SHARED_LIBADD) + fi fi -- 2.50.1