Skip to content

Commit

Permalink
Don't quote configure options that contain quotes, allowing options l…
Browse files Browse the repository at this point in the history
…ike --with-libs to point to multiple locations.
  • Loading branch information
adunstan committed Dec 18, 2010
1 parent 4ff3c61 commit a7e26ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion run_build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,14 @@ sub configure
my @quoted_opts;
foreach my $c_opt (@$config_opts)
{
push(@quoted_opts,"'$c_opt'");
if ($c_opt =~ /['"]/)
{
push(@quoted_opts,$c_opt);
}
else
{
push(@quoted_opts,"'$c_opt'");
}
}

my $confstr = join(" ",@quoted_opts,
Expand Down

0 comments on commit a7e26ea

Please sign in to comment.