mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +08:00
r2756 merge:
add quotes for configure options with spaces
This commit is contained in:
parent
0e7ed23cec
commit
c0399e22bb
2
auto/configure
vendored
2
auto/configure
vendored
@ -3,8 +3,6 @@
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'`
|
||||
|
||||
. auto/options
|
||||
. auto/init
|
||||
. auto/sources
|
||||
|
@ -119,9 +119,12 @@ NGX_GOOGLE_PERFTOOLS=NO
|
||||
|
||||
NGX_CPU_CACHE_LINE=
|
||||
|
||||
opt=
|
||||
|
||||
for option
|
||||
do
|
||||
opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
|
||||
|
||||
case "$option" in
|
||||
-*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) value="" ;;
|
||||
@ -248,6 +251,9 @@ do
|
||||
done
|
||||
|
||||
|
||||
NGX_CONFIGURE="$opt"
|
||||
|
||||
|
||||
if [ $help = yes ]; then
|
||||
|
||||
cat << END
|
||||
|
@ -261,8 +261,8 @@ main(int argc, char *const *argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
p = "configure arguments: " NGX_CONFIGURE CRLF;
|
||||
n = sizeof("configure arguments :" NGX_CONFIGURE CRLF) - 1;
|
||||
p = "configure arguments:" NGX_CONFIGURE CRLF;
|
||||
n = sizeof("configure arguments:" NGX_CONFIGURE CRLF) - 1;
|
||||
|
||||
if (ngx_write_fd(ngx_stderr_fileno, p, n) != n) {
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user