2 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT(manual.xml.in,0.0.1)
6 AC_CHECK_PROGS(JADE, openjade jade, [nogood])
8 if test "$JADE" = nogood ; then
9 AC_MSG_ERROR(You need jade to build the documentation.
10 Get it from http://openjade.sourceforge.net/)
15 AC_PATH_PROG(LYNX, lynx, [nope])
17 if test "$LYNX" = nope ; then
18 AC_MSG_WARN(Can not create text version of manual)
20 DOCS="$DOCS manual.txt"
23 AC_PATH_PROG(DVIPS, dvips, [nodvips])
24 AC_PATH_PROG(JADETEX, jadetex, [nojadetex])
26 if test "$DVIPS" = nodvips -o "$JADETEX" = nojadetex ; then
27 AC_MSG_WARN(Can not create PostScript version of manual)
29 DOCS="$DOCS manual.ps"
33 dnl ========================================================================
36 if test -f /etc/redhat-release ; then
37 XML_DECL=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/dtds/decls/xml.dcl
38 HTML_SS=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/docbook.dsl
39 PRINT_SS=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/print/docbook.dsl
40 DOCBOOKX_DTD=/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd
43 XML_DECL=/usr/lib/sgml/declaration/xml.decl
44 HTML_SS=/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl
45 PRINT_SS=/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl
46 DOCBOOKX_DTS=/usr/share/sgml/docbook/dtd/xml/4.1/docbookx.dtd
50 XML_DECL=/sw/share/sgml/dsssl/docbook-dsssl-nwalsh/dtds/decls/xml.dcl
51 HTML_SS=/sw/share/sgml/dsssl/docbook-dsssl-nwalsh/html/docbook.dsl
52 PRINT_SS=/sw/share/sgml/dsssl/docbook-dsssl-nwalsh/print/docbook.dsl
53 DOCBOOKX_DTD=/sw/share/xml/dtd/docbookx/4.1.2/docbookx.dtd
56 echo "Don't know $host_os. Picking up from environment."
63 [ --with-xml-dcl=PATH place to find xml.dcl file])
64 if test -n "${xml_decl}"; then
68 if test ! -f $XML_DECL ; then
69 AC_MSG_ERROR(Can't find xml.dcl file. Set with --with-xml-dcl.)
74 [ --with-html-ss=PATH place to find html/docbook.dsl file])
75 if test -n "${html_ss}"; then
79 if test ! -f $HTML_SS ; then
80 AC_MSG_ERROR(Can't find html/docbook.dsl file. Set with --with-html-ss.)
84 [ --with-print-ss=PATH place to find print/docbook.dsl file])
85 if test -n "${print_ss}"; then
89 if test ! -f $PRINT_SS ; then
90 AC_MSG_ERROR(Can't find print/docbook.dsl file. Set with --with-print-ss.)
93 AC_ARG_WITH(docbook_dtd,
94 [ --with-dockbook-dtd=PATH place to find docbookx.dtd file])
95 if test -n "${docbook_dtd}"; then
96 DOCBOOKX_DTD=$docbook_dtd
99 if test ! -f $DOCBOOKX_DTD ; then
100 AC_MSG_ERROR(Can't find docbook.dsl file. Set with --with-docbook_dtd.)
106 AC_SUBST(DOCBOOKX_DTD)
111 AC_CONFIG_FILES([manual.xml Makefile])