From 1f822b98cee27997c440ffe8a9d416b914392ab9 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Mon, 27 Mar 2000 23:33:38 +0000 Subject: 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. --- ext/filepro/config.m4 | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'ext/filepro') 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 -- cgit v1.2.1