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