]> granicus.if.org Git - python/commitdiff
Allow configure to handle PATH elements with spaces (#3935)
authorNed Deily <nad@python.org>
Mon, 9 Oct 2017 17:53:27 +0000 (13:53 -0400)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2017 17:53:27 +0000 (13:53 -0400)
configure
configure.ac

index 741a834ab388c09e0e726108d472dc581a9e42aa..324c03470601a5b74fe30749b841f1dd54b9e893 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
index a3114be73873213227fe7dbcb6258bd42a1670eb..bf2b7c0753467cfbc0c0c87952bd5c42ad339393 100644 (file)
@@ -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