well, most of the time these things occur you could have read about it in the README (as i was saying, most of the time)..
if it doesn't tell me anything about dependencies, i watch the ./configure process output, most of the time you would see anything regarding missing libraries..
and then.. if none of the above worked... and i get an error like yours, i'm using nothing more than a clear mind and start googling about it.. most of the time it will give me some information about the libraries..
for slackware i'm always trying to compile from source.. sometimes it won't work, and since i'm a bit lazy sometimes, i use http://www.linuxpackages.net
this site has got (slackware only) pre-compiled packages (in tgz format) for a lot of libraries/programs/etc...