rebuilt pot after UI changes
[lxde/lxappearance.git] / configure.ac
CommitLineData
0cd84ed6
HJYP
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4prog_name = lxappearance2
5
6AC_PREREQ([2.63])
ae63f687 7AC_INIT([lxappearance2], [0.2.0], [http://lxde.org/])
0cd84ed6
HJYP
8AM_INIT_AUTOMAKE([-Wall -Werror foreign])
9
10AC_CONFIG_HEADERS([config.h])
11
12# Checks for programs.
13AC_PROG_CC
14# AM_PROG_LIBTOOL
15
16# Checks for libraries.
17
18# Checks for header files.
19AC_HEADER_STDC
20
21# Checks for typedefs, structures, and compiler characteristics.
22
23# Checks for library functions.
24
25# intltool
26IT_PROG_INTLTOOL([0.40.0])
27
28# PKG_CHECK_MODULES(XLIB, "x11")
29# AC_SUBST(XLIB_CFLAGS)
30# AC_SUBST(XLIB_LIBS)
31
32pkg_modules="gtk+-2.0 >= 2.12.0"
33PKG_CHECK_MODULES(GTK, [$pkg_modules])
34AC_SUBST(GTK_CFLAGS)
35AC_SUBST(GTK_LIBS)
36
37# gio_modules="gthread-2.0 gio-unix-2.0 glib-2.0 >= 2.18.0"
38# PKG_CHECK_MODULES(GIO, [$gio_modules])
39# AC_SUBST(GIO_CFLAGS)
40# AC_SUBST(GIO_LIBS)
41
42# menu_modules="libmenu-cache >= 0.3.2"
43# PKG_CHECK_MODULES(MENU_CACHE, [$menu_modules])
44# AC_SUBST(MENU_CACHE_CFLAGS)
45# AC_SUBST(MENU_CACHE_LIBS)
46
47AC_ARG_ENABLE(debug,
48 [AC_HELP_STRING([--enable-debug],
49 [build libfm with debug support @<:@default=no@:>@])],
50 [enable_debug="${enableval}"],
51 [enable_debug=no]
52)
53if test "$enable_debug" = "yes"; then
54 # turn on debug and disable optimization
55 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG -O0 -g"
56else
57 # turn off glib debug checks
58 CPPFLAGS="$CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
59fi
60
61# Generate po/LINGUAS on the fly rather than relying on translators
62# to maintain it manually. This also overcome the problem that Transifex
63# cannot add a language to po/LINGUAS if a new po file is submitted.
64rm -f $srcdir/po/LINGUAS
65for po_file in `ls $srcdir/po/*.po | sort`;
66do
67 lang=`echo "$po_file" | sed "s|.*/po/\(.*\)\.po|\1|g"`
68 echo $lang >> $srcdir/po/LINGUAS
69done
70
71GETTEXT_PACKAGE=lxappearance2
72AC_SUBST(GETTEXT_PACKAGE)
73AM_GLIB_GNU_GETTEXT
74AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
75
76AC_CONFIG_FILES([
77 Makefile
78 src/Makefile
79 data/Makefile
80 data/ui/Makefile
81 data/ui/about.glade
82 po/Makefile.in
83])
84
85AC_OUTPUT
86
87if test x"$sysconfdir" != x'/etc'; then
88 echo
89 echo
90 echo 'Error: sysconfdir is not /etc.'
91 echo 'Please consider passing --sysconfdir=/etc to configure.';
92 echo 'Otherwise default config files will be installed to wrong place.'
93 echo
94 echo
95else
96 echo
97 echo lxappearance2....................... : Version $VERSION
98 echo
99 echo Enable debug....................: "$enable_debug"
100 echo Prefix..........................: $prefix
101 echo
102 echo The binary will be installed in $prefix/bin
103 echo
104 echo http://lxde.org/
105 echo
106 echo "Ready to make lxappearance2. Type 'make' to continue."
107 echo
108fi