Re: PHP 4.0 Bug #4569 Updated: configure fails to

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: PHP 4.0 Bug #4569 Updated: configure fails to
Groups: php.dev 
Request: Send a blank email to php-dev+get-27397@lists.php.net to get a copy of this message
correctlyidentify GD 1.8.x functions available In-Reply-To: <Pine.LNX.4.21.0008021127380.14698-100000@mail.zend.com> Message-ID: <Pine.WNT.4.21.0008020448240.-576317@vaio.php.net> X-X-Sender: rasmus@[209.226.175.145] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > The cause for this problem is that somehow configure first checks for some > functions in GD and only then uses png and all rest of libraries. But you > need PNG to check these libraries from the start! And the worst thing that > I see no way to tell it to use these libraries (short of hand-patching > configure file, which seems to be not exactly the right thing to do). This is not the case. The checks from gd/config.m4 are: AC_CHECK_LIB(gd, gdImageString16, [ AC_DEFINE(HAVE_LIBGD13,1,[]) ]) AC_CHECK_LIB(gd, gdImagePaletteCopy, [ AC_DEFINE(HAVE_LIBGD15,1,[]) ]) AC_CHECK_LIB(gd, gdImageColorClosestHWB, [ AC_DEFINE(HAVE_COLORCLOSESTHWB,1,[ ]) ]) AC_CHECK_LIB(z,compress, LIBS="$LIBS -lz",,) AC_CHECK_LIB(png,png_info_init, LIBS="$LIBS -lpng",,) AC_CHECK_LIB(gd, gdImageColorResolve, [AC_DEFINE(HAVE_GDIMAGECOLORRESOLVE,1,[ ])]) dnl Some versions of GD support both PNG and GIF. Check for both. AC_CHECK_LIB(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])]) AC_CHECK_LIB(gd, gdImageCreateFromGif, [AC_DEFINE(HAVE_GD_GIF, 1, [ ])]) AC_CHECK_LIB(gd, gdImageCreateFromXbm, [AC_DEFINE(HAVE_GD_XBM, 1, [ ])]) AC_CHECK_LIB(gd, gdImageWBMP, [AC_DEFINE(HAVE_GD_WBMP, 1, [ ])]) LIBS=$old_LIBS LDFLAGS=$old_LDFLAGS if test "$ac_cv_lib_gd_gdImageCreateFromPng" = "yes"; then AC_ADD_LIBRARY(png) AC_ADD_LIBRARY(z) fi This clearly shows that it adds -lz and -lpng to LIBS before checking for the PNG support. So although there may indeed be a problem somewhere, your analysis of it is incorrect. -Rasmus

« previous php.dev (#27397) next »