(media-libs/libpng-1.6.3-r1::gentoo, ebuild scheduled for merge) pulled in by
>=media-libs/libpng-1.6.2:0= required by (app-text/ghostscript-gpl-9.09::gentoo, ebuild scheduled for merge)

(media-libs/libpng-1.5.15::gentoo, installed) pulled in by
>=media-libs/libpng-1.4:0/0= required by (dev-tex/luatex-0.76.0::gentoo, installed)
media-libs/libpng:0/0= required by (media-libs/jbig2dec-0.11-r1::gentoo, installed)
(and 1 more with the same problems)

checking for mv... /bin/mv
checking for sendmail... /usr/sbin/sendmail
checking for time... time
checking verbose time flag...
checking for socket in -lsocket... no
checking for t_accept in -lnsl... no
checking if ssl is wanted... yes
configure: error: Cannot find ssl libraries