Automatic translation update from Pootle
[lxde/lxde-common.git] / configure.ac
CommitLineData
2c453b37 1AC_PREREQ([2.57])
781fad53 2AC_INIT(lxde-common,[0.99.2], [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
3f716ca4
AG
48GETTEXT_PACKAGE=lxde-common
49AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of default gettext domain])
50AC_SUBST(GETTEXT_PACKAGE)
51
52# Generate po/LINGUAS on the fly rather than relying on translators
53# to maintain it manually. This also overcome the problem that Transifex
54# cannot add a language to po/LINGUAS if a new po file is submitted.
55rm -f $srcdir/po/LINGUAS
56for po_file in `ls $srcdir/po/*.po | sort`;
57do
58 lang=`echo "$po_file" | sed "s|.*/po/\(.*\)\.po|\1|g"`
59 echo $lang >> $srcdir/po/LINGUAS
60done
61
62AM_GLIB_GNU_GETTEXT
63
64IT_PROG_INTLTOOL([0.40.0])
65
66dnl dirty hack used to prevent the installation of useless mo files.
67USE_NLS=no
68AC_SUBST(USE_NLS)
69
2c453b37
HJYP
70AC_OUTPUT([
71 Makefile
72 startlxde
e559e0dd 73 lxde-logout
3f716ca4 74 LXDE.desktop.in
7c6da058 75 lxpanel/panel
9b8d9fdb 76 openbox/rc.xml
3a5bb4c6 77 openbox-lxde
4a461c3f 78 pcmanfm/pcmanfm.conf
fdf53c7b 79 man/Makefile
3f716ca4 80 po/Makefile.in
2c453b37
HJYP
81])
82
bf7093b8
HJYP
83if test x"$sysconfdir" != x'/etc'; then
84 echo
85 echo
86 echo 'Error: sysconfdir is not /etc.'
87 echo 'Please consider passing --sysconfdir=/etc to configure.';
88 echo 'Otherwise default config files will be installed to wrong place.'
89 echo
90 echo
91fi