summaryrefslogtreecommitdiff
path: root/ext/filepro
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/filepro
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/filepro')
-rw-r--r--ext/filepro/config.m424
1 files changed, 10 insertions, 14 deletions
diff --git a/ext/filepro/config.m4 b/ext/filepro/config.m4
index a0036668b2..cb04525269 100644
--- a/ext/filepro/config.m4
+++ b/ext/filepro/config.m4
@@ -1,17 +1,13 @@
dnl $Id$
-AC_MSG_CHECKING(whether to include the bundled filePro support)
-AC_ARG_WITH(filepro,
-[ --with-filepro Include the bundled read-only filePro support],[
- if test "$withval" != "no"; then
- AC_DEFINE(HAVE_FILEPRO, 1, [ ])
- AC_MSG_RESULT(yes)
- PHP_EXTENSION(filepro)
- else
- AC_DEFINE(HAVE_FILEPRO, 0, [ ])
- AC_MSG_RESULT(no)
- fi
-],[
+AC_ARG_WITH(filepro,[],[enable_filepro=$withval])
+
+PHP_ARG_ENABLE(filepro,whether to enable the bundled filePro support,
+[ --enable-filepro Enable the bundled read-only filePro support])
+
+if test "$PHP_FILEPRO" = "yes"; then
+ AC_DEFINE(HAVE_FILEPRO, 1, [ ])
+ PHP_EXTENSION(filepro)
+else
AC_DEFINE(HAVE_FILEPRO, 0, [ ])
- AC_MSG_RESULT(no)
-])
+fi