cvs: php4 /ext/gd config.m4

From: Date: Sat, 14 Apr 2001 00:15:26 +0000
Subject: cvs: php4 /ext/gd config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5111@lists.php.net to get a copy of this message
wez Fri Apr 13 17:15:26 2001 EDT Modified files: /php4/ext/gd config.m4 Log: When using freetype2, turn off libttf and turn on native gd ttf. Index: php4/ext/gd/config.m4 diff -u php4/ext/gd/config.m4:1.55 php4/ext/gd/config.m4:1.56 --- php4/ext/gd/config.m4:1.55 Fri Apr 13 05:00:12 2001 +++ php4/ext/gd/config.m4 Fri Apr 13 17:15:26 2001 @@ -77,20 +77,21 @@ for i in /usr /usr/local "$CHECK_FREETYPE" ; do if test -f "$i/include/freetype2/freetype/freetype.h"; then FREETYPE2_DIR="$i" - FREETYPE2_INC_DIR="$i/include/freetype/freetype2" + FREETYPE2_INC_DIR="$i/include/freetype2/freetype" fi done if test -n "$FREETYPE2_DIR" ; then AC_DEFINE(HAVE_LIBFREETYPE,1,[ ]) PHP_ADD_LIBRARY_WITH_PATH(freetype, $FREETYPE2_DIR/lib) PHP_ADD_INCLUDE($FREETYPE2_INC_DIR) + AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no (freetype2 not found)) fi ],[ AC_MSG_RESULT(no) - AC_MSG_RESULT(If configure fails, try --with-freetype2-dir=<DIR>) + AC_MSG_RESULT(If configure fails, try --with-freetype-dir=<DIR>) ]) ]) @@ -246,7 +247,13 @@ CHECK_TTF="$withval" fi ]) - + + if test "$with_freetype_dir" != "no" ; then + CHECK_TTF="" + else + CHECK_TTF="$withval" + fi + AC_MSG_CHECKING(whether to include FreeType 1.x support) if test -n "$CHECK_TTF" ; then for i in /usr /usr/local "$CHECK_TTF" ; do

« previous php.cvs (#5111) next »