X-Git-Url: https://git.tokkee.org/?p=tpdfview.git;a=blobdiff_plain;f=configure.ac;h=3ef87037520f52fbe3f297fc50233231558b7783;hp=ec99e903390ef841bc809b4c89498bf395685c3e;hb=be4324bd784c540dd352e5bf43c0ef7ebaeae387;hpb=b80324b4d56730e1dc89474f99ce63b41f541612 diff --git a/configure.ac b/configure.ac index ec99e90..3ef8703 100644 --- a/configure.ac +++ b/configure.ac @@ -180,6 +180,25 @@ AC_SUBST([STRICT_CFLAGS]) AC_CHECK_HEADERS(libgen.h) dnl Check for dependencies. +build_documentation="yes" + +have_xsltproc="yes" +AC_PATH_PROG([XSLTPROC], [xsltproc]) +if test "x$XSLTPROC" = "x"; then + have_xsltproc="no" + build_documentation="no (missing xsltproc)" +fi + +have_a2x="yes" +AC_PATH_PROG([A2X], [a2x]) +if test "x$A2X" = "x"; then + have_a2x="no" + build_documentation="no (missing a2x)" +fi +AC_SUBST([A2X]) + +AM_CONDITIONAL([BUILD_DOCUMENTATION], test "x$build_documentation" = "xyes") + PKG_CHECK_MODULES([CAIRO], [cairo]) PKG_CHECK_MODULES([GTK2], [gtk+-2.0]) PKG_CHECK_MODULES([POPPLER_GLIB], [poppler-glib]) @@ -199,11 +218,18 @@ Configuration summary: package version: $PACKAGE_VERSION build date: `date --utc '+%F %T'` (UTC) + Tools: + AsciiDoc (a2x): . . . . . . $have_a2x + xsltproc: . . . . . . . . . $have_xsltproc + Libraries: libcairo: . . . . . . . . . `$PKG_CONFIG --modversion cairo` libgtk-2.0: . . . . . . . . `$PKG_CONFIG --modversion gtk+-2.0` libpoppler-glib: . . . . . `$PKG_CONFIG --modversion poppler-glib` + Features: + documentation: . . . . . . $build_documentation + This package is maintained by $PACKAGE_MAINTAINER. Please report bugs to $PACKAGE_BUGREPORT.