have been looking more into this...<br>ubuntu, debian, redhat, mandrake and probably others all bundle their libagg-dev or equivalent with the .h in the agg include directory and with libaggfontfreetype.so in lib .<br>things go badder if you try to compile using the source directory of agg as your --with-agg parameter, as
libaggfontfreetype.o is not compiled by default, and agg_font_freetype.h is not in the include directory.<br>for the autoconf knowledgeable:<br> would their be a way of checking if agg_font_freetype.h and libaggfontfreetype.so
are in the default paths,<br>and then setting AGG_LIB=-lagg -laggfontfreetype,<br> and if not compile or have the user compile $AGG_DIR/font_freetype/agg_font_freetype.cpp, and then have AGG_INC+=AGG_DIR/font_freetype and AGG_LIB=AGG_DIR/font_freetype/agg_font_freetype.o -lagg
<br><br>I think falling back to GD would be a pity as it's relatively easy to set this up<br><br>tb<br><br><br><br><div><span class="gmail_quote">On 8/6/07, <b class="gmail_sendername">Stephen Woodbridge</b> <<a href="mailto:woodbri@swoodbridge.com">
woodbri@swoodbridge.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Should this be added as a configure option? ie: use it if agg is
<br>selected and the libaggfontfreetype or the .h is included in the<br>distribution, otherwise fall back on GD by using #ifdef's.<br><br>-Steve<br><br>thomas bonfort wrote:<br>> update:<br>> ubuntu's distribution of agg includes the header file, and all goes well
<br>> if I add -laggfontfreetype to the LIBS<br>><br>> On 8/6/07, *thomas bonfort* <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a><br>> <mailto:<a href="mailto:thomas.bonfort@gmail.com">
thomas.bonfort@gmail.com</a>>> wrote:<br>><br>> hi devs<br>> AGG rendering is now mostly complete, including font rendering.<br>> the agg source distribution includes a freetype font manager that is
<br>> not built by default and not included in the main source/include<br>> directories, but in the font_freetype subdir. For font rendering to<br>> work, I've pulled agg_font_freetype.cpp and .h into the mapserver
<br>> directory, as there are high chances that distribution releases of<br>> AGG will not include the agg_font_freetype.o in their libagg or<br>> agg_font_freetype.h in their headers.<br>> After discussing this with frank, due to the non negligeable risks
<br>> of breaking things, I'll be waiting for your feedback/comments/etc..<br>> on this before commiting all this.<br>><br>> thomas<br>><br>><br><br></blockquote></div><br>