From: Antony Dovgal Date: Mon, 2 Oct 2006 19:17:43 +0000 (+0000) Subject: fix the fix for #39004 X-Git-Tag: RELEASE_1_0_0RC1~1472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=640c76969e4b8c9da85f842d9de87f82e61efe8e;p=php fix the fix for #39004 --- diff --git a/acinclude.m4 b/acinclude.m4 index 9df69fa67a..f1562795a4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2503,16 +2503,16 @@ EOF fi done - echo "'[$]0'" >> $1 + echo "'[$]0' \\" >> $1 for arg in $ac_configure_args; do - if test `expr substr $arg 1 1` != "'"; then - if test `expr substr $arg 1 2` != '--'; then + if test `expr -- $arg : "'.*"` = 0; then + if test `expr -- $arg : "--.*"` = 0; then break; fi echo "'[$]arg' \\" >> $1 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]arg'" else - if test `expr substr $arg 2 2` != '--'; then + if test `expr -- $arg : "'--.*"` = 0; then break; fi echo "[$]arg \\" >> $1