1
by Ken VanDine, Ken VanDine, Martin Pitt
[ Ken VanDine ] |
1 |
AC_INIT(src/indicator-session.c) |
2 |
||
3 |
AC_PREREQ(2.53) |
|
4 |
||
5 |
AM_CONFIG_HEADER(config.h) |
|
6 |
AM_INIT_AUTOMAKE(indicator-session, 0.1.1) |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.1.1 |
7 |
|
1
by Ken VanDine, Ken VanDine, Martin Pitt
[ Ken VanDine ] |
8 |
AM_MAINTAINER_MODE
|
9 |
||
10 |
AC_ISC_POSIX
|
|
11 |
AC_PROG_CC
|
|
12 |
AM_PROG_CC_C_O
|
|
13 |
AC_STDC_HEADERS
|
|
14 |
AC_PROG_LIBTOOL
|
|
15 |
||
16 |
AC_SUBST(VERSION) |
|
17 |
AC_CONFIG_MACRO_DIR([m4]) |
|
18 |
||
19 |
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) |
|
1.1.1
by Ted Gould
Import upstream version 0.1 |
20 |
|
21 |
###########################
|
|
1
by Ken VanDine, Ken VanDine, Martin Pitt
[ Ken VanDine ] |
22 |
# Dependencies |
23 |
###########################
|
|
24 |
||
25 |
GTK_REQUIRED_VERSION=2.12 |
|
26 |
INDICATOR_REQUIRED_VERSION=0.2.0 |
|
27 |
DBUSMENUGTK_REQUIRED_VERSION=0.1.1 |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.1.1 |
28 |
|
1
by Ken VanDine, Ken VanDine, Martin Pitt
[ Ken VanDine ] |
29 |
PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION |
30 |
indicator >= $INDICATOR_REQUIRED_VERSION |
|
31 |
dbusmenu-gtk >= $DBUSMENUGTK_REQUIRED_VERSION) |
|
32 |
AC_SUBST(APPLET_CFLAGS) |
|
33 |
AC_SUBST(APPLET_LIBS) |
|
34 |
||
35 |
DBUSMENUGLIB_REQUIRED_VERSION=0.1.1 |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.1.1 |
36 |
|
1
by Ken VanDine, Ken VanDine, Martin Pitt
[ Ken VanDine ] |
37 |
PKG_CHECK_MODULES(STATUSSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION) |
38 |
||
39 |
AC_SUBST(STATUSERVICE_CFLAGS) |
|
40 |
AC_SUBST(STATUSERVICE_LIBS) |
|
41 |
||
42 |
PKG_CHECK_MODULES(USERSSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION) |
|
43 |
||
44 |
AC_SUBST(USERSERVICE_CFLAGS) |
|
45 |
AC_SUBST(USERSERVICE_LIBS) |
|
46 |
||
47 |
PKG_CHECK_MODULES(SESSIONSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION) |
|
48 |
||
49 |
AC_SUBST(SESSIONERVICE_CFLAGS) |
|
50 |
AC_SUBST(SESSIONERVICE_LIBS) |
|
51 |
||
52 |
PKG_CHECK_MODULES(GTKLOGOUTHELPER, gtk+-2.0 >= $GTK_REQUIRED_VERSION |
|
53 |
polkit-gnome) |
|
54 |
||
55 |
AC_SUBST(GTKLOGOUTHELPER_CFLAGS) |
|
56 |
AC_SUBST(GTKLOGOUTHELPER_LIBS) |
|
57 |
||
58 |
###########################
|
|
59 |
# Check to see if we're local |
|
60 |
###########################
|
|
61 |
||
62 |
with_localinstall="no" |
|
63 |
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) |
|
64 |
||
65 |
###########################
|
|
66 |
# Indicator Info |
|
67 |
###########################
|
|
68 |
||
69 |
if test "x$with_localinstall" = "xyes"; then |
|
70 |
INDICATORDIR="${libdir}/indicators/2/" |
|
71 |
INDICATORICONSDIR="${datadir}/indicator-applet/icons/" |
|
72 |
else
|
|
73 |
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator` |
|
74 |
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator` |
|
75 |
fi
|
|
76 |
AC_SUBST(INDICATORDIR) |
|
77 |
AC_SUBST(INDICATORICONSDIR) |
|
78 |
||
79 |
###########################
|
|
80 |
# DBus Service Info |
|
81 |
###########################
|
|
82 |
||
83 |
if test "x$with_localinstall" = "xyes"; then |
|
84 |
DBUSSERVICEDIR="${datadir}/dbus-1/services/" |
|
85 |
else
|
|
86 |
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1` |
|
87 |
fi
|
|
88 |
AC_SUBST(DBUSSERVICEDIR) |
|
89 |
||
90 |
###########################
|
|
91 |
# Files |
|
92 |
###########################
|
|
93 |
||
94 |
AC_OUTPUT([ |
|
95 |
Makefile
|
|
96 |
src/Makefile
|
|
97 |
src/gtk-dialog/Makefile
|
|
98 |
data/Makefile
|
|
99 |
data/icons/Makefile
|
|
100 |
data/icons/16x16/Makefile
|
|
101 |
data/icons/16x16/status/Makefile
|
|
102 |
data/icons/16x16/actions/Makefile
|
|
103 |
data/icons/22x22/Makefile
|
|
104 |
data/icons/22x22/status/Makefile
|
|
105 |
data/icons/22x22/actions/Makefile
|
|
106 |
data/icons/24x24/Makefile
|
|
107 |
data/icons/24x24/status/Makefile
|
|
108 |
data/icons/24x24/actions/Makefile
|
|
109 |
data/icons/32x32/Makefile
|
|
110 |
data/icons/32x32/status/Makefile
|
|
111 |
data/icons/32x32/actions/Makefile
|
|
112 |
data/icons/48x48/Makefile
|
|
113 |
data/icons/48x48/status/Makefile
|
|
114 |
data/icons/scalable/Makefile
|
|
115 |
data/icons/scalable/status/Makefile
|
|
116 |
data/icons/scalable/actions/Makefile
|
|
117 |
]) |
|
118 |
||
119 |
###########################
|
|
120 |
# Results |
|
121 |
###########################
|
|
122 |
||
123 |
AC_MSG_NOTICE([ |
|
124 |
||
125 |
SUS Indicator Configuration:
|
|
126 |
||
127 |
Prefix: $prefix
|
|
128 |
]) |
|
129 |