1 AC_INIT(settings.xsl.in)
9 AC_ARG_WITH(samba-sources,
10 [ --with-samba-sources=DIR Specify path to Samba sources],
11 [ test "$withval" && SPECIFIED_SOURCEDIR="$withval" ])
14 [ --enable-crop Whether to use a crop template],
15 [ test "$enableval" && DOCROP="1" ])
19 AC_ARG_WITH(papersize,
20 [ --with-papersize Specify papersize (a4paper,letter) ],
21 [ test "$withval" && PAPERSIZE="$withval" ])
23 AC_ARG_ENABLE(printable,
24 [ --enable-printable Printable output (expand ulinks, etc)],
25 [ if test "$enableval"; then
31 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
32 AC_SUBST(DOC_BUILD_DATE)
34 AC_SUBST(ULINK_IN_FOOTNOTE)
37 AC_SUBST(SAMBASOURCEDIR)
39 DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
40 DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
41 DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, ALL)
43 # Check dia version number
44 [ DIA_VERSION=`$DIA -v | egrep -o '([0-9]+)\.([0-9]+)'`]
45 DIA_MAJ_VERSION=`echo $DIA_VERSION | cut -d . -f 1`
46 DIA_MIN_VERSION=`echo $DIA_VERSION | cut -d . -f 2`
48 if test "$DIA_MAJ_VERSION" -le "0"
50 if test "$DIA_MIN_VERSION" -le "92" && test -z "$DISPLAY"
52 AC_MSG_ERROR([Dia below 0.93 requires an X environment. Set \$DISPLAY or install Dia 0.93 or higher])
56 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINDEX, makeindex, LATEX)
57 DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF)
58 DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)
59 DOCS_TARGET_REQUIRE_PROGRAM(THUMBPDF, thumbpdf, PDF)
60 DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
61 DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
62 DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS)
63 DOCS_TARGET_REQUIRE_PROGRAM(DVIPS, dvips, PS)
64 DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
65 DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
66 DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
67 DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
68 DOCS_TARGET_REQUIRE_PROGRAM(FOP, fop, FOPDF)
69 DOCS_TARGET_REQUIRE_PROGRAM(DB2TEXI, docbook2x-texi, TEXI)
70 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINFO, makeinfo, TEXIINFO)
71 DOCS_TARGET_REQUIRE_DIR([$SPECIFIED_SOURCEDIR $SPECIFIED_SOURCEDIR/source ..], [param/loadparm.c], SAMBASOURCEDIR, UNDOCUMENTED)
74 AC_MSG_RESULT([Summary:])
75 AC_MSG_RESULT([--------------])
77 DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
78 DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex])
79 DOCS_DEFINE_TARGET(PDF, LATEX, [PDF versions], [pdf])
80 DOCS_DEFINE_TARGET(PS, LATEX, [PostScript versions], [ps])
81 DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
82 DOCS_DEFINE_TARGET(HTMLHELP, ALL, [HTML Help versions], [htmlhelp])
83 DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman3])
84 DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages3])
85 DOCS_DEFINE_TARGET(PEARSON, ALL, [pearson-compatible XML], [pearson])
86 DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
87 DOCS_DEFINE_TARGET(VALIDATE, ALL, [validating docbook output], [])
88 DOCS_DEFINE_TARGET(FOPDF, ALL, [PDF versions thru FO], [fo-pdf])
89 DOCS_DEFINE_TARGET(TEXI, ALL, [TexInfo versions], [texi])
90 DOCS_DEFINE_TARGET(TEXIINFO, ALL, [TexInfo Info versions], [texiinfo])
91 DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
92 DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
94 if test x"$TARGETS" = x; then
95 AC_MSG_ERROR([You won't be able to build any of the docs])
97 AC_MSG_RESULT([You will be able to build: $TARGETS])
102 AC_OUTPUT( Makefile.settings settings.xsl )