Remove unused build script.
[lxde/lxpanel.git] / configure.ac
1 AC_PREREQ(2.53)
2 AC_INIT(lxpanel, 0.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 dnl check for netstats
23 PKG_CHECK_MODULES(GCONF, [gconf-2.0], HAVE_GCONF=yes, HAVE_GCONF=no)
24 AM_CONDITIONAL(BUILD_NETSTATUS, test x$HAVE_GCONF = xyes)
25
26 # Checks for header files.
27 AC_PATH_X
28 AC_HEADER_STDC
29 AC_HEADER_SYS_WAIT
30 AC_CHECK_HEADERS([locale.h stdlib.h string.h sys/time.h unistd.h])
31
32 # Checks for typedefs, structures, and compiler characteristics.
33 AC_C_CONST
34 AC_C_INLINE
35 AC_STRUCT_TM
36
37 # Checks for library functions.
38 AC_FUNC_MALLOC
39 AC_FUNC_MEMCMP
40 AC_TYPE_SIGNAL
41 AC_FUNC_STAT
42 AC_FUNC_STRFTIME
43 AC_CHECK_FUNCS([bzero memset mkdir setlocale strchr])
44
45
46 GETTEXT_PACKAGE=lxpanel
47 AM_GNU_GETTEXT([external])
48 AM_GNU_GETTEXT_VERSION(0.14.1)
49 AC_SUBST(GETTEXT_PACKAGE)
50 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
51
52 ALL_LINGUAS="zh_TW"
53 AM_GLIB_GNU_GETTEXT
54
55 AC_CONFIG_FILES([
56         Makefile
57         src/Makefile
58         src/plugins/Makefile
59         src/plugins/netstatus/Makefile
60         po/Makefile.in
61         data/Makefile
62         data/default
63 ])
64 AC_OUTPUT