summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-10-02 15:34:38 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-10-02 15:34:38 +0000
commitcb312d43bf23e62bd7a5788be9e069c05cbe6cba (patch)
tree0bda7aca01d3a112a5a4165f9dda64c9fa8acfc1 /acinclude.m4
parent9d0f64268977fdbc01b1a68c3e57c8faaff54b47 (diff)
downloadphp-git-cb312d43bf23e62bd7a5788be9e069c05cbe6cba.tar.gz
Fixed bug #39004 (Fixed generation of config.nice with autoconf 2.60).
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m418
1 files changed, 15 insertions, 3 deletions
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