mxcl/homebrew — pull request #11611 by 2bits (2012-04-13 02:36:54+00:00)
Title: jscoverage: fix configure errors with clang

jscoverage-0.5.1 has a file with hardcoded gcc and g++, named
configure.gnu. inreplace those with ENV.cc and ENV.cxx.

It also has three places in js/configure where the conftest uses

int main {

but also has two return commands. The first return command,

return;

does not return a value. The second one does `return 0;`.
This causes an error building with clang during configure
because `int main` should return a value. inline patch those
by removing the extra return command so that it does a `return 0;`

All four of these issues have been bug reported to their tracker,
and the formula comments include a link to the bug report. The
issues exist in HEAD. This now builds with all the compilers in
Lion and Snow Leopard, though no runtime tests were done, as
this is unfamiliar software.

This would fix #11600