Fix properly
authorfoobar <sniper@php.net>
Sun, 9 Oct 2005 20:38:28 +0000 (20:38 +0000)
committerfoobar <sniper@php.net>
Sun, 9 Oct 2005 20:38:28 +0000 (20:38 +0000)
ext/ftp/config.m4

index 08ebde98429ae49ce1d558fe80faf76744269bf9..0d389c7f383914a9536834ab7790a3202b2a351f 100644 (file)
@@ -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