summaryrefslogtreecommitdiffstats
path: root/autostart/configure.in
blob: 7df76acec58dd39e806245fe88b94750fb30ad2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
dnl -*- mode: m4 -*-
AC_PREREQ(2.52)

AC_INIT(autostart-spec.xml)

AM_INIT_AUTOMAKE(autostart-spec, 0.5)

# Honor aclocal flags
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"

 ## must come before we use the $USE_MAINTAINER_MODE variable later
AM_MAINTAINER_MODE

AC_ARG_ENABLE(xml-docs,         [  --enable-xml-docs     build XML into HTML (requires xmlto)],enable_xml_docs=$enableval,enable_xml_docs=auto)

### XML tools

AC_PATH_PROG(XMLTO, xmlto, no)

AC_MSG_CHECKING([whether to build XML documentation])

if test x$XMLTO = xno ; then
    have_xmlto=no
else
    have_xmlto=yes
fi

if test x$enable_xml_docs = xauto ; then
    if test x$have_xmlto = xno ; then
        enable_xml_docs=no
    else
        enable_xml_docs=yes
    fi
fi

if test x$enable_xml_docs = xyes; then
    if test x$have_xmlto = xno; then
	AC_MSG_ERROR([Building XML docs explicitly required, but xmlto not found])
    fi
fi

AM_CONDITIONAL(XML_DOCS_ENABLED, test x$enable_xml_docs = xyes)
AC_MSG_RESULT(yes)

AC_OUTPUT([
Makefile
])

dnl ==========================================================================
echo "
                Autostart specification $VERSION
                  ==============

	prefix:                   ${prefix}
	source code location:	  ${srcdir}
        xmlto:                    ${XMLTO}"

echo "
        Maintainer mode:          ${USE_MAINTAINER_MODE}
        Building XML docs:        ${enable_xml_docs}
"