summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-03-27 23:33:38 +0000
committerSascha Schumann <sas@php.net>2000-03-27 23:33:38 +0000
commit1f822b98cee27997c440ffe8a9d416b914392ab9 (patch)
treee2b78f144d534d15d90b136924dd9b7a81cb0b3d /ext/ftp
parent0cc5c94b37668d225c48e715bf69d3a8309e16d5 (diff)
downloadphp-git-1f822b98cee27997c440ffe8a9d416b914392ab9.tar.gz
Welcome PHP_ARG_ENABLE and PHP_ARG_WITH. They are there to replace the common
AC_MSG_CHECKING, AC_ARG_[ENABLE,WITH], AC_MSG_RESULT trio.
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/config.m421
1 files changed, 7 insertions, 14 deletions
diff --git a/ext/ftp/config.m4 b/ext/ftp/config.m4
index ce5d6af78c..0c29da61d8 100644
--- a/ext/ftp/config.m4
+++ b/ext/ftp/config.m4
@@ -2,17 +2,10 @@ dnl $Id$
dnl config.m4 for extension ftp
dnl don't forget to call PHP_EXTENSION(ftp)
-AC_MSG_CHECKING(for FTP support)
-AC_ARG_WITH(ftp,
-[ --with-ftp Include FTP support.],
-[
- if test "$withval" != "no"; then
- AC_DEFINE(HAVE_FTP,1,[ ])
- PHP_EXTENSION(ftp)
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
-],[
- AC_MSG_RESULT(no)
-])
+PHP_ARG_ENABLE(ftp,whether to enable FTP support,
+[ --enable-ftp Enable FTP support])
+
+if test "$PHP_FTP" = "yes"; then
+ AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support])
+ PHP_EXTENSION(ftp)
+fi