Release 0.5.6.
[lxde/lxde-common.git] / configure.ac
CommitLineData
2c453b37 1AC_PREREQ([2.57])
d21bb179 2AC_INIT(lxde-common,[0.5.6], [http://lxde.org])
0b310fda 3AM_INIT_AUTOMAKE([-Wall -Werror foreign no-dist-gzip dist-xz])
2c453b37 4dnl AC_PROG_INTLTOOL(, [no-xml])
2d2281d3 5dnl AM_MAINTAINER_MODE
2c453b37 6
2d2281d3 7# Checks for programs.
2c453b37 8AC_PROG_INSTALL
0d5e1b26 9AC_PROG_LN_S
2c453b37 10
a745da48
JH
11AC_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)
c9052001
FC
17# xsessions data of path for GDM
18AC_ARG_WITH([xsession-path],
19 AS_HELP_STRING(
20 [--with-xsession-path=PATH],
f57e6336 21 [set the install path of xsession data [[DATAROOTDIR/xsessions]]]),
c9052001 22 [test x$withval != x && xsesspath="$withval"],
f57e6336 23 [xsesspath="\${datarootdir}/xsessions"])
c9052001
FC
24AC_SUBST(xsesspath)
25
2d2281d3 26
a745da48
JH
27if 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)
38fi
39
40AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
41
f2dbe5b4
AG
42dnl Fix invalid sysconfdir when --prefix=/usr
43if test `eval "echo $sysconfdir"` = /usr/etc
44then
45 sysconfdir=/etc
46fi
47
2c453b37
HJYP
48AC_OUTPUT([
49 Makefile
50 startlxde
e559e0dd 51 lxde-logout
2c453b37 52 LXDE.desktop
53ae678c 53 lxde-logout.desktop
7c6da058 54 lxpanel/panel
9b8d9fdb 55 openbox/rc.xml
3a5bb4c6 56 openbox-lxde
4a461c3f 57 pcmanfm/pcmanfm.conf
fdf53c7b 58 man/Makefile
2c453b37
HJYP
59])
60
bf7093b8
HJYP
61if test x"$sysconfdir" != x'/etc'; then
62 echo
63 echo
64 echo 'Error: sysconfdir is not /etc.'
65 echo 'Please consider passing --sysconfdir=/etc to configure.';
66 echo 'Otherwise default config files will be installed to wrong place.'
67 echo
68 echo
69fi