diff options
author | Michael Wallner <mike@php.net> | 2013-08-02 13:09:06 +0200 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2013-08-02 13:15:55 +0200 |
commit | a8bc18420702e1b4fa524d21eae804cd6004879e (patch) | |
tree | 7e4f426111d0e713b83d55e2e43937015049d8db /acinclude.m4 | |
parent | 55d335fa9598c688dc02118bdf7bf239fdbb5c82 (diff) | |
download | php-git-a8bc18420702e1b4fa524d21eae804cd6004879e.tar.gz |
fix generating config.nice
Configure runs like:
$./configure -C CFLAGS="-ggdb" --enable-debug --prefix=$(pwd)/usr
did result in an empty config.nice
* allow single dash flags like -C, -s etc.
* allow passing evnironment variables as arguments
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 07b1f8eb57..fb490594d4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2686,14 +2686,14 @@ EOF fi for arg in $ac_configure_args; do if test `expr -- $arg : "'.*"` = 0; then - if test `expr -- $arg : "--.*"` = 0; then - break; + if test `expr -- $arg : "-.*"` = 0 && test `expr -- $arg : ".*=.*"` = 0; then + continue; fi echo "'[$]arg' \\" >> $1 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '[$]arg'" else - if test `expr -- $arg : "'--.*"` = 0; then - break; + if test `expr -- $arg : "'-.*"` = 0 && test `expr -- $arg : "'.*=.*"` = 0; then + continue; fi echo "[$]arg \\" >> $1 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS [$]arg" |