gd, freetype 1

From: Date: Thu, 19 Apr 2001 13:34:07 +0000
Subject: gd, freetype 1
Groups: php.dev 
Request: Send a blank email to php-dev+get-51964@lists.php.net to get a copy of this message
I'm attempting to configure PHP (latest CVS, Apr 19) with freetype 1 support and gd. The --with-ttf doesn't start the search for freetype.h in config.m4 which I suppose it should. Using --with-gd --with-ttf gives: checking for gdImageSetBrush in -lgd... yes checking whether to include FreeType 1.x support... no - FreeType 2.x is to be used instead checking for T1lib support... yes checking for T1_GetExtend in -lt1... no Problem is that with_freetype_dir is empty in ext/gd/config.m4 so with-ttf is not really recognized. The patch below fixes the problem. Index: config.m4 =================================================================== RCS file: /repository/php4/ext/gd/config.m4,v retrieving revision 1.57 diff -u -r1.57 config.m4 --- config.m4 2001/04/17 01:02:37 1.57 +++ config.m4 2001/04/19 13:24:56 @@ -249,7 +249,7 @@ ]) AC_MSG_CHECKING(whether to include FreeType 1.x support) - if test "$with_freetype_dir" = "no" ; then + if test "$with_freetype_dir" = "no" -o "$with_freetype_dir" = ""; then if test -n "$CHECK_TTF" ; then for i in /usr /usr/local "$CHECK_TTF" ; do if test -f "$i/include/freetype.h" ; then Cheers, Adam -- Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk Index Data T: +45 33410100 Mob.: 212 212 66

« previous php.dev (#51964) next »