okular/generators/configure.in.in
Albert Astals Cid 30c2f8067d oKular goes poppler
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=520367
2006-03-19 18:03:43 +00:00

34 lines
No EOL
954 B
Text

AC_ARG_WITH(libqgs,
[AC_HELP_STRING(--with-libqgs, [Where the Qt Ghostscript library is installed])],
[],
with_libqgs=check)
LIB_QGS=
if test "x$with_libqgs" != xno; then
AUX="$LDFLAGS"
LDFLAGS="-L$withval $LDFLAGS"
KDE_CHECK_LIB(qgs, main,
LIB_QGS=-lqgs
if test "x$with_libqgs" != "xcheck"; then
LIB_QGS_PATH="$withval"
fi)
LDFLAGS="$AUX"
fi
AC_SUBST(LIB_QGS)
AC_SUBST(LIB_QGS_PATH)
AM_CONDITIONAL(include_ghostscript, test -n "$LIB_QGS")
HAVE_CHMLIB=no
KDE_CHECK_HEADER(chm_lib.h, HAVE_CHMLIB=yes)
AM_CONDITIONAL(include_chm, test "x$HAVE_CHMLIB" = "xyes")
AC_ARG_WITH([poppler],
[AS_HELP_STRING([--with-poppler],
[Enable PDF support through poppler @<:@default=check@:>@])],
[], with_poppler=check)
if test "x$with_poppler" != xno; then
PKG_CHECK_MODULES(POPPLER, poppler >= 0.5.1, have_poppler_051=yes, have_poppler_051=no)
fi
AM_CONDITIONAL(include_pdf, test "x$have_poppler_051" = xyes)