http://pastebin.com/MTdzu3pJ

Ubuntu 11.10. All dependencies listed in docs are met.

Thanks for pointing this out. Please, apply the attached patch and make again:
patch < Makefile.in.diff
make