From: Marko Karppinen Date: Sun, 27 Jan 2002 03:37:02 +0000 (+0000) Subject: Enable developers to use PHP_ARG_ENABLE and PHP_ARG_WITH silently X-Git-Tag: PRE_ISSET_PATCH~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc3a59c85fb6b7a15220ffcea900b8b0af1f2471;p=php 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! --- diff --git a/acinclude.m4 b/acinclude.m4 index d03204ed16..cb99efb3b7 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -370,7 +370,9 @@ if test "$php_always_shared" = "yes"; then 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 @@ PHP_REAL_ARG_WITH([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z0-9-,A-Z0-9_)) ]) 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 @@ PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_)) ]) 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,[