From f09959b414ef0f5112f7c6277a23606e432e2389 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 18 Dec 2006 17:01:34 +0000 Subject: Make cairo-pdf depedency optional. 2006-12-18 Carlos Garcia Campos * configure.ac: * pdf/ev-poppler.cc: (pdf_print_context_free), (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page): Make cairo-pdf depedency optional. --- (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2e431cf..8d17081 100644 --- a/configure.ac +++ b/configure.ac @@ -206,6 +206,11 @@ if test "x$enable_pdf" = "xyes"; then LIBS="$LIBS $FRONTEND_LIBS" AC_CHECK_FUNCS(poppler_page_render) LIBS=$evince_save_LIBS + + PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no) + if test x$enable_cairo_pdf == xyes; then + AC_DEFINE([HAVE_CAIRO_PDF], [1], [defined if cairo-pdf is available]) + fi else AC_MSG_WARN("PDF support is disabled since poppler-glib library version $POPPLER_REQUIRED or newer not found") fi -- cgit v0.9.1