Here's your problem. You don't have the ssl library, but configure expects it. I submitted a patch to the list a few days ago fixing this problem.
Hi Adam,
that patch was very thorough indeed :-) I don't have SSL any more. I can't see any "ssl" text in config.log.
Regards, Andreas
---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match