]> granicus.if.org Git - php/commitdiff
- Using ifelse() here is safer, also eases debugging generated configure.
authorJani Taskinen <jani@php.net>
Sat, 13 Nov 2010 22:51:11 +0000 (22:51 +0000)
committerJani Taskinen <jani@php.net>
Sat, 13 Nov 2010 22:51:11 +0000 (22:51 +0000)
acinclude.m4

index 2d5d57132c1d7fb5bbc3ddd45aff380d175ffdbe..a94dd6c23b0ca6305ed2e3caa9c383fbf3abd013 100644 (file)
@@ -711,10 +711,7 @@ ifelse([$2],,,[AC_MSG_CHECKING([$2])])
 AC_ARG_WITH($1,[$3],$5=[$]withval,
 [
   $5=ifelse($4,,no,$4)
-
-  if test "$PHP_ENABLE_ALL" && test "$6" = "yes"; then
-    $5=$PHP_ENABLE_ALL
-  fi
+  ifelse($6,yes,[test "$PHP_ENABLE_ALL" && $5=$PHP_ENABLE_ALL])
 ])
 PHP_ARG_ANALYZE($5,[$2],$6)
 ])
@@ -739,10 +736,7 @@ ifelse([$2],,,[AC_MSG_CHECKING([$2])])
 AC_ARG_ENABLE($1,[$3],$5=[$]enableval,
 [
   $5=ifelse($4,,no,$4)
-
-  if test "$PHP_ENABLE_ALL" && test "$6" = "yes"; then
-    $5=$PHP_ENABLE_ALL
-  fi
+  ifelse($6,yes,[test "$PHP_ENABLE_ALL" && $5=$PHP_ENABLE_ALL])
 ])
 PHP_ARG_ANALYZE($5,[$2],$6)
 ])