So far, I've made sure I've installed libpng and libjpeg with DarwinPorts (I'm running on OS X Leopard), but that doesn't seem to do the trick. I've read in a number of places that you need the development files (i.e. libpng-devel, etc.) as well to make this work. I'm a little lost. Can someone help me understand what I'm supposed to do? I'm happy to provide any more information that's necessary.
My configuration for PHP looks like:
./configure '--with-png-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-gd'
and I'm trying to install PHP 5.2.9. I've gotten the make to work without the '--with-gd' option. I've also been copying what I've found on various sites, so I might be doing something really wrong.