Allow configure to handle PATH elements with spaces (#3935)

This commit is contained in:
Ned Deily 2017-10-09 13:53:27 -04:00 committed by GitHub
parent 6e3d6b5dc2
commit 14aa00b519
2 changed files with 8 additions and 8 deletions

8
configure vendored
View File

@ -3524,14 +3524,14 @@ then
for as_dir in $PATH for as_dir in $PATH
do do
IFS=$as_save_IFS IFS=$as_save_IFS
if test -x $as_dir/gcc; then if test -x "${as_dir}/gcc"; then
if test -z "${found_gcc}"; then if test -z "${found_gcc}"; then
found_gcc=$as_dir/gcc found_gcc="${as_dir}/gcc"
fi fi
fi fi
if test -x $as_dir/clang; then if test -x "${as_dir}/clang"; then
if test -z "${found_clang}"; then if test -z "${found_clang}"; then
found_clang=$as_dir/clang found_clang="${as_dir}/clang"
fi fi
fi fi
done done

View File

@ -621,14 +621,14 @@ then
for as_dir in $PATH for as_dir in $PATH
do do
IFS=$as_save_IFS IFS=$as_save_IFS
if test -x $as_dir/gcc; then if test -x "${as_dir}/gcc"; then
if test -z "${found_gcc}"; then if test -z "${found_gcc}"; then
found_gcc=$as_dir/gcc found_gcc="${as_dir}/gcc"
fi fi
fi fi
if test -x $as_dir/clang; then if test -x "${as_dir}/clang"; then
if test -z "${found_clang}"; then if test -z "${found_clang}"; then
found_clang=$as_dir/clang found_clang="${as_dir}/clang"
fi fi
fi fi
done done