-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
164 lines (138 loc) · 3.75 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
AC_PREREQ(2.53)
AC_INIT([meego-panel-devices], [0.2.12], [http://bugzilla.meego.org])
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build])
AM_INIT_AUTOMAKE([1.10 foreign -Wno-portability no-define])
AM_CONFIG_HEADER(config.h)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_CANONICAL_HOST
IT_PROG_INTLTOOL([0.35.0])
AC_SUBST([GETTEXT_PACKAGE], AC_PACKAGE_NAME)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "AC_PACKAGE_NAME", [Gettext domain name])
AM_GLIB_GNU_GETTEXT
localedir='${prefix}/${DATADIRNAME}/locale'
AC_SUBST([localedir])
# For absolute paths in desktop files etc.
AS_AC_EXPAND(LIBEXECDIR, "$libexecdir")
AS_AC_EXPAND(PKGTHEMEDIR, "$datadir/$PACKAGE/theme")
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_TYPE_INT64_T
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG
AS_ALL_LINGUAS
AM_GCONF_SOURCE_2
headers="
errno.h \
execinfo.h \
fcntl.h \
signal.h \
stdarg.h \
stdbool.h \
stdio.h \
sys/ioctl.h \
sys/statvfs.h \
time.h"
AC_CHECK_HEADERS($headers, [],
[
AC_MSG_ERROR([missing required header])
])
#
# Gnome Power Manager
#
gpm_deps='gdk-x11-2.0 glib-2.0 gobject-2.0 xrandr xext'
PKG_CHECK_MODULES(GPM, $gpm_deps)
#
# Gnome Volume Control
#
gvc_deps='libpulse-mainloop-glib >= 0.9.15'
PKG_CHECK_MODULES(GVC, $gvc_deps)
#
# Meego Panel Devices
#
PKG_CHECK_MODULES(MPD,
$gpm_deps
$gvc_deps
clutter-1.0
clutter-gtk-0.12
devkit-power-gobject
gconf-2.0
gio-2.0
gio-unix-2.0
libcanberra-gtk
libnotify
meego-panel >= 0.75.4
mx-1.0 >= 1.1.12)
PKG_CHECK_MODULES(NOTIFY_0_7, libnotify >= 0.7,
have_notify_0_7="yes",
have_notify_0_7="no")
if test $have_notify_0_7 = "yes"; then
AC_DEFINE(HAVE_NOTIFY_0_7, 1, [we have libnotify 0.7 or better])
fi
AC_MSG_CHECKING([whether to install test tools])
AC_ARG_ENABLE([test-tools],
[AC_HELP_STRING([--enable-test-tools],
[Enable extra tools for testing and debugging])])
AC_MSG_RESULT([$enable_test_tools])
AM_CONDITIONAL([INSTALL_TEST_TOOLS], [test "$enable_test_tools" = "yes"])
AC_ARG_ENABLE([cache],
[AC_HELP_STRING([--enable-cache],
[Enable Mx image cache generation])],
[],
[enable_cache=no])
AS_IF([test "x$enable_cache" = "xyes"],
[
AC_CHECK_PROG([MX_CREATE_IMAGE_CACHE],
[mx-create-image-cache],
[$(which mx-create-image-cache)])
])
AM_CONDITIONAL([ENABLE_CACHE], [test "x$enable_cache" = "xyes"])
#
# Egg Console Kit
#
eck_deps='dbus-glib-1'
PKG_CHECK_MODULES(ECK, $eck_deps)
#
# Meego Power Icon
#
PKG_CHECK_MODULES(MPI,
$eck_deps
clutter-1.0
clutter-gtk-0.12
devkit-power-gobject
gconf-2.0
gdk-x11-2.0
libnotify
meego-panel >= 0.75.4
mx-1.0)
#
# Common stuff
#
MEEGO_PANELS_DIR=`$PKG_CONFIG --variable=meego_panel_panels_dir meego-panel`
AC_SUBST(MEEGO_PANELS_DIR)
AC_OUTPUT([
build/Makefile
data/icons/Makefile
data/Makefile
data/meego-panel-devices.desktop.in
data/meego-panel-devices.schemas
data/com.meego.UX.Shell.Panels.devices.service
data/theme/Makefile
egg-console-kit/Makefile
gpm/Makefile
gvc/Makefile
Makefile
po/Makefile.in
power-icon/data/Makefile
power-icon/data/meego-power-icon.desktop.in
power-icon/data/com.meego.UX.Shell.Panels.power.service
power-icon/data/theme/Makefile
power-icon/data/theme/power-icon.css
power-icon/Makefile
power-icon/src/Makefile
power-icon/tests/Makefile
src/Makefile
tests/Makefile
])