diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2010-07-16 16:19:46 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2010-07-16 16:19:46 +0200 |
commit | 7285f9ef7882c2b531464fa3f7b4b3bed09d3c2c (patch) | |
tree | b8049a01f1c03deee55feea717c8b07cd0320646 /acinclude.m4 | |
parent | ef32c8cc68d277e8b86ce3081a4aa6a12f5ba377 (diff) | |
download | tumbler-7285f9ef7882c2b531464fa3f7b4b3bed09d3c2c.tar.gz |
Add poppler-based PDF/PS thumbnailer plugin. New error code NO_CONTENT.
This commit introduces a simple PDF/PS thumbnailer based on
poppler-glib. It also adds a new error code TUMBLER_ERROR_NO_CONTENT for
documents that are not empty files but do not contain thumbnailable
content.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index ca93400..e2d374b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -145,6 +145,30 @@ AC_MSG_RESULT([$ac_tumbler_ffmpeg_thumbnailer]) +dnl TUMBLER_POPPLER_THUMBNAILER() +dnl +dnl Check whether to build and install the poppler PDF/PS thumbnailer plugin. +dnl +AC_DEFUN([TUMBLER_POPPLER_THUMBNAILER], +[ +AC_ARG_ENABLE([poppler-thumbnailer], [AC_HELP_STRING([--disable-poppler-thumbnailer], [Don't build the poppler PDF/PS thumbnailer plugin])], + [ac_tumbler_poppler_thumbnailer=$enableval], [ac_tumbler_poppler_thumbnailer=yes]) +if test x"$ac_tumbler_poppler_thumbnailer" = x"yes"; then + dnl Check for gdk-pixbuf + PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14], + [ + dnl Check for poppler-glib + PKG_CHECK_MODULES([POPPLER_GLIB], [poppler-glib >= 0.12.0], [], [ac_tumbler_poppler_thumbnailer=no]) + ], [ac_tumbler_poppler_thumbnailer=no]) +fi + +AC_MSG_CHECKING([whether to build the poppler PDF/PS thumbnailer plugin]) +AM_CONDITIONAL([TUMBLER_POPPLER_THUMBNAILER], [test x"$ac_tumbler_poppler_thumbnailer" = x"yes"]) +AC_MSG_RESULT([$ac_tumbler_poppler_thumbnailer]) +]) + + + dnl TUMBLER_XDG_CACHE() dnl dnl Check whether to build and install the freedesktop.org cache plugin. |