summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/pdf/configure.in.in
blob: 926497a55b17e3fbd82f5358aeca8af30d6e3a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
AC_ARG_WITH([poppler],
  [AC_HELP_STRING([--with-poppler],
    [Enable PDF support through poppler  @<:@default=check@:>@])],
  [], with_poppler=check)

# Compile the pdf meta info plugin only if Poppler is available
if test "x$with_poppler" != xno; then
  PKG_CHECK_MODULES(POPPLER, poppler-qt >= 0.3.1, have_poppler=yes, have_poppler=no)

  if test "x$with_poppler" != xcheck && test "x$have_poppler" != xyes; then
    AC_MSG_ERROR([--with-poppler was given, but test for poppler failed])
  fi
fi

AM_CONDITIONAL(include_PDF, test "x$have_poppler" = xyes)