The ip4r readme will tell you to use make. This resulted in errors for me. By substituting gmake for make, the install went smoothly.

http://pgfoundry.org/docman/?group_id=1000079