1 Use pkg-config to report libpng version and installation directories.
4 diff -Naur libpng-1.2.31.orig/scripts/libpng-config.in libpng-1.2.31/scripts/libpng-config.in
5 --- libpng-1.2.31.orig/scripts/libpng-config.in 2008-05-29 13:37:58.000000000 -0400
6 +++ libpng-1.2.31/scripts/libpng-config.in 2008-08-23 16:57:20.000000000 -0400
9 # Modeled after libxml-config.
11 -version="@PNGLIB_VERSION@"
13 -exec_prefix="@exec_prefix@"
15 -includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
16 +version=`pkg-config --modversion libpng`
17 +prefix=`pkg-config --variable prefix libpng`
18 +exec_prefix=`pkg-config --variable exec_prefix libpng`
19 +libdir=`pkg-config --variable libdir libpng`
20 +includedir=`pkg-config --variable includedir libpng`
21 libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
22 all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@"
23 I_opts="-I${includedir}"