1
1
# -*-m4-*- Process this file with autoconf to produce a configure script.
3
AC_INIT(src/bubblemon.h)
4
AM_INIT_AUTOMAKE(bubblemon, 1.0.9)
4
######################################################################
6
# General system tests required for building platform independent
10
AC_INIT(bubblemon, 2.0.4)
11
AC_CONFIG_SRCDIR(src/bubblemon.h)
13
AM_INIT_AUTOMAKE([1.5])
5
16
AM_CONFIG_HEADER(config.h)
7
# Pick up the Gnome macros.
8
AM_ACLOCAL_INCLUDE(macros)
18
AC_PROG_INTLTOOL([0.21])
16
GNOME_INIT_LIBGTOP(1.0.0, fail)
17
GNOME_COMPILE_WARNINGS
20
# Find out if the GNOME panel is resizable
21
AC_MSG_CHECKING(whether panel resizing is supported)
25
have_change_pixel_size=yes,
26
have_change_pixel_size=no)
28
if test "x$have_change_pixel_size" = "xyes"; then
30
AC_DEFINE(HAVE_CHANGE_PIXEL_SIZE)
36
AC_CHECK_HEADERS(sys/sysinfo.h)
25
# Find some more or less non-standard data types
26
AC_CHECK_TYPE(u_int32_t, unsigned int)
27
AC_CHECK_TYPE(u_int16_t, unsigned short int)
28
AC_CHECK_TYPE(u_int8_t, unsigned char)
30
# Find out whether we are on a big-endian system
38
33
# For i18n and l10n
39
ALL_LINGUAS="sv fr pl de ko fi da sh pt ro es no hu it"
34
ALL_LINGUAS="sv fr pl de ko fi da sh pt ro es no hu it is ru ca"
41
36
# Check if the user wants all languages to be compiled
51
46
AC_MSG_CHECKING(what languages to include)
52
47
AC_MSG_RESULT($LINGUAS)
49
GETTEXT_PACKAGE=bubblemon
50
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext wants to know...])
51
AC_SUBST(GETTEXT_PACKAGE)
54
53
# For i18n and l10n (continued)
57
# Find some more or less non-standard data types
58
AC_CHECK_TYPE(u_int32_t, unsigned int)
59
AC_CHECK_TYPE(u_int16_t, unsigned short int)
60
AC_CHECK_TYPE(u_int8_t, unsigned char)
62
# Find GNOME's sysconf dir
63
AC_MSG_CHECKING(for GNOME's sysconf dir)
64
GNOME_SYSCONFDIR=`$GNOME_CONFIG --sysconfdir`
65
AC_SUBST(GNOME_SYSCONFDIR)
66
AC_MSG_RESULT($GNOME_SYSCONFDIR)
68
# Find GNOME's data dir
69
AC_MSG_CHECKING(for GNOME's data dir)
70
GNOME_DATADIR=`$GNOME_CONFIG --datadir`
71
AC_SUBST(GNOME_DATADIR)
72
AC_MSG_RESULT($GNOME_DATADIR)
74
# Subst PACKAGE_PIXMAPS_DIR.
75
PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"
76
AC_SUBST(PACKAGE_PIXMAPS_DIR)
78
# Check if the user wants to enable ripples
81
[ --enable-ripples[=amount] Makes surface ripple whith bubbles. Amount defaults to 0.2])
83
# Set rippling to 0.2 if no value is given
84
if test -z "$enableval"; then
88
# Set rippling to 0.2 if no value is given
89
if test "$enableval" = "yes"; then
93
AC_MSG_CHECKING(how much the bubbles should make the surface ripple)
95
AC_DEFINE_UNQUOTED(RIPPLES, $enableval, How much the bubbles make the surface ripple (0.0 - 1.0))
97
AC_MSG_RESULT($enableval)
56
# Where do we put locale information?
57
if test "x$prefix" = "xNONE"; then
58
LOCALEDIR=$ac_default_prefix/share/locale
60
LOCALEDIR=$prefix/share/locale
62
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Where language files get installed])
66
######################################################################
68
# Bubblemon specific tests
99
72
# Check if the user wants to enable profiling
112
85
AC_MSG_RESULT($profilingFLAGS)
114
AC_DEFINE(ENABLE_PROFILING)
87
AC_DEFINE([ENABLE_PROFILING], [], [Build a bubblemon that bubbles a lot for a minute and then exits])
117
90
AC_MSG_WARN(You have enabled profiling by specifying the --enable-profiling switch.)
97
##############################
98
# GNOME 2.x specific tests
101
LIBPANEL_REQUIRED=2.0.0
102
LIBGTOP_REQUIRED=2.0.0
104
# We need the panel for the applets
106
PKG_CHECK_MODULES(GNOME_APPLETS,
107
[libpanelapplet-2.0 >= $LIBPANEL_REQUIRED],
109
AC_MSG_WARN([GNOME2 panel not found.]))
110
AC_SUBST(GNOME_APPLETS_CFLAGS)
111
AC_SUBST(GNOME_APPLETS_LIBS)
113
# Check for gtop2 libs
114
build_gtop_applets=false
115
PKG_CHECK_MODULES(GTOP_APPLETS,
116
[libgtop-2.0 >= $LIBGTOP_REQUIRED],
117
build_gtop_applets=true,
118
AC_MSG_WARN([libgtop not found.]))
119
AC_SUBST(GTOP_APPLETS_CFLAGS)
120
AC_SUBST(GTOP_APPLETS_LIBS)
121
AM_CONDITIONAL(BUILD_GTOP_APPLETS, $build_gtop_applets)
123
# The gnome2 panel is resizable
124
AC_DEFINE([HAVE_CHANGE_PIXEL_SIZE], [], [Whether the GNOME Panel can change size])
127
######################################################################
129
# Output our test results
129
141
packaging/Makefile
130
142
packaging/bubblemon.spec
137
man/bubblemon_applet.1
144
man/bubblemon-gnome2.1
139
man/hu/bubblemon_applet.1
146
man/hu/bubblemon-gnome2.1
141
man/sv/bubblemon_applet.1
148
man/sv/bubblemon-gnome2.1