]> granicus.if.org Git - php/commitdiff
fixed configure error with freetype1.
authorRui Hirokawa <hirokawa@php.net>
Sat, 23 Feb 2002 01:36:55 +0000 (01:36 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sat, 23 Feb 2002 01:36:55 +0000 (01:36 +0000)
ext/gd/config.m4

index f2723db7b83ce046e77dc09504222c0a7eeebbb8..34e710c489819bb3afc4c56630d6109b1d5c51b1 100644 (file)
@@ -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