----- Error ----- If configure fails try --with-jpeg-dir=<DIR> configure: error: libpng.(a|so) not found. ----- Error -----
This should also have been fixed with "--with-libdir=lib64" as it'll look in /lib by default, and not /lib64 for your x64 system.
Regards, M.