From: Rui Hirokawa Date: Sat, 23 Feb 2002 01:36:55 +0000 (+0000) Subject: fixed configure error with freetype1. X-Git-Tag: php-4.2.0RC1~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cfa80d082d4a6be303f1c9f524cc66e3658f473;p=php fixed configure error with freetype1. --- diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index f2723db7b8..34e710c489 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -126,6 +126,10 @@ AC_DEFUN(PHP_GD_FREETYPE2,[ PHP_ARG_WITH(freetype-dir, for freetype(2), [ --with-freetype-dir=DIR GD: Set the path to freetype2 install prefix.]) + if test "$PHP_TTF" != "no"; then + PHP_FREETYPE_DIR="no" + fi + if test "$PHP_FREETYPE_DIR" != "no"; then for i in /usr /usr/local $PHP_FREETYPE_DIR; do if test -f "$i/include/freetype2/freetype/freetype.h"; then