-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
385 lines (338 loc) · 13.3 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
AC_PREREQ(2.53)
AC_INIT(awn-extras, 0.4.0, [https://bugs.launchpad.net/awn-extras])
AM_INIT_AUTOMAKE([-Wno-portability 1.8 tar-ustar])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(applets)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_PROG_LIBTOOL
DOLT
dnl ==============================================
dnl translation support
dnl ==============================================
GETTEXT_PACKAGE=awn-extras
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
ALL_LINGUAS="af ar ast bg ca cs csb da de en_CA en_GB en_US@piglatin es eu fi fr he hu id it ja ko lt ms nb nl nn pl pt pt_BR ru sk sv sv_SE th tr uk vi zh_CN zh_TW"
IT_PROG_INTLTOOL([0.34])
AM_GLIB_GNU_GETTEXT
INTLTOOL_SCHEMA_INI_RULE='%.schema-ini: %.schema-ini.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
AC_SUBST(INTLTOOL_SCHEMA_INI_RULE)
dnl
dnl Python script installation
dnl
AM_PATH_PYTHON(2.5)
dnl
dnl library support
dnl
AC_CHECK_LIB(m, round)
dnl
dnl package support
dnl
AC_ARG_WITH([gconf], AS_HELP_STRING([--without-gconf],[Disable building/installing applets that need GConf]),,[with_gconf=yes])
AC_ARG_WITH([gnome], AS_HELP_STRING([--without-gnome],[Disable building/installing applets that require Gnome-specific libraries]),,[with_gnome=yes])
AC_ARG_WITH([mozilla], AS_HELP_STRING([--with-mozilla],[Enable building/installing applets that require Gecko (Mozilla)]),,[with_mozilla=no])
AC_ARG_WITH([webkit], AS_HELP_STRING([--with-webkit],[Enable building/installing applets that require webkitgtk]),,[with_webkit=no])
AM_CONDITIONAL(WITH_GCONF, test "$with_gconf" != "no")
AM_CONDITIONAL(WITH_GNOME, test "$with_gnome" != "no")
AM_CONDITIONAL(WITH_MOZILLA, test "$with_mozilla" != "no")
AM_CONDITIONAL(WITH_WEBKIT, test "$with_webkit" != "no")
AM_CONDITIONAL(BUILD_WEBAPPLET, test "$with_mozilla" != "no" -o "$with_webkit" != "no")
# all
PKG_CHECK_MODULES(AWN, [awn >= 0.3.9])
# awn-system-monitor, sysmon
PKG_CHECK_MODULES(GTOP, [libgtop-2.0])
# awn-notification-daemon, shiny-switcher, standalone-launcher, taskmand
PKG_CHECK_MODULES(LIBWNCK, [libwnck-1.0 >= 2.21.99.9])
# awn-notification-daemon, shiny-switcher
PKG_CHECK_MODULES(LIBX11, [x11])
PKG_CHECK_MODULES(COMPOSITE, [xcomposite])
PKG_CHECK_MODULES(XRENDER, [xrender])
# awn-notification-daemon, cairo-menu
PKG_CHECK_MODULES(LIBNOTIFY, [libnotify])
libsexy_required=no
url_label_module="gtk+-2.0 >= 2.17.1"
icon_entry_module="gtk+-2.0 >= 2.15.0"
# awn-notification-daemon (UrlLabel)
PKG_CHECK_EXISTS([$url_label_module],
[AC_DEFINE([HAVE_GTK_URL_LABEL], 1,
[Defined if GTK+ has support for hyperlinks in GtkLabels])],
[libsexy_required=yes;url_label_module="libsexy"])
# cairo-menu (IconEntry)
PKG_CHECK_EXISTS([$icon_entry_module],
[AC_DEFINE([HAVE_GTK_ICON_ENTRY], 1,
[Defined if GTK+ has support for icons in GtkEntrys])],
[libsexy_required=yes;icon_entry_module="libsexy"])
if test "$libsexy_required" != "no"; then
PKG_CHECK_MODULES(LIBSEXY, [libsexy])
fi
# awn-terminal
PKG_CHECK_MODULES(VTE, [vte])
# awn-system-monitor, awn-notification-daemon, filebrowser, plugger, trasher
if test "$with_gconf" != "no"; then
PKG_CHECK_MODULES(GCONF, [gconf-2.0])
gconf=gconf-2.0
fi
#if test "$with_gconf" != "no" -a "$with_gnome" != "no"; then
# filebrowser
#PKG_CHECK_MODULES(GNOMEUI, [libgnomeui-2.0])
# filebrowser
#PKG_CHECK_MODULES(GNOME_DESKTOP, [gnome-desktop-2.0])
# filebrowser, plugger, trasher
#PKG_CHECK_MODULES(GNOME_VFS, [gnome-vfs-2.0])
#fi
if test "$with_gnome" != "no"; then
# main-menu, cairo-menu
PKG_CHECK_MODULES(GNOME_MENU, [libgnome-menu])
fi
# webapplet
webapplet_modules=""
mozilla_module=no
if test "$with_mozilla" != "no"; then
found_mozilla=no
for p in mozilla firefox xulrunner seamonkey; do
mozilla_module="${p}-gtkmozembed"
PKG_CHECK_EXISTS([$mozilla_module],[found_mozilla=yes])
if test "$found_mozilla" = "yes"; then
break
fi
done
if test "$found_mozilla" = "yes"; then
AC_DEFINE([HAVE_MOZILLA],[1],[Define if Mozilla/Gecko/XULRunner is available.])
webapplet_modules="$webapplet_modules $mozilla_module"
else
AC_MSG_ERROR([Could not find gtkmozembed (needed for Mozilla/Gecko/XULRunner support)])
fi
fi
webkit_module=no
if test "$with_webkit" != "no"; then
PKG_CHECK_EXISTS([webkit-1.0],[webkit_module="webkit-1.0"],
[PKG_CHECK_EXISTS([WebKitGtk],[
webkit_module="WebKitGtk"
AC_DEFINE([HAVE_OLD_WEBKITGTK],[1],[Define if the installed WebKit uses the old pkgconfig file and header structure.])
],[AC_MSG_ERROR([Could not find packages webkit-1.0 or WebKitGtk. Either one is required for webkit support to be enabled.])])])
AC_DEFINE([HAVE_WEBKIT],[1],[Define if WebKit is available.])
webapplet_modules="$webapplet_modules $webkit_module"
fi
#awn-notification-daemon
AC_ARG_ENABLE(sound,
AS_HELP_STRING([--enable-sound=auto|gstreamer|no],[Sound support for awn-notification-daemon (default=auto)])
)
if test x$enable_sound != xno -a x$enable_sound != xgstreamer; then
enable_sound=auto
fi
if test x$enable_sound != xno; then
gstreampkg="gstreamer-0.10"
if test x$enable_sound = xauto; then
PKG_CHECK_MODULES(GSTREAMER, $gstreampkg,
[enable_sound=gstreamer], [enable_sound=no])
else
PKG_CHECK_MODULES(GSTREAMER, $gstreampkg, [enable_sound=gstreamer])
fi
if test x$enable_sound = xgstreamer; then
AC_DEFINE([HAVE_GSTREAMER], 1, [Defined if Gstreamer is detected])
else
gstreampkg=
fi
fi
# applet-specific libraries
#if test "$with_gconf" != "no" -a "$with_gnome" != "no"; then
#PKG_CHECK_MODULES(FILEBROWSER, [$gconf gnome-desktop-2.0 gnome-vfs-2.0 libgnomeui-2.0])
#PKG_CHECK_MODULES(PLUGGER, [$gconf gnome-vfs-2.0])
#PKG_CHECK_MODULES(TRASHER, [$gconf gnome-vfs-2.0])
#fi
if test "$with_gconf" != "no"; then
PKG_CHECK_MODULES(AWN_SYSTEM_MONITOR, [$gconf libgtop-2.0])
PKG_CHECK_MODULES(NOTIFICATION_DAEMON, [$gconf $gstreampkg libnotify $url_label_module libwnck-1.0 x11])
fi
if test "$with_gnome" != "no"; then
PKG_CHECK_MODULES(CAIRO_MENU_GNOME, [libgnome-menu libnotify $icon_entry_module])
fi
PKG_CHECK_MODULES(SHINY_SWITCHER, [libwnck-1.0 x11 xcomposite xrender])
if test -n "$webapplet_modules"; then
PKG_CHECK_MODULES(WEBAPPLET, [$webapplet_modules])
fi
dnl
dnl Check python modules
dnl
AC_ARG_ENABLE(pymod_checks,
AC_HELP_STRING([--disable-pymod-checks], [Disable checks for Python modules]),
enable_pymod_checks=$enableval,
enable_pymod_checks=yes)
if test x${enable_pymod_checks} = xyes; then
# awnlib, battery, DesktopManager
AM_CHECK_PYMOD(pynotify,,,AC_MSG_ERROR([python module pynotify required (python-notify)]))
# arss, feeds, mail
AM_CHECK_PYMOD(feedparser,,,AC_MSG_ERROR([python module feedparser required (python-feedparser)]))
# cairo-clock
AM_CHECK_PYMOD(rsvg,,,AC_MSG_ERROR([python module rsvg required (gnome-python-desktop)]))
# media-player, volume-control
AM_CHECK_PYMOD(gst,,,AC_MSG_ERROR([python module gstreamer required (python-gst0.10)]))
if test "$with_gnome" != "no"; then
# MiMenu, YAMA
AM_CHECK_PYMOD(gmenu,,,AC_MSG_ERROR([python module gmenu required]))
fi
if test "$with_gconf" != "no"; then
# cairo-clock (optional), calendar
AM_CHECK_PYMOD(dateutil,,,AC_MSG_ERROR([python module dateutil required (python-dateutil)]))
# calendar, stacks
AM_CHECK_PYMOD(gconf,,,AC_MSG_ERROR([python module gconf required]))
# calendar
AM_CHECK_PYMOD(gdata,,,AC_MSG_ERROR([python module gdata required (python-gdata)]))
# calendar
AM_CHECK_PYMOD(vobject,,,AC_MSG_ERROR([python module vobject required (python-vobject)]))
fi
fi
dnl
dnl Determine the location of lda-schema-to-gconf
dnl
LDA_BINDIR=`$PKG_CONFIG --variable=exec_prefix desktop-agnostic`/bin
AC_SUBST(LDA_BINDIR)
dnl
dnl Check for Vala support.
dnl
has_vala=no
LDA_VAPIDIR=`$PKG_CONFIG --variable=vapidir desktop-agnostic`
AWN_VAPIDIR=`$PKG_CONFIG --variable=vapidir awn`
if test -n "$LDA_VAPIDIR" -a -n "$AWN_VAPIDIR" -a -f "$AWN_VAPIDIR/awn.vapi"; then
VALA_PROG_VALAC(0.7.7)
AC_SUBST(LDA_VAPIDIR)
AC_SUBST(AWN_VAPIDIR)
if test -n "$VALAC"; then
has_vala=yes
fi
fi
AM_CONDITIONAL(HAVE_VALA, test "$has_vala" = "yes")
dnl
dnl Check the D-BUS version.
dnl
AC_MSG_CHECKING([dbus version])
DBUS_VERSION=`$PKG_CONFIG --modversion dbus-1`
DBUS_MAJOR_VER=`echo $DBUS_VERSION | cut -d. -f 1`
DBUS_MINOR_VER=`echo $DBUS_VERSION | cut -d. -f 2`
DBUS_MICRO_VER=`echo $DBUS_VERSION | cut -d. -f 3`
AC_MSG_RESULT($DBUS_VERSION)
AC_DEFINE_UNQUOTED(DBUS_MAJOR_VER, $DBUS_MAJOR_VER, [D-BUS major version.])
AC_DEFINE_UNQUOTED(DBUS_MINOR_VER, $DBUS_MINOR_VER, [D-BUS minor version.])
AC_DEFINE_UNQUOTED(DBUS_MICRO_VER, $DBUS_MICRO_VER, [D-BUS micro version.])
AC_DEFINE_UNQUOTED(DBUS_API_SUBJECT_TO_CHANGE, ,DBUS API is subject to change)
appletsdir="$datarootdir/avant-window-navigator/applets"
AS_AC_EXPAND(APPLETSDIR, $appletsdir)
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
AS_AC_EXPAND(LIBDIR, $libdir)
AS_AC_EXPAND(datadir_intermediate, $datadir)
AS_AC_EXPAND(DATADIR, $datadir_intermediate)
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
AS_AC_EXPAND(localedir_intermediate, $localedir)
AS_AC_EXPAND(LOCALEDIR, $localedir_intermediate)
AC_DEFINE_UNQUOTED(APPLETSDIR, "$APPLETSDIR",
[The base directory for applet data and Python applets.])
AC_SUBST(APPLETSDIR)
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Locale directory])
AC_SUBST(LOCALEDIR)
DBUS_SERVICES_DIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
AC_SUBST(DBUS_SERVICES_DIR)
if test "x$GCC" = "xyes"; then
GCC_FLAGS="-g -Wall"
fi
AC_SUBST(GCC_FLAGS)
dnl ==============================================
dnl GConf
dnl ==============================================
AM_GCONF_SOURCE_2
if test "$enable_schemas_install" != "no"; then
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test x"$GCONFTOOL" = xno; then
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
fi
fi
dnl ==========================
dnl Shave (quiet build output)
dnl ==========================
SHAVE_INIT([shave], [enable])
dnl Please keep in alphabetical order (directory, not applet)
AC_OUTPUT([
Makefile
applets/Makefile
applets/maintained/animal-farm/Makefile
applets/maintained/awnterm/Makefile
applets/maintained/awnterm/awnterm.desktop.in
applets/maintained/bandwidth-monitor/Makefile
applets/maintained/battery/Makefile
applets/maintained/cairo-clock/Makefile
applets/maintained/cairo-menu/Makefile
applets/maintained/cairo-menu/cairo-menu.desktop.in
applets/maintained/calendar/Makefile
applets/maintained/comics/Makefile
applets/maintained/cpufreq/Makefile
applets/maintained/dialect/Makefile
applets/maintained/digital-clock/Makefile
applets/maintained/digital-clock/digital-clock.desktop.in
applets/maintained/feeds/Makefile
applets/maintained/file-browser-launcher/Makefile
applets/maintained/garbage/Makefile
applets/maintained/garbage/garbage.desktop.in
applets/maintained/hardware-sensors/Makefile
applets/maintained/mail/Makefile
applets/maintained/media-control/Makefile
applets/maintained/media-icons/Makefile
applets/maintained/media-player/Makefile
applets/maintained/mount/Makefile
applets/maintained/notification-area/Makefile
applets/maintained/notification-area/notification-area.desktop.in
applets/maintained/notification-daemon/Makefile
applets/maintained/notification-daemon/notification-daemon.desktop.in
applets/maintained/places/Makefile
applets/maintained/places/places.desktop.in
applets/maintained/python-test/Makefile
applets/maintained/quit/Makefile
applets/maintained/shiny-switcher/Makefile
applets/maintained/shiny-switcher/shinyswitcher.desktop.in
applets/maintained/showdesktop/Makefile
applets/maintained/showdesktop/showdesktop.desktop.in
applets/maintained/slickswitcher/Makefile
applets/maintained/sysmon/Makefile
applets/maintained/sysmon/sysmon.desktop.in
applets/maintained/thinkhdaps/Makefile
applets/maintained/to-do/Makefile
applets/maintained/tomboy-applet/Makefile
applets/maintained/vala-test/Makefile
applets/maintained/vala-test/vala-test.desktop.in
applets/maintained/volume-control/Makefile
applets/maintained/weather/Makefile
applets/maintained/webapplet/Makefile
applets/maintained/webapplet/webapplet.desktop.in
applets/maintained/wobblyzini/Makefile
applets/maintained/wobblyzini/wobblyzini.desktop.in
applets/maintained/yama/Makefile
applets/unmaintained/awnsystemmonitor/Makefile
applets/unmaintained/awnsystemmonitor/awnsystemmonitor.desktop.in
applets/unmaintained/dropper/Makefile
applets/unmaintained/main-menu/Makefile
applets/unmaintained/main-menu/main-menu.desktop.in
applets/unmaintained/MiMenu/Makefile
applets/unmaintained/pandora/Makefile
applets/unmaintained/stacks/Makefile
po/Makefile.in
shared/python/__init__.py
shared/python/Makefile
shared/vala/Makefile
shave/shave
shave/shave-libtool
])
dnl ========================================================================
echo ""
echo " Avant Window Navigator Extras $VERSION"
echo " ==================================="
echo ""
echo " prefix: ${prefix}"
echo ""
echo " Vala Support: $has_vala"
echo ""
echo " WebKit Support: $webkit_module"
echo ""
echo " XULRunner Support: $mozilla_module"
echo ""