Releasing debian version 0.5.5-6.
[debian/lxde-common.git] / configure.ac
1 AC_PREREQ([2.57])
2 AC_INIT(lxde-common,[0.5.5], [],lxde-common)
3 AM_INIT_AUTOMAKE()
4 dnl AC_PROG_INTLTOOL(, [no-xml])
5 dnl AM_MAINTAINER_MODE
6
7 # Checks for programs.
8 AC_PROG_INSTALL
9 AC_PROG_LN_S
10
11 AC_ARG_ENABLE(man,
12        [AC_HELP_STRING([--enable-man],
13                [regenerate roff man pages from Docbook @<:@default=no@:>@])],
14        [enable_man="${enableval}"],
15        [enable_man=no]
16 )
17 # xsessions data of path for GDM
18 AC_ARG_WITH([xsession-path],
19     AS_HELP_STRING(
20         [--with-xsession-path=PATH],
21         [set the install path of xsession data [[DATAROOTDIR/xsessions]]]),
22         [test x$withval != x && xsesspath="$withval"],
23         [xsesspath="\${datarootdir}/xsessions"])
24 AC_SUBST(xsesspath)
25
26
27 if test x"$enable_man" = x"yes"; then
28         AC_PATH_PROG([XSLTPROC], [xsltproc])
29         if test -z "$XSLTPROC"; then
30                 enable_man=no
31         fi
32
33         dnl check for DocBook DTD and stylesheets in the local catalog.
34         JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
35                 [DocBook XML DTD V4.1.2], [], enable_man=no)
36         JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
37                 [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
38 fi
39
40 AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
41
42 AC_OUTPUT([
43   Makefile
44   startlxde
45   lxde-logout
46   LXDE.desktop
47   lxde-logout.desktop
48   lxpanel/panel
49   openbox/rc.xml
50   openbox-lxde
51   pcmanfm/pcmanfm.conf
52   man/Makefile
53 ])
54
55 if test x"$sysconfdir" != x'/etc'; then
56     echo
57     echo
58     echo 'Error: sysconfdir is not /etc.'
59     echo 'Please consider passing --sysconfdir=/etc to configure.';
60     echo 'Otherwise default config files will be installed to wrong place.'
61     echo
62     echo
63 fi