You need to install the libpng-devel
in addition to just libpng
:
sudo yum install libpng-devel
Then, when you run ./configure
, everything will work as you hope:
checking for PNG support ... checking png.h usability... yes checking png.h presence... yes PNG --with-png=yes yes (-lpng12)
<Rant> That is why everything should be available in packages that clearly define their dependencies and are easily installed with package managers, instead of requiring a secret knowledge of the compilation prerequisites. </Rant>
source share