title: When I try to make php with --with-gd, I get an error that "configure: error: libpng.(a|so) not found." What's wrong?
body: <p>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.</p>
  
  <p>My configuration for PHP looks like:</p>
  
  <pre>./configure '--with-png-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-gd'</pre>
  
  <p>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.</p>