Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17046 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57934 invoked by uid 1010); 30 Jun 2005 14:30:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57918 invoked from network); 30 Jun 2005 14:30:51 -0000 Received: from unknown (HELO romcad.it) (127.0.0.1) by localhost with SMTP; 30 Jun 2005 14:30:51 -0000 X-Host-Fingerprint: 206.190.38.213 web51608.mail.yahoo.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([206.190.38.213:44551] helo=web51608.mail.yahoo.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id DD/B3-29969-81204C24 for ; Thu, 30 Jun 2005 10:30:48 -0400 Received: (qmail 88171 invoked by uid 60001); 30 Jun 2005 14:30:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mWQJgojlOcpNnDrl7m7BXers+L2vRyGuDPEzzQpTB9RrVFILgQEAMFZcro1aQRFPBtvyVyGirksbh6LlnEOBUxi87zWy63lO86EDhojd+pmrNrH7Ad/4tGlGviLbk6Dym5SasvncBYuF5l/K4gW2pvxUQJQKX0WOAe5FmarsS1I= ; Message-ID: <20050630143025.88169.qmail@web51608.mail.yahoo.com> Received: from [24.215.131.184] by web51608.mail.yahoo.com via HTTP; Thu, 30 Jun 2005 07:30:25 PDT Date: Thu, 30 Jun 2005 07:30:25 -0700 (PDT) To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-399034253-1120141825=:86948" Content-Transfer-Encoding: 8bit Subject: [PATCH] adding "--without-t1lib" for win32 GD configure From: msisolak@yahoo.com (Michael Sisolak) --0-399034253-1120141825=:86948 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline Please consider the attached patch which adds a "--without-t1lib" option for the win32 configure/make process (to ext/gd/config.w32). For those of us who want GD, but won't ever need the Type 1 font support recently added it would be useful to be able to not include the bulk of t1lib. Thanks. Michael Sisolak msisolak@yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-399034253-1120141825=:86948 Content-Type: text/plain; name="gd_config.w32.patch.txt" Content-Description: 3415691168-gd_config.w32.patch.txt Content-Disposition: inline; filename="gd_config.w32.patch.txt" --- config.w32.orig Thu Jun 30 10:15:57 2005 +++ config.w32 Thu Jun 30 10:13:40 2005 @@ -2,16 +2,24 @@ // vim:ft=javascript ARG_WITH("gd", "Bundled GD support", "yes,shared"); +ARG_WITH("t1lib", "t1lib support", "yes"); if (PHP_GD != "no") { if (CHECK_LIB("libjpeg.lib", "gd", PHP_GD) && CHECK_LIB("freetype2.lib", "gd", PHP_GD) && CHECK_LIB("libpng.lib", "gd", PHP_GD) && - CHECK_LIB("T1_StaticMD.lib", "gd", PHP_GD) && CHECK_LIB("zlib.lib", "gd", PHP_GD + ";..\\zlib;" + php_usual_lib_suspects) && - CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD + ";ext\\gd\\libgd") && - CHECK_HEADER_ADD_INCLUDE("t1lib.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\t1lib") + CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD + ";ext\\gd\\libgd") ) { + if (PHP_T1LIB != "no") { + if (CHECK_LIB("T1_StaticMD.lib", "gd", PHP_GD) && + CHECK_HEADER_ADD_INCLUDE("t1lib.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\t1lib") + ) { + ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBT1"); + } else { + WARNING("t1lib not enabled; libraries and headers not found"); + } + } EXTENSION("gd", "gd.c gdttf.c", null, "-Iext/gd/libgd", "php_gd2.dll"); ADD_SOURCES("ext/gd/libgd", "gd2copypal.c gd_arc_f_buggy.c gd.c \ @@ -43,7 +51,6 @@ /D HAVE_LIBPNG \ /D USE_GD_IMGSTRTTF \ /D USE_GD_IOCTX \ -/D HAVE_LIBT1 \ /D MSWIN32 \ "); } else { --0-399034253-1120141825=:86948--