2
AC_INIT(src/indicator-sound.c)
6
AM_CONFIG_HEADER(config.h)
7
AM_INIT_AUTOMAKE(indicator-sound, 0.1.0)
11
IT_PROG_INTLTOOL([0.35.0])
20
AC_CONFIG_MACRO_DIR([m4])
22
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
24
###########################
26
###########################
28
GTK_REQUIRED_VERSION=2.12
29
INDICATOR_REQUIRED_VERSION=0.3.0
30
DBUSMENUGTK_REQUIRED_VERSION=0.2.0
31
POLKIT_REQUIRED_VERSION=0.92
32
PULSE_AUDIO_REQUIRED_VERSION=0.9.19
33
INDICATOR_DISPLAY_OBJECTS=0.1
35
PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION
36
indicator >= $INDICATOR_REQUIRED_VERSION
37
dbusmenu-gtk >= $DBUSMENUGTK_REQUIRED_VERSION)
39
AC_SUBST(APPLET_CFLAGS)
42
DBUSMENUGLIB_REQUIRED_VERSION=0.1.1
44
PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION
45
indicator >= $INDICATOR_REQUIRED_VERSION
46
libpulse-mainloop-glib >= $PULSE_AUDIO_REQUIRED_VERSION)
48
AC_SUBST(SOUNDSERVICE_CFLAGS)
49
AC_SUBST(SOUNDERVICE_LIBS)
51
AC_PATH_PROG(GCONFTOOL, gconftool-2)
52
dnl Specify the gconf configuration source,
53
dnl default to xml::$(sysconfdir)/gconf/gconf.xml.defaults
57
PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.0)
58
AC_SUBST(GCONF_CFLAGS)
61
###########################
62
# Check to see if we're local
63
###########################
65
with_localinstall="no"
66
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
68
###########################
70
###########################
72
if test "x$with_localinstall" = "xyes"; then
73
INDICATORDIR="${libdir}/indicators/2/"
74
INDICATORICONSDIR="${datadir}/indicator-applet/icons/"
76
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
77
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
79
AC_SUBST(INDICATORDIR)
80
AC_SUBST(INDICATORICONSDIR)
82
###########################
84
###########################
86
if test "x$with_localinstall" = "xyes"; then
87
DBUSSERVICEDIR="${datadir}/dbus-1/services/"
89
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
91
AC_SUBST(DBUSSERVICEDIR)
93
##############################
95
##############################
97
AC_DEFUN([AC_DEFINE_PATH], [
98
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
99
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
100
ac_define_path=`eval echo [$]$2`
101
ac_define_path=`eval echo [$]ac_define_path`
105
AC_DEFINE_UNQUOTED($1, "$ac_define_path"),
106
AC_DEFINE_UNQUOTED($1, "$ac_define_path", $3))
109
###########################
110
# Internationalization
111
###########################
113
GETTEXT_PACKAGE=indicator-sound
114
AC_SUBST(GETTEXT_PACKAGE)
115
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default get text domain])
116
AC_DEFINE_PATH(GNOMELOCALEDIR, "${datadir}/locale", [locale directory])
120
###########################
122
###########################
131
###########################
133
###########################
137
SUS Indicator Configuration: