I had trouble building cvs version of PHP with libfreetype.  Right now
HAVE_LIBFREETYPE only works if HAVE_LIBGD20, this patch fixes that.

Index: ext/gd/gd.c
===================================================================
RCS file: /repository/php4/ext/gd/gd.c,v
retrieving revision 1.138
diff -u -r1.138 gd.c
--- ext/gd/gd.c 2001/07/02 12:49:21 1.138
+++ ext/gd/gd.c 2001/07/05 19:12:41
@@ -2659,7 +2659,7 @@
  fontname = (unsigned char *) Z_STRVAL_PP(FONTNAME);

 #ifdef USE_GD_IMGSTRTTF
-# if HAVE_LIBGD20 & HAVE_LIBFREETYPE
+# if HAVE_LIBFREETYPE
  error = gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, y,
str);
 # else
  error = gdImageStringTTF(im, brect, col, fontname, ptsize, angle, x, y,
str);

--
Jeremy Bettis
[EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to