Fixed it:

The config.log showed it pointing to stuff that was in libjped-devel and libpng-devel, not libgd.  Once yum'd those, I could ./configure ok.