2005-06-13 10:23:53 +00:00
AC_INIT(xslt/latex.xsl)
2004-04-07 10:15:11 +00:00
2005-06-13 14:56:25 +00:00
LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,11pt,openright,twoside"
AC_SUBST(LATEX_DOCUMENTCLASS_OPTIONS)
2004-04-07 10:15:11 +00:00
DOC_BUILD_DATE=`date '+%d-%m-%Y'`
AC_SUBST(DOC_BUILD_DATE)
2004-04-23 14:23:36 +00:00
DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
2004-09-05 13:26:10 +00:00
2004-04-23 14:23:36 +00:00
DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
2009-05-01 14:14:30 +02:00
DOCS_TARGET_REQUIRE_PROGRAM(DBLATEX, dblatex, LATEX)
2005-03-17 00:13:11 +00:00
DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
2004-04-23 14:23:36 +00:00
AC_MSG_RESULT([])
AC_MSG_RESULT([Summary:])
AC_MSG_RESULT([--------------])
DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
2009-05-01 18:32:21 +02:00
DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex ps pdf])
2004-04-23 14:23:36 +00:00
DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
2004-06-14 21:25:16 +00:00
DOCS_DEFINE_TARGET(HTMLHELP, ALL, [HTML Help versions], [htmlhelp])
2012-09-10 12:28:19 +02:00
DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman])
2012-09-10 00:32:20 +02:00
DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages])
2005-03-17 00:13:11 +00:00
DOCS_DEFINE_TARGET(VALIDATE, ALL, [validating docbook output], [])
2004-04-23 14:23:36 +00:00
if test x"$TARGETS" = x; then
AC_MSG_ERROR([You won't be able to build any of the docs])
else
AC_MSG_RESULT([You will be able to build: $TARGETS])
fi
AC_SUBST(TARGETS)
2018-01-04 10:38:05 +01:00
. ../VERSION
2017-12-12 11:01:51 +01:00
if test x"$DOC_VERSION" = x; then
2018-01-04 10:38:05 +01:00
#AC_MSG_ERROR([Please export DOC_VERSION variable])
VERSION_SUFFIX=""
2018-01-04 12:55:26 +01:00
if test x"$SAMBA_VERSION_PRE_RELEASE" != x; then
2018-01-04 10:38:05 +01:00
VERSION_SUFFIX=pre
fi
DOC_VERSION=${SAMBA_VERSION_MAJOR}.${SAMBA_VERSION_MINOR}.${SAMBA_VERSION_RELEASE}${VERSION_SUFFIX}
2017-12-12 11:01:51 +01:00
else
AC_MSG_RESULT([DOC_VERSION: ${DOC_VERSION}])
fi
doc_version="${DOC_VERSION}"
AC_SUBST(doc_version)
AC_OUTPUT( Makefile.settings build/catalog.xml build/DTD/samba.build.version)