mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 06:18:02 +02:00
Disable PS surface build if no freetyp
This commit is contained in:
parent
9c70498e72
commit
cff61fbf0d
2 changed files with 32 additions and 23 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
2005-07-28 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* configure.in: Disable PS surface build if no freetype.
|
||||||
|
|
||||||
2005-07-28 Owen Taylor <otaylor@redhat.com>
|
2005-07-28 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* src/cairo-win32-font.c (_draw_glyphs_on_surface): Pass
|
* src/cairo-win32-font.c (_draw_glyphs_on_surface): Pass
|
||||||
|
|
|
||||||
51
configure.in
51
configure.in
|
|
@ -151,29 +151,6 @@ AC_SUBST(WIN32_FONT_FEATURE)
|
||||||
|
|
||||||
dnl ===========================================================================
|
dnl ===========================================================================
|
||||||
|
|
||||||
AC_ARG_ENABLE(ps,
|
|
||||||
[ --disable-ps Disable cairo's PostScript backend],
|
|
||||||
[use_ps=$enableval], [use_ps=yes])
|
|
||||||
|
|
||||||
# The postscript module requires zlib.
|
|
||||||
AC_CHECK_LIB(z, compress,
|
|
||||||
[AC_CHECK_HEADER(zlib.h, [],
|
|
||||||
[use_ps="no (requires zlib http://www.gzip.org/zlib/)"])],
|
|
||||||
[use_ps="no (requires zlib http://www.gzip.org/zlib/)"])
|
|
||||||
|
|
||||||
AM_CONDITIONAL(CAIRO_HAS_PS_SURFACE, test "x$use_ps" = "xyes")
|
|
||||||
if test "x$use_ps" = "xyes"; then
|
|
||||||
PS_SURFACE_FEATURE="#define CAIRO_HAS_PS_SURFACE 1"
|
|
||||||
PS_LIBS=-lz
|
|
||||||
fi
|
|
||||||
AC_SUBST(PS_SURFACE_FEATURE)
|
|
||||||
|
|
||||||
CAIRO_LIBS="$CAIRO_LIBS $PS_LIBS"
|
|
||||||
|
|
||||||
AC_SUBST(PS_LIBS)
|
|
||||||
|
|
||||||
dnl ===========================================================================
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(png,
|
AC_ARG_ENABLE(png,
|
||||||
[ --disable-png Disable cairo's PNG functions],
|
[ --disable-png Disable cairo's PNG functions],
|
||||||
[use_png=$enableval], [use_png=yes])
|
[use_png=$enableval], [use_png=yes])
|
||||||
|
|
@ -315,6 +292,34 @@ AC_CHECK_HEADERS([pthread.h])
|
||||||
|
|
||||||
dnl ===========================================================================
|
dnl ===========================================================================
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(ps,
|
||||||
|
[ --disable-ps Disable cairo's PostScript backend],
|
||||||
|
[use_ps=$enableval], [use_ps=yes])
|
||||||
|
|
||||||
|
if test x"$use_freetype" != "xyes" ; then
|
||||||
|
AC_MSG_WARN([PS backend requires FreeType, disabling])
|
||||||
|
use_ps=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The postscript module requires zlib.
|
||||||
|
AC_CHECK_LIB(z, compress,
|
||||||
|
[AC_CHECK_HEADER(zlib.h, [],
|
||||||
|
[use_ps="no (requires zlib http://www.gzip.org/zlib/)"])],
|
||||||
|
[use_ps="no (requires zlib http://www.gzip.org/zlib/)"])
|
||||||
|
|
||||||
|
AM_CONDITIONAL(CAIRO_HAS_PS_SURFACE, test "x$use_ps" = "xyes")
|
||||||
|
if test "x$use_ps" = "xyes"; then
|
||||||
|
PS_SURFACE_FEATURE="#define CAIRO_HAS_PS_SURFACE 1"
|
||||||
|
PS_LIBS=-lz
|
||||||
|
fi
|
||||||
|
AC_SUBST(PS_SURFACE_FEATURE)
|
||||||
|
|
||||||
|
CAIRO_LIBS="$CAIRO_LIBS $PS_LIBS"
|
||||||
|
|
||||||
|
AC_SUBST(PS_LIBS)
|
||||||
|
|
||||||
|
dnl ===========================================================================
|
||||||
|
|
||||||
AC_ARG_ENABLE(pdf,
|
AC_ARG_ENABLE(pdf,
|
||||||
[ --disable-pdf Disable cairo's PDF backend],
|
[ --disable-pdf Disable cairo's PDF backend],
|
||||||
[use_pdf=$enableval], [use_pdf=yes])
|
[use_pdf=$enableval], [use_pdf=yes])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue