Skip to content

Commit 14aa00b

Browse files
authored
Allow configure to handle PATH elements with spaces (#3935)
1 parent 6e3d6b5 commit 14aa00b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,14 +3524,14 @@ then
35243524
for as_dir in $PATH
35253525
do
35263526
IFS=$as_save_IFS
3527-
if test -x $as_dir/gcc; then
3527+
if test -x "${as_dir}/gcc"; then
35283528
if test -z "${found_gcc}"; then
3529-
found_gcc=$as_dir/gcc
3529+
found_gcc="${as_dir}/gcc"
35303530
fi
35313531
fi
3532-
if test -x $as_dir/clang; then
3532+
if test -x "${as_dir}/clang"; then
35333533
if test -z "${found_clang}"; then
3534-
found_clang=$as_dir/clang
3534+
found_clang="${as_dir}/clang"
35353535
fi
35363536
fi
35373537
done

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,14 @@ then
621621
for as_dir in $PATH
622622
do
623623
IFS=$as_save_IFS
624-
if test -x $as_dir/gcc; then
624+
if test -x "${as_dir}/gcc"; then
625625
if test -z "${found_gcc}"; then
626-
found_gcc=$as_dir/gcc
626+
found_gcc="${as_dir}/gcc"
627627
fi
628628
fi
629-
if test -x $as_dir/clang; then
629+
if test -x "${as_dir}/clang"; then
630630
if test -z "${found_clang}"; then
631-
found_clang=$as_dir/clang
631+
found_clang="${as_dir}/clang"
632632
fi
633633
fi
634634
done

0 commit comments

Comments
 (0)