VERSION: Cairo 0.3.0
STEPS TO REPRODUCE:
1) Make sure there is no "fontconfig" package known to pkg-config
2) Configure and build Cairo.
Configure succeeds, but produces the following output:
checking for fontconfig... checking for Carbon/Carbon.h... (cached) no
cairo will be compiled with the following surface backends:
and the following font backends:
When compiling, the following error stops the compile:
`CAIRO_FONT_BACKEND_DEFAULT' undeclared (first use in this function)
Not having a valid font backend should lead to a configure-time error, if it
will definitely lead to a build-time error.
The code in cairo/src/cairoint.h does:
749 #ifdef CAIRO_HAS_FT_FONT
754 #define CAIRO_FONT_BACKEND_DEFAULT &cairo_ft_font_backend
756 #elif defined(CAIRO_HAS_ATSUI_FONT)
760 #define CAIRO_FONT_BACKEND_DEFAULT &cairo_atsui_font_backend
This should probably have an #else clause that has an appropriate #error. But
again, this should be getting flagged as a fatal error at configure time.
Thanks for the report. Here's a new block of code to make configure fail
if no font backend is available:
if test x"$use_freetype" != "xyes" && \
test x"$use_win32" != "xyes" && \
test x"$use_atsui" != "xyes" ; then
AC_MSG_ERROR([Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
I've committed this now.
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.