Mercurial > hg > forks > geeqie
diff configure.in @ 2799:ea4163f0c769
Ref #332: include pdf-view
Display an image of the first page of a pdf file.
GTK3 only.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Wed, 18 Jul 2018 11:09:22 +0100 |
parents | 99245ee344a9 |
children | 0c4659cd6d32 |
line wrap: on
line diff
--- a/configure.in Wed Jul 18 10:16:41 2018 +0100 +++ b/configure.in Wed Jul 18 11:09:22 2018 +0100 @@ -540,6 +540,35 @@ AC_SUBST(LUA_CFLAGS) AC_SUBST(LUA_LIBS) +# Pdf support +# ---------------------------------------------------------------------- + +if test "x${gtk3}" != "xno"; then + AC_ARG_ENABLE([pdf], + AC_HELP_STRING([--disable-pdf], [disable pdf support]), + [libpdf=$enableval], [libpdf=auto]) + + if test "x${libpdf}" != "xno"; then + PKG_CHECK_MODULES(PDF, poppler-glib >= 0.62, + [ + HAVE_PDF=yes + AC_DEFINE(HAVE_PDF, 1, [define to enable pdf support]) + ], + [ + HAVE_PDF=no + AC_MSG_WARN([$PDF_PKG_ERRORS]) + ]) + else + HAVE_PDF=disabled + fi +else + HAVE_PDF=disabled +fi + +AM_CONDITIONAL(HAVE_PDF, [test "x$HAVE_PDF" = xyes]) +AC_SUBST(PDF_CFLAGS) +AC_SUBST(PDF_LIBS) + # Markdown support # ---------------------------------------------------------------------- @@ -641,6 +670,7 @@ Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK Lua: $HAVE_LUA FFmpegthumbnailer: $HAVE_FFMPEGTHUMBNAILER + Pdf: $HAVE_PDF Documentation: Doxygen: $DX_DOXYGEN