I am trying to build php 5.0.5 on SLES 9 with gd support enabled. libpng is in /usr/lib: adcinfops02:/usr/local/httpd-2.0.54/conf #ls -l /usr/lib/ | grep -i png lrwxrwxrwx 1 root root 18 Oct 7 18:15 libpng.so.2 -> libpng.so.2.1.0.12 -rwxr-xr-x 1 root root 216310 Aug 5 2002 libpng.so.2.1.0.12 lrwxrwxrwx 1 root root 17 Oct 7 18:13 libpng.so.3 -> libpng.so.3.1.2.5 -rwxr-xr-x 1 root root 202905 Aug 13 2004 libpng.so.3.1.2.5 lrwxrwxrwx 1 root root 19 Oct 7 18:13 libpng12.so.0 -> libpng12.so.0.1.2.5 -rwxr-xr-x 1 root root 202905 Aug 13 2004 libpng12.so.0.1.2.5 I explicitly set these with configure: --with-gd=/usr/lib/ --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib configure dies with this error: <snip> checking whether to enable truetype string function in GD... no checking whether to enable JIS-mapped Japanese font support in GD... no checking for jpeg_read_header in -ljpeg... yes configure: error: libpng.(a|so) not found. thx, CC