diff options
author | Ned Deily <nad@python.org> | 2017-10-09 17:53:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 17:53:27 (GMT) |
commit | 14aa00b519c827578648f2c006ad0ac8058cf6a1 (patch) | |
tree | 0e04d5f566ae137ab31bd2a81ef446aee9ababe2 | |
parent | 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16 (diff) | |
download | cpython-14aa00b519c827578648f2c006ad0ac8058cf6a1.zip cpython-14aa00b519c827578648f2c006ad0ac8058cf6a1.tar.gz cpython-14aa00b519c827578648f2c006ad0ac8058cf6a1.tar.bz2 |
Allow configure to handle PATH elements with spaces (#3935)
-rwxr-xr-x | configure | 8 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -3524,14 +3524,14 @@ then for as_dir in $PATH do IFS=$as_save_IFS - if test -x $as_dir/gcc; then + if test -x "${as_dir}/gcc"; then if test -z "${found_gcc}"; then - found_gcc=$as_dir/gcc + found_gcc="${as_dir}/gcc" fi fi - if test -x $as_dir/clang; then + if test -x "${as_dir}/clang"; then if test -z "${found_clang}"; then - found_clang=$as_dir/clang + found_clang="${as_dir}/clang" fi fi done diff --git a/configure.ac b/configure.ac index a3114be..bf2b7c0 100644 --- a/configure.ac +++ b/configure.ac @@ -621,14 +621,14 @@ then for as_dir in $PATH do IFS=$as_save_IFS - if test -x $as_dir/gcc; then + if test -x "${as_dir}/gcc"; then if test -z "${found_gcc}"; then - found_gcc=$as_dir/gcc + found_gcc="${as_dir}/gcc" fi fi - if test -x $as_dir/clang; then + if test -x "${as_dir}/clang"; then if test -z "${found_clang}"; then - found_clang=$as_dir/clang + found_clang="${as_dir}/clang" fi fi done |