cvs: php4 / acinclude.m4

From: Date: Sun, 27 Jan 2002 03:37:04 +0000
Subject: cvs: php4 / acinclude.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9186@lists.php.net to get a copy of this message
markonen Sat Jan 26 22:37:04 2002 EDT Modified files: /php4 acinclude.m4 Log: Enable developers to use PHP_ARG_ENABLE and PHP_ARG_WITH silently to maintain legacy configure options without clutter in the configure help and checking output. # Hopefully this encourages module writers to finally adopt # standard naming conventions for their configure options! Index: php4/acinclude.m4 diff -u php4/acinclude.m4:1.154 php4/acinclude.m4:1.155 --- php4/acinclude.m4:1.154 Thu Jan 24 09:41:14 2002 +++ php4/acinclude.m4 Sat Jan 26 22:37:02 2002 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.154 2002/01/24 14:41:14 markonen Exp $ +dnl $Id: acinclude.m4,v 1.155 2002/01/27 03:37:02 markonen Exp $ dnl dnl This file contains local autoconf functions. @@ -370,7 +370,9 @@ test "[$]$1" = "no" && $1=yes fi -AC_MSG_RESULT([$ext_output]) +if test -n "$2"; then + AC_MSG_RESULT([$ext_output]) +fi ]) dnl @@ -384,9 +386,11 @@ ]) AC_DEFUN(PHP_REAL_ARG_WITH,[ -AC_MSG_CHECKING([$2]) +if test -n "$2"; then + AC_MSG_CHECKING([$2]) +fi AC_ARG_WITH($1,[$3],$5=[$]withval,$5=ifelse($4,,no,$4)) -PHP_ARG_ANALYZE($5) +PHP_ARG_ANALYZE($5,[$2]) ]) dnl @@ -400,9 +404,11 @@ ]) AC_DEFUN(PHP_REAL_ARG_ENABLE,[ -AC_MSG_CHECKING([$2]) +if test -n "$2"; then + AC_MSG_CHECKING([$2]) +fi AC_ARG_ENABLE($1,[$3],$5=[$]enableval,$5=ifelse($4,,no,$4)) -PHP_ARG_ANALYZE($5) +PHP_ARG_ANALYZE($5,[$2]) ]) AC_DEFUN(PHP_MODULE_PTR,[

« previous php.cvs (#9186) next »