From: Ilia Alshanetsky Date: Mon, 2 Oct 2006 15:34:38 +0000 (+0000) Subject: Fixed bug #39004 (Fixed generation of config.nice with autoconf 2.60). X-Git-Tag: php-5.2.0RC5~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb312d43bf23e62bd7a5788be9e069c05cbe6cba;p=php Fixed bug #39004 (Fixed generation of config.nice with autoconf 2.60). --- diff --git a/NEWS b/NEWS index 2182ee1a9f..9ba7c7fe7b 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ PHP NEWS - Fixed mess with CGI/CLI -d option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests). (Dmitry) +- Fixed bug #39004 (Fixed generation of config.nice with autoconf 2.60). + (Ilia) - Fixed bug #39003 (__autoload() is called for type hinting). (Dmitry, Tony) - Fixed bug #39001 (ReflectionProperty returns incorrect declaring class for protected properties). (Tony) diff --git a/acinclude.m4 b/acinclude.m4 index dd475b28cf..9df69fa67a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2503,9 +2503,21 @@ EOF fi done - for arg in [$]0 "[$]@"; do - echo "'[$]arg' \\" >> $1 - CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]arg'" + 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 + break; + fi + echo "'[$]arg' \\" >> $1 + CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]arg'" + else + if test `expr substr $arg 2 2` != '--'; then + break; + fi + echo "[$]arg \\" >> $1 + CONFIGURE_COMMAND="$CONFIGURE_COMMAND [$]arg" + fi done echo '"[$]@"' >> $1 chmod +x $1