fix typo.
[lxde/lxpanel.git] / configure.ac
1 AC_PREREQ(2.53)
2 AC_INIT(lxpanel, 0.1.1, http://lxpanel.sourceforge.net/)
3 AM_INIT_AUTOMAKE()
4 AC_CONFIG_SRCDIR([src/bg.c])
5 AC_CONFIG_HEADER([config.h])
6
7 # Checks for programs.
8 AC_PROG_CC
9 AC_PROG_INSTALL
10 AC_PROG_LN_S
11 AC_PROG_LIBTOOL
12 AC_PROG_INTLTOOL(, [no-xml])
13
14 # Checks for libraries.
15 pkg_modules="gtk+-2.0 >= 2.6.0 \
16              gthread-2.0 \
17              libstartup-notification-1.0"
18 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
19 AC_SUBST(PACKAGE_CFLAGS)
20 AC_SUBST(PACKAGE_LIBS)
21
22 AC_ARG_ENABLE([plugins-loading],
23         AS_HELP_STRING([--disable-plugins-loading],
24                        [disable plugin loading (default: enable)]),
25                        plugins_loading=$enableval, plugins_loading="yes")
26
27 AM_CONDITIONAL(BUILD_PLUGIN_LOADER, test x$plugins_loading = xyes)
28
29 if test "$plugins_loading" = "no"; then
30         AC_DEFINE(DISABLE_PLUGINS_LOADING, [1], [Disable plugin loading])
31 fi
32
33
34 # Checks for header files.
35 AC_PATH_X
36 AC_HEADER_STDC
37 AC_HEADER_SYS_WAIT
38 AC_CHECK_HEADERS([locale.h stdlib.h string.h sys/time.h unistd.h])
39
40 # Checks for typedefs, structures, and compiler characteristics.
41 AC_C_CONST
42 AC_C_INLINE
43 AC_STRUCT_TM
44
45 # Checks for library functions.
46 AC_FUNC_MALLOC
47 AC_FUNC_MEMCMP
48 AC_TYPE_SIGNAL
49 AC_FUNC_STAT
50 AC_FUNC_STRFTIME
51 AC_CHECK_FUNCS([bzero memset mkdir setlocale strchr])
52
53
54 GETTEXT_PACKAGE=lxpanel
55 AM_GNU_GETTEXT([external])
56 AM_GNU_GETTEXT_VERSION(0.14.1)
57 AC_SUBST(GETTEXT_PACKAGE)
58 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
59
60 ALL_LINGUAS="zh_TW"
61 AM_GLIB_GNU_GETTEXT
62
63 AC_CONFIG_FILES([
64         Makefile
65         src/Makefile
66         src/plugins/Makefile
67         src/plugins/netstatus/Makefile
68         src/plugins/volume/Makefile
69         src/plugins/cpu/Makefile
70         po/Makefile.in
71         data/Makefile
72         data/default
73 ])
74 AC_OUTPUT