mxcl/homebrew — pull request #8508 by Drarok (2011-11-08 13:33:50+00:00)
Title: Check all symlinks for llvm, fixing the regexp match in the process.

There appears to be a bug when Homebrew tries to check if the "gcc" binary is, in fact, llvm. I replaced "=~ 'llvm'" with "=~ /llvm/".

Also, on my machine (and probably many others), "gcc" is symlinked to "gcc-4.2", which is in turn symlinked to llvm. Reading a single link isn't enough, so I traverse the whole symlink "chain".