i downloaded mplayer source + codecs + skins and followed the compilation instructions on mplayerhq site to the letter. Mplayer compiles without any errors. But when i try to recompile to include gui support, (./configure --enable-gui) i get a compile time error which says the skin needs libpng to compile properly. The fact is i've the libpng and devel packages installed also. But it doesnt get detected somehow. I compiled the latest libpng from source also. Even that doesnt solve the problem.

So Why isnt libpng getting detected by mplayer ./configure --enable-gui