summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3ff669)
raw | patch | inline | side by side (parent: e3ff669)
author | miklosh <miklosh@users.sourceforge.net> | |
Sun, 18 Nov 2007 12:42:17 +0000 (12:42 +0000) | ||
committer | miklosh <miklosh@users.sourceforge.net> | |
Sun, 18 Nov 2007 12:42:17 +0000 (12:42 +0000) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 340b7e4a8a0464c7851d3cab66904a38514f5a32..75bce9381b510bd13e1905ca7de5a3d499cb9a7c 100644 (file)
--- a/configure.ac
+++ b/configure.ac
dnl Have to test libpoppler-cairo presence for PDF preview
dnl AC_CHECK_HEADER(Magick++.h, magick_ok=yes, magick_ok=no)
PKG_CHECK_MODULES(POPPLER_CAIRO, poppler-cairo >= 0.5.9, poppler_cairo=yes, poppler_cairo=no)
- if test "x$poppler_cairo" = "xyes"; then
- dnl Working libpoppler-cairo found
- dnl Check whether the Cairo FreeType backend is available
- PKG_CHECK_MODULES(CAIRO_FT, cairo-ft, cairo_ft=yes, cairo_ft=no)
- fi
+ if test "x$poppler_glib" = "xyes" -a "x$poppler_cairo" = "xyes" -a \
+ "x$cairo_svg" = "xno"
+ then
+ POPPLER_LIBS="$POPPLER_LIBS -lpoppler-glib "
+ fi
fi
fi
LIBS="$LIBS $POPPLER_LIBS"
AC_DEFINE(HAVE_POPPLER, 1, [Use libpoppler for direct PDF import])
fi
-if test "x$cairo_ft" = "xyes"; then
+if test "x$poppler_cairo" = "xyes" -a "x$poppler_glib" = "xyes"; then
AC_DEFINE(HAVE_POPPLER_CAIRO, 1, [Use libpoppler-cairo for rendering PDF preview])
fi
if test "x$poppler_glib" = "xyes" -a "x$cairo_svg" = "xyes"; then