1 AC_INIT(entities/global.entities)
8 AC_ARG_WITH(samba-sources,
9 [ --with-samba-sources=DIR Specify path to Samba sources],
10 [ test "$withval" && SPECIFIED_SOURCEDIR="$withval" ])
13 [ --enable-crop Whether to use a crop template],
14 [ test "$withval" && DOCROP="1" ])
18 AC_ARG_WITH(papersize,
19 [ --with-papersize Specify papersize (a4paper,letter) ],
20 [ test "$withval" && PAPERSIZE="$withval" ])
25 [ --with-fontsize Specify the fontsize in points (default: 10.5) ],
26 [ test "$withval" && FONTSIZE="$withval" ])
29 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
30 AC_SUBST(DOC_BUILD_DATE)
32 AC_SUBST(DUPLICATE_ULINKS)
35 AC_SUBST(SAMBASOURCEDIR)
37 DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
38 DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
39 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINDEX, makeindex, LATEX)
40 DOCS_TARGET_REQUIRE_PROGRAM(WGET, wget, LATEX)
41 DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF)
42 DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)
43 DOCS_TARGET_REQUIRE_PROGRAM(THUMBPDF, thumbpdf, PDF)
44 DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
45 DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
46 DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS)
47 DOCS_TARGET_REQUIRE_PROGRAM(DVIPS, dvips, PS)
48 DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
49 DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
50 DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
51 DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VERIFY)
52 DOCS_TARGET_REQUIRE_DIR([$SPECIFIED_SOURCEDIR ..], [source/configure.in], SAMBASOURCEDIR, UNDOCUMENTED)
55 AC_MSG_RESULT([Summary:])
56 AC_MSG_RESULT([--------------])
58 DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
59 DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex])
60 DOCS_DEFINE_TARGET(PDF, LATEX, [PDF versions], [pdf])
61 DOCS_DEFINE_TARGET(PS, LATEX, [PostScript versions], [ps])
62 DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
63 DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman])
64 DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages])
65 DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
66 DOCS_DEFINE_TARGET(VERIFY, ALL, [verifying docbook output], [verify])
67 DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
68 DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
70 if test x"$TARGETS" = x; then
71 AC_MSG_ERROR([You won't be able to build any of the docs])
73 AC_MSG_RESULT([You will be able to build: $TARGETS])
78 AC_OUTPUT( Makefile settings.xsl )