*BenWa (2012/01/09): It failed to built with clang
*mcomella (2012/07/31): This worked for me, although I had issues when I ran ./configure from the root diretory before running the written commands (I had to "make distclean" after that). I used Lion dev tools.
*jchen (2012/10/17): I ran into a make error about missing python27python2.7. The cause is a bad config variable in the MacPorts python27 python2.7 port. If I switch to using the native OSX python (by changing PATH), the problem goes away.
Get required packages: