cvs: gd(GD_2_0) /libgd/src NEWS configure.ac

From: Date: Fri, 23 Nov 2007 11:45:06 +0000
Subject: cvs: gd(GD_2_0) /libgd/src NEWS configure.ac
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-351@lists.php.net to get a copy of this message
scottmac Fri Nov 23 11:45:06 2007 UTC Modified files: (Branch: GD_2_0) /gd/libgd/src NEWS configure.ac Log: - #133, configure script ignores --with-png=DIR option http://cvs.php.net/viewvc.cgi/gd/libgd/src/NEWS?r1=1.4.2.37&r2=1.4.2.38&diff_format=u Index: gd/libgd/src/NEWS diff -u gd/libgd/src/NEWS:1.4.2.37 gd/libgd/src/NEWS:1.4.2.38 --- gd/libgd/src/NEWS:1.4.2.37 Wed Nov 21 09:00:30 2007 +++ gd/libgd/src/NEWS Fri Nov 23 11:45:06 2007 @@ -16,6 +16,7 @@ 113, gdImageColorTransparent can write outside buffer (Mattias Bengtsson) 127, gdImageWBMPCtx can crash when createwbmp fails (Scott) 132, Fixed decoding of the html entity ϑ (Thomas Bonfort, Pierre) +133, Fixed configure script ignoring --with-png=DIR option (Scott) GD 2.0.35 (2007-06-21) 41, Fix valgrind error in gdImageFillTiled (Nuno Lopes) http://cvs.php.net/viewvc.cgi/gd/libgd/src/configure.ac?r1=1.32.2.2&r2=1.32.2.3&diff_format=u Index: gd/libgd/src/configure.ac diff -u gd/libgd/src/configure.ac:1.32.2.2 gd/libgd/src/configure.ac:1.32.2.3 --- gd/libgd/src/configure.ac:1.32.2.2 Tue Apr 24 07:47:14 2007 +++ gd/libgd/src/configure.ac Fri Nov 23 11:45:06 2007 @@ -350,21 +350,28 @@ # authors decide to do this AGAIN. Which I really hope they won't. TBB if test "$withval" != no; then - AC_PATH_PROG([LIBPNG12_CONFIG], [libpng12-config]) - AC_PATH_PROG([LIBPNG_CONFIG], [libpng-config]) + if test -d "$withval"; then + if test -e "$withval/bin/libpng12-config"; then + LIBPNG12_CONFIG="$withval/bin/libpng12-config" + fi + if test -e "$withval/bin/libpng-config"; then + LIBPNG_CONFIG="$withval/bin/libpng-config" + fi + else + AC_PATH_PROG([LIBPNG12_CONFIG], [libpng12-config]) + AC_PATH_PROG([LIBPNG_CONFIG], [libpng-config]) + fi + if test -n "$LIBPNG12_CONFIG"; then - libpng_CPPFLAGS=libpng12-config --cflags + libpng_CPPFLAGS=$LIBPNG12_CONFIG --cflags # should be --ldopts, but it's currently broken - libpng_LDFLAGS=libpng12-config --ldflags + libpng_LDFLAGS=$LIBPNG12_CONFIG --ldflags libpng_LDFLAGS=echo " $libpng_LDFLAGS" | sed 's/ -l[[^ ]][[^ ]]*//g' elif test -n "$LIBPNG_CONFIG"; then - libpng_CPPFLAGS=libpng-config --cflags + libpng_CPPFLAGS=$LIBPNG_CONFIG --cflags # should be --ldopts, but it's currently broken - libpng_LDFLAGS=libpng-config --ldflags + libpng_LDFLAGS=$LIBPNG_CONFIG --ldflags libpng_LDFLAGS=echo " $libpng_LDFLAGS" | sed 's/ -l[[^ ]][[^ ]]*//g' - elif test -d "$withval"; then - libpng_CPPFLAGS="-I$withval/include" - libpng_LDFLAGS="-L$withval/lib" fi AC_CHECK_HEADERS(png.h,,

« previous php.gd.cvs (#351) next »