1 | AC_INIT(control-center) |
---|
2 | |
---|
3 | AM_CONFIG_HEADER(config.h) |
---|
4 | AM_INIT_AUTOMAKE(control-center, 2.8.2) |
---|
5 | |
---|
6 | AM_MAINTAINER_MODE |
---|
7 | |
---|
8 | AC_PROG_INTLTOOL |
---|
9 | GNOME_COMPILE_WARNINGS |
---|
10 | |
---|
11 | AC_ISC_POSIX |
---|
12 | AC_PROG_CC |
---|
13 | AC_STDC_HEADERS |
---|
14 | AM_PROG_LIBTOOL |
---|
15 | |
---|
16 | |
---|
17 | m4_define(fontilus_version, 0.4) |
---|
18 | m4_define(gnomevfs_minver, 2.0.0) |
---|
19 | m4_define(fontconfig_minver, 1.0.0) |
---|
20 | m4_define(xft_minver, 2.0.0) |
---|
21 | m4_define(gtk_minver, 2.0.0) |
---|
22 | m4_define(libbonobo_minver, 2.0.0) |
---|
23 | m4_define(libgnomeui_minver, 2.1.90) |
---|
24 | |
---|
25 | changequote(,)dnl |
---|
26 | if test "x$GCC" = "xyes"; then |
---|
27 | case " $CFLAGS " in |
---|
28 | *[\ \ ]-Wall[\ \ ]*) ;; |
---|
29 | *) CFLAGS="$CFLAGS -Wall" ;; |
---|
30 | esac |
---|
31 | fi |
---|
32 | changequote([,])dnl |
---|
33 | |
---|
34 | # Internationalization support |
---|
35 | ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja ko lt lv mk ml mn ms nb nl nn no nso pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi wa zh_CN zh_TW zu" |
---|
36 | |
---|
37 | GETTEXT_PACKAGE=control-center-2.0 |
---|
38 | AC_SUBST(GETTEXT_PACKAGE) |
---|
39 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) |
---|
40 | |
---|
41 | AM_GLIB_GNU_GETTEXT |
---|
42 | |
---|
43 | AC_CHECK_FUNCS(usleep) |
---|
44 | AC_CHECK_FUNCS(putenv) |
---|
45 | AC_CHECK_FUNCS(setenv) |
---|
46 | |
---|
47 | AC_PATH_XTRA |
---|
48 | x_libs="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" |
---|
49 | |
---|
50 | AC_CHECK_FUNC(XScreenSaverQueryInfo, [ |
---|
51 | TYPING_BREAK="typing-break"],[ |
---|
52 | AC_MSG_CHECKING([for XScreenSaverQueryInfo in -lXss]) |
---|
53 | save_LDFLAGS=$LDFLAGS |
---|
54 | save_LIBS=$LIBS |
---|
55 | LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lXss -lXext -lX11" |
---|
56 | AC_TRY_LINK([#include <X11/Xlib.h> |
---|
57 | #include <X11/extensions/scrnsaver.h>],[ |
---|
58 | XScreenSaverQueryInfo(NULL, 0, NULL);],[ |
---|
59 | AC_MSG_RESULT(yes) |
---|
60 | TYPING_BREAK="typing-break" |
---|
61 | SCREENSAVER_LIBS="$X_PRE_LIBS $X_LIBS -lXss -lXext -lX11"],[ |
---|
62 | AC_MSG_RESULT(no)]) |
---|
63 | LIBS=$save_LIBS |
---|
64 | LDFLAGS=$save_LDFLAGS]) |
---|
65 | AC_SUBST(TYPING_BREAK) |
---|
66 | AC_SUBST(SCREENSAVER_LIBS) |
---|
67 | |
---|
68 | dnl keyboard-properties-capplet |
---|
69 | savecppflags=$CPPFLAGS |
---|
70 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
---|
71 | AC_CHECK_HEADERS([X11/Xlib.h]) |
---|
72 | AC_CHECK_HEADERS([X11/extensions/xf86misc.h], [XF86MISC_LIBS="-lXxf86misc"],[], |
---|
73 | [#if HAVE_X11_XLIB_H |
---|
74 | #include <X11/Xlib.h> |
---|
75 | #endif |
---|
76 | ]) |
---|
77 | AC_SUBST(XF86MISC_LIBS) |
---|
78 | AC_CHECK_HEADERS(X11/extensions/XKB.h) |
---|
79 | CPPFLAGS=$savecppflags |
---|
80 | |
---|
81 | |
---|
82 | dnl ============================================== |
---|
83 | dnl Check that we meet the dependencies |
---|
84 | dnl ============================================== |
---|
85 | |
---|
86 | COMMON_MODULES="gtk+-2.0 >= 2.3.0 gconf-2.0 libgnomeui-2.0 >= 2.2.0 libglade-2.0 >= 1.99.12 libbonobo-2.0 libbonoboui-2.0 libglade-2.0 gconf-2.0 gnome-desktop-2.0 >= 2.2.0" |
---|
87 | PKG_CHECK_MODULES(CAPPLET, $COMMON_MODULES) |
---|
88 | PKG_CHECK_MODULES(GNOMECC, $COMMON_MODULES libxml-2.0 gnome-desktop-2.0 gnome-vfs-2.0) |
---|
89 | PKG_CHECK_MODULES(GNOME_SETTINGS_DAEMON, gtk+-2.0 gconf-2.0 libgnomeui-2.0 esound gnome-desktop-2.0 libglade-2.0) |
---|
90 | PKG_CHECK_MODULES(OLD_CAPPLET, libgnomeui-2.0 libglade-2.0) |
---|
91 | PKG_CHECK_MODULES(GNOME, libgnomeui-2.0) |
---|
92 | PKG_CHECK_MODULES(GTK, gtk+-2.0) |
---|
93 | PKG_CHECK_MODULES(VFS_CAPPLET, $COMMON_MODULES gnome-vfs-module-2.0 gnome-vfs-2.0) |
---|
94 | PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-desktop-2.0) |
---|
95 | PKG_CHECK_MODULES(SOUND_CAPPLET, esound) |
---|
96 | PKG_CHECK_MODULES(METACITY, libmetacity-private) |
---|
97 | PKG_CHECK_MODULES(LIBXKLAVIER, libxklavier >= 1.02,, |
---|
98 | AC_MSG_ERROR([Upcoming releases of gnome-control-center will depend on libxklavier. |
---|
99 | The latest release is available from http://prdownloads.sourceforge.net/gswitchit], 1)) |
---|
100 | |
---|
101 | dnl |
---|
102 | dnl Check for Xft version 2; we build in extra functionality to the font capplet |
---|
103 | dnl when we have it. |
---|
104 | dnl |
---|
105 | xft_modules= |
---|
106 | if $PKG_CONFIG --exists xft ; then |
---|
107 | xft_modules="xft" |
---|
108 | AC_DEFINE(HAVE_XFT2,,[Build Xft functionality to the font capplet]) |
---|
109 | fi |
---|
110 | |
---|
111 | PKG_CHECK_MODULES(FONT_CAPPLET, $COMMON_MODULES $xft_modules) |
---|
112 | |
---|
113 | PKG_CHECK_MODULES(AT_CAPPLET, $COMMON_MODULES) |
---|
114 | |
---|
115 | dnl |
---|
116 | dnl Check for XRandR, needed for display capplet |
---|
117 | dnl |
---|
118 | |
---|
119 | have_randr=no |
---|
120 | AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration, |
---|
121 | [AC_CHECK_HEADER(X11/extensions/Xrandr.h, |
---|
122 | have_randr=yes |
---|
123 | RANDR_LIBS="-lXrandr -lXrender" |
---|
124 | AC_DEFINE(HAVE_RANDR, 1, Have the Xrandr extension library), |
---|
125 | :, [#include <X11/Xlib.h>])], : , |
---|
126 | -lXrandr -lXrender $x_libs) |
---|
127 | AM_CONDITIONAL(HAVE_RANDR, [test $have_randr = yes]) |
---|
128 | |
---|
129 | PKG_CHECK_MODULES(DISPLAY_CAPPLET, $COMMON_MODULES) |
---|
130 | |
---|
131 | DISPLAY_CAPPLET_LIBS="$DISPLAY_CAPPLET_LIBS $RANDR_LIBS" |
---|
132 | |
---|
133 | CAPPLET_LIBS="$CAPPLET_LIBS $x_libs" |
---|
134 | GNOMECC_LIBS="$GNOMECC_LIBS $x_libs" |
---|
135 | GNOME_SETTINGS_DAEMON_LIBS="$GNOME_SETTINGS_DAEMON_LIBS $x_libs" |
---|
136 | |
---|
137 | AC_PATH_PROG(GCONFTOOL, gconftool-2) |
---|
138 | |
---|
139 | dnl |
---|
140 | dnl Check for XCursor support. If it exists, then we compile the |
---|
141 | dnl mouse capplet with support for it turned on |
---|
142 | dnl |
---|
143 | have_xcursor=no |
---|
144 | AC_CHECK_HEADER(X11/Xcursor/Xcursor.h, have_xcursor=yes |
---|
145 | AC_DEFINE(HAVE_XCURSOR, 1, Have the Xcursor extension), |
---|
146 | :, [#include <X11/Xlib.h>]) |
---|
147 | AM_CONDITIONAL(HAVE_XCURSOR, [test $have_xcursor=yes]) |
---|
148 | |
---|
149 | dnl |
---|
150 | dnl Check for gtk+ with multihead support |
---|
151 | dnl |
---|
152 | AC_MSG_CHECKING([for gtk+ multihead support]) |
---|
153 | if $PKG_CONFIG --atleast-version 2.1.0 gtk+-2.0; then |
---|
154 | AC_DEFINE(HAVE_GTK_MULTIHEAD,,[gtk+ with multihead support found]) |
---|
155 | AC_MSG_RESULT(yes) |
---|
156 | else |
---|
157 | AC_MSG_RESULT(no) |
---|
158 | fi |
---|
159 | |
---|
160 | dnl ============== |
---|
161 | dnl gswitchit |
---|
162 | dnl ============== |
---|
163 | dnl Make sure the new cvs virtual include has been checked out |
---|
164 | AC_MSG_CHECKING([for inclusion of libgswitchit]) |
---|
165 | if test ! -d "$srcdir/libgswitchit"; then |
---|
166 | AC_MSG_RESULT(no) |
---|
167 | AC_MSG_ERROR([Your checkout of gnome-control-center is out of date. |
---|
168 | The 'libgswitchit' module has been virtually included into |
---|
169 | gnome-control-center by CVS as a subdirectory. Please check |
---|
170 | out again (this can be done on top of your existing checkout]) |
---|
171 | else |
---|
172 | AC_MSG_RESULT(yes) |
---|
173 | fi |
---|
174 | AM_CONDITIONAL(INCLUDE_GSWITCHIT_DEVEL, false) dnl pull devel from applet |
---|
175 | |
---|
176 | dnl ============================================== |
---|
177 | dnl themus and fontilust dependencies |
---|
178 | dnl ============================================== |
---|
179 | |
---|
180 | AC_ARG_ENABLE(vfs-methods, [ --disable-vfs-methods Do not build the fonts:/// and themes:/// uri schemes],, enable_vfs_methods=yes) |
---|
181 | |
---|
182 | if test x$enable_vfs_methods = xyes; then |
---|
183 | |
---|
184 | PKG_CHECK_MODULES(THEME_METHOD, gnome-vfs-module-2.0 >= 2.2.0 gnome-vfs-2.0 >= 2.2.0) |
---|
185 | PKG_CHECK_MODULES(THEMUS_THUMBNAILER, gdk-2.0 >= 2.2.0 libgnomeui-2.0 >= 2.2.0 libmetacity-private gnome-vfs-2.0 >= 2.2.0) |
---|
186 | PKG_CHECK_MODULES(THEMUS_COMPONENT, glib-2.0 >= 2.2.0 gtk+-2.0 >= 2.2.0 atk >= 1.2.0 libgnome-2.0 >= 2.2.0 libgnomeui-2.0 >= 2.2.0 gnome-vfs-2.0 >= 2.2.0 libbonobo-2.0 >= 2.2.0 libbonoboui-2.0 >= 2.2.0 libnautilus >= 2.2.0 libglade-2.0) |
---|
187 | PKG_CHECK_MODULES(FONT_METHOD, [gnome-vfs-module-2.0 >= gnomevfs_minver fontconfig >= fontconfig_minver]) |
---|
188 | PKG_CHECK_MODULES(FONT_THUMBNAILER, [gnome-vfs-2.0 >= gnomevfs_minver gdk-pixbuf-2.0 >= gtk_minver]) |
---|
189 | PKG_CHECK_MODULES(FONT_CONTEXT_MENU, [gnome-vfs-2.0 >= gnomevfs_minver libbonobo-2.0 >= libbonobo_minver]) |
---|
190 | PKG_CHECK_MODULES(FONT_VIEW, [gnome-vfs-2.0 >= gnomevfs_minver xft >= xft_minver gtk+-2.0 >= gtk_minver libgnomeui-2.0 >= libgnomeui_minver]) |
---|
191 | |
---|
192 | # Add freetype flags to the thumbnailer script |
---|
193 | AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) |
---|
194 | if test "x$FREETYPE_CONFIG" = xno; then |
---|
195 | AC_MSG_ERROR([Could not find freetype-config script]) |
---|
196 | fi |
---|
197 | FONT_THUMBNAILER_CFLAGS="$FONT_THUMBNAILER_CFLAGS `$FREETYPE_CONFIG --cflags`" |
---|
198 | FONT_THUMBNAILER_LIBS="$FONT_THUMBNAILER_LIBS `$FREETYPE_CONFIG --libs`" |
---|
199 | |
---|
200 | THEMUS=themus |
---|
201 | FONTILUS=fontilus |
---|
202 | |
---|
203 | AC_SUBST(THEME_METHOD_CFLAGS) |
---|
204 | AC_SUBST(THEME_METHOD_LIBS) |
---|
205 | AC_SUBST(THEMUS_THUMBNAILER_CFLAGS) |
---|
206 | AC_SUBST(THEMUS_THUMBNAILER_LIBS) |
---|
207 | AC_SUBST(THEMUS_COMPONENT_CFLAGS) |
---|
208 | AC_SUBST(THEMUS_COMPONENT_LIBS) |
---|
209 | AC_SUBST(THEMUS) |
---|
210 | AC_SUBST(FONT_THUMBNAILER_CFLAGS) |
---|
211 | AC_SUBST(FONT_THUMBNAILER_LIBS) |
---|
212 | AC_SUBST(FONT_VIEW_CFLAGS) |
---|
213 | AC_SUBST(FONT_VIEW_LIBS) |
---|
214 | AC_SUBST(FONT_METHOD_CFLAGS) |
---|
215 | AC_SUBST(FONT_METHOD_LIBS) |
---|
216 | AC_SUBST(FONT_METHOD_CFLAGS) |
---|
217 | AC_SUBST(FONT_METHOD_LIBS) |
---|
218 | AC_SUBST(FONT_CONTEXT_MENU_CFLAGS) |
---|
219 | AC_SUBST(FONT_CONTEXT_MENU_LIBS) |
---|
220 | AC_SUBST(FONTILUS) |
---|
221 | |
---|
222 | # update LIBS for $export_dynamic |
---|
223 | if test -n "$export_dynamic"; then |
---|
224 | FONT_VIEW_LIBS=`echo $FONT_VIEW_LIBS | sed -e "s/$export_dynamic//"` |
---|
225 | fi |
---|
226 | |
---|
227 | if test -n "$export_dynamic"; then |
---|
228 | FONT_CONTEXT_MENU_LIBS=`echo $CONTEXT_MENU_LIBS | sed -e "s/$export_dynamic//"` |
---|
229 | fi |
---|
230 | |
---|
231 | if test -n "$export_dynamic"; then |
---|
232 | FONT_THUMBNAILER_LIBS=`echo FONT_$THUMBNAILER_LIBS | sed -e "s/$export_dynamic//"` |
---|
233 | fi |
---|
234 | |
---|
235 | if test -n "$export_dynamic"; then |
---|
236 | FONT_METHOD_LIBS=`echo $FONT_METHOD_LIBS | sed -e "s/$export_dynamic//"` |
---|
237 | fi |
---|
238 | GLIB_DEFINE_LOCALEDIR(FONTILUS_LOCALEDIR) |
---|
239 | fi |
---|
240 | |
---|
241 | dnl ============================================== |
---|
242 | dnl End: Check that we meet the dependencies |
---|
243 | dnl ============================================== |
---|
244 | |
---|
245 | dnl ============================================== |
---|
246 | dnl IDL settings |
---|
247 | dnl ============================================== |
---|
248 | |
---|
249 | # orbit-idl |
---|
250 | ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" |
---|
251 | AC_SUBST(ORBIT_IDL) |
---|
252 | |
---|
253 | # idl directories |
---|
254 | LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`" |
---|
255 | AC_SUBST(LIBBONOBO_IDL_DIR) |
---|
256 | BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" |
---|
257 | AC_SUBST(BONOBO_ACTIVATION_IDL_DIR) |
---|
258 | |
---|
259 | # check for nautilus |
---|
260 | PKG_CHECK_MODULES(NAUTILUS, libnautilus) |
---|
261 | AC_SUBST(NAUTILUS_LIBS) |
---|
262 | AC_SUBST(NAUTILUS_CFLAGS) |
---|
263 | |
---|
264 | # esd |
---|
265 | ESDSERVERDIR=`$PKG_CONFIG --variable=esd_serverdir esound` |
---|
266 | if test x"$ESDSERVERDIR" = x; then |
---|
267 | ESD_SERVER="esd" |
---|
268 | else |
---|
269 | ESD_SERVER="$ESDSERVERDIR/esd" |
---|
270 | fi |
---|
271 | AC_SUBST(ESD_SERVER) |
---|
272 | |
---|
273 | AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no) |
---|
274 | |
---|
275 | if test x"$GDK_PIXBUF_CSOURCE" = xno; then |
---|
276 | AC_PATH_PROG(GDK_PIXBUF_CSOURCE_32, gdk-pixbuf-csource-32, no) |
---|
277 | if test x"$GDK_PIXBUF_CSOURCE_32" = xno; then |
---|
278 | AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK]) |
---|
279 | else |
---|
280 | GDK_PIXBUF_CSOURCE=$GDK_PIXBUF_CSOURCE_32 |
---|
281 | fi |
---|
282 | fi |
---|
283 | |
---|
284 | AC_SUBST(GDK_PIXBUF_CSOURCE) |
---|
285 | |
---|
286 | AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no) |
---|
287 | |
---|
288 | if test x"$GLIB_GENMARSHAL" = xno; then |
---|
289 | AC_MSG_ERROR([glib-genmarshal executable not found in your path - should be installed with glib]) |
---|
290 | fi |
---|
291 | |
---|
292 | AC_SUBST(GLIB_GENMARSHAL) |
---|
293 | |
---|
294 | dnl ============================================== |
---|
295 | dnl Special GConf section |
---|
296 | dnl ============================================== |
---|
297 | |
---|
298 | AC_PATH_PROG(GCONFTOOL, gconftool-2, no) |
---|
299 | |
---|
300 | if test x"$GCONFTOOL" = xno; then |
---|
301 | AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) |
---|
302 | fi |
---|
303 | |
---|
304 | AM_GCONF_SOURCE_2 |
---|
305 | |
---|
306 | dnl ============================================== |
---|
307 | dnl OSS section |
---|
308 | dnl ============================================== |
---|
309 | have_oss=no |
---|
310 | AC_TRY_COMPILE([ |
---|
311 | #ifdef __NetBSD__ |
---|
312 | #include <sys/param.h> |
---|
313 | #include <sys/sysctl.h> |
---|
314 | #include <soundcard.h> |
---|
315 | #else |
---|
316 | #include <sys/soundcard.h> |
---|
317 | #endif |
---|
318 | ],[ |
---|
319 | int arg = SNDCTL_DSP_SETFRAGMENT; |
---|
320 | ],[ |
---|
321 | have_oss=yes |
---|
322 | ]) |
---|
323 | AC_MSG_CHECKING(for OSS audio support) |
---|
324 | AC_MSG_RESULT($have_oss) |
---|
325 | AM_CONDITIONAL(HAVE_OSS, test x"$have_oss" = "xyes") |
---|
326 | |
---|
327 | dnl ============================================== |
---|
328 | dnl ALSA section |
---|
329 | dnl ============================================== |
---|
330 | have_alsa=no |
---|
331 | AC_ARG_ENABLE(alsa, |
---|
332 | AC_HELP_STRING([--disable-alsa],[Turn off support for ALSA version 0.9 or higher]), |
---|
333 | [case "${enableval}" in |
---|
334 | yes) WANT_ALSA=yes ;; |
---|
335 | no) WANT_ALSA=no ;; |
---|
336 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-alsa) ;; |
---|
337 | esac], |
---|
338 | [WANT_ALSA=yes]) dnl Default value |
---|
339 | |
---|
340 | if test x$WANT_ALSA = xyes ; then |
---|
341 | PKG_CHECK_MODULES(ALSA, alsa >= 0.9.0, |
---|
342 | have_alsa=yes, |
---|
343 | AC_MSG_RESULT(*** All of ALSA dependent parts will be disabled ***)) |
---|
344 | else |
---|
345 | have_alsa=no |
---|
346 | fi |
---|
347 | |
---|
348 | AM_CONDITIONAL(HAVE_ALSA, test x"$have_alsa" = "xyes") |
---|
349 | AC_SUBST(ALSA_LIBS) |
---|
350 | AC_SUBST(ALSA_CFLAGS) |
---|
351 | |
---|
352 | dnl ============================================== |
---|
353 | dnl GStreamer section |
---|
354 | dnl ============================================== |
---|
355 | AC_ARG_ENABLE(gstreamer, |
---|
356 | AC_HELP_STRING([--enable-gstreamer],[use gstreamer, if available]), |
---|
357 | [case "${enableval}" in |
---|
358 | yes) ENABLE_GSTREAMER=yes ;; |
---|
359 | no) ENABLE_GSTREAMER=no ;; |
---|
360 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-gstreamer) ;; |
---|
361 | esac], |
---|
362 | [ENABLE_GSTREAMER=yes]) dnl Default value |
---|
363 | |
---|
364 | if test "x$ENABLE_GSTREAMER" = "xyes"; then |
---|
365 | have_gstreamer=no |
---|
366 | PKG_CHECK_MODULES(GST, gstreamer-interfaces-0.8 >= 0.8.0, |
---|
367 | have_gstreamer=yes, |
---|
368 | AC_MSG_RESULT(*** All of GStreamer dependent parts will be disabled ***)) |
---|
369 | else |
---|
370 | have_gstreamer=disabled |
---|
371 | AC_MSG_RESULT(*** GStreamer has been explicitly disabled ***) |
---|
372 | fi |
---|
373 | AM_CONDITIONAL(HAVE_GSTREAMER, test x"$have_gstreamer" = "xyes") |
---|
374 | AC_SUBST(GST_LIBS) |
---|
375 | AC_SUBST(GST_CFLAGS) |
---|
376 | |
---|
377 | dnl ============================================== |
---|
378 | dnl FB Level section |
---|
379 | dnl ============================================== |
---|
380 | have_fb=no |
---|
381 | AC_TRY_COMPILE([ |
---|
382 | #include <linux/fb.h> |
---|
383 | #include <linux/pmu.h> |
---|
384 | ],[ |
---|
385 | int arg = 0; |
---|
386 | ],[ |
---|
387 | have_fb=yes |
---|
388 | ]) |
---|
389 | AC_MSG_CHECKING(for Brightness control support) |
---|
390 | AC_MSG_RESULT($have_fb) |
---|
391 | AM_CONDITIONAL(HAVE_FB, test x"$have_fb" = "xyes") |
---|
392 | |
---|
393 | dnl ============================================== |
---|
394 | dnl Define the main variables |
---|
395 | dnl ============================================== |
---|
396 | COMMON_CFLAGS="-I\$(top_srcdir)/capplets/common" |
---|
397 | COMMON_LIBS="\$(top_builddir)/capplets/common/libcommon.la" |
---|
398 | |
---|
399 | EXTRA_CFLAGS="-I\$(top_srcdir)/ -DG_LOG_DOMAIN=\"\\\"\$(cappletname)-properties\\\"\" -DGNOMELOCALEDIR=\"\\\"${prefix}/${DATADIRNAME}/locale\\\"\"" |
---|
400 | |
---|
401 | GNOMECC_CAPPLETS_CFLAGS="${COMMON_CFLAGS} ${CAPPLET_CFLAGS} ${EXTRA_CFLAGS}" |
---|
402 | GNOMECC_CAPPLETS_LIBS="${COMMON_LIBS} ${CAPPLET_LIBS}" |
---|
403 | |
---|
404 | GNOMECC_CAPPLETS_CLEANFILES="\$(desktop) \$(desktop).in" |
---|
405 | GNOMECC_CAPPLETS_EXTRA_DIST="ChangeLog \$(desktop).in.in \$(cappletname)-capplet.png \$(cappletname)-properties.glade \$(pixmaps_DATA)" |
---|
406 | |
---|
407 | AC_SUBST(GNOMECC_CAPPLETS_EXTRA_DIST) |
---|
408 | AC_SUBST(GNOMECC_CAPPLETS_CLEANFILES) |
---|
409 | AC_SUBST(GNOMECC_CAPPLETS_CFLAGS) |
---|
410 | AC_SUBST(GNOMECC_CAPPLETS_LIBS) |
---|
411 | |
---|
412 | AC_SUBST(GTK_CFLAGS) |
---|
413 | AC_SUBST(GTK_LIBS) |
---|
414 | |
---|
415 | AC_SUBST(GNOME_CFLAGS) |
---|
416 | AC_SUBST(GNOME_LIBS) |
---|
417 | |
---|
418 | AC_SUBST(GNOME_SETTINGS_DAEMON_CFLAGS) |
---|
419 | AC_SUBST(GNOME_SETTINGS_DAEMON_LIBS) |
---|
420 | |
---|
421 | AC_SUBST(VFS_CAPPLET_CFLAGS) |
---|
422 | AC_SUBST(VFS_CAPPLET_LIBS) |
---|
423 | |
---|
424 | AC_SUBST(SOUND_CAPPLET_CFLAGS) |
---|
425 | AC_SUBST(SOUND_CAPPLET_LIBS) |
---|
426 | |
---|
427 | AC_SUBST(FONT_CAPPLET_CFLAGS) |
---|
428 | AC_SUBST(FONT_CAPPLET_LIBS) |
---|
429 | |
---|
430 | AC_SUBST(AT_CAPPLET_CFLAGS) |
---|
431 | AC_SUBST(AT_CAPPLET_LIBS) |
---|
432 | |
---|
433 | AC_SUBST(DISPLAY_CAPPLET_CFLAGS) |
---|
434 | AC_SUBST(DISPLAY_CAPPLET_LIBS) |
---|
435 | |
---|
436 | AC_SUBST(GNOMECC_CFLAGS) |
---|
437 | AC_SUBST(GNOMECC_LIBS) |
---|
438 | |
---|
439 | AC_SUBST(GNOME_DESKTOP_CFLAGS) |
---|
440 | AC_SUBST(GNOME_DESKTOP_LIBS) |
---|
441 | |
---|
442 | AC_SUBST(METACITY_CFLAGS) |
---|
443 | AC_SUBST(METACITY_LIBS) |
---|
444 | |
---|
445 | AC_SUBST(LIBXKLAVIER_CFLAGS) |
---|
446 | AC_SUBST(LIBXKLAVIER_LIBS) |
---|
447 | |
---|
448 | dnl ============================================== |
---|
449 | dnl End: Define the main variables |
---|
450 | dnl ============================================== |
---|
451 | |
---|
452 | GCONF_CONFIG_SOURCE= |
---|
453 | AC_ARG_ENABLE(gconf-source, [ --enable-gconf-source=sourceaddress Where to install schema files.],GCONF_CONFIG_SOURCE=$enable_gconf_source,) |
---|
454 | |
---|
455 | if test "x$GCONF_CONFIG_SOURCE" = "x"; then |
---|
456 | GCONF_CONFIG_SOURCE="xml::\${DESTDIR}\${sysconfdir}/gconf/gconf.xml.defaults" |
---|
457 | fi |
---|
458 | |
---|
459 | AC_SUBST(GCONF_CONFIG_SOURCE) |
---|
460 | AC_SUBST(INSTALL_GCONF_CONFIG_SOURCE) |
---|
461 | |
---|
462 | |
---|
463 | ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" |
---|
464 | AC_SUBST(ORBIT_IDL) |
---|
465 | |
---|
466 | LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`" |
---|
467 | AC_SUBST(LIBBONOBO_IDL_DIR) |
---|
468 | |
---|
469 | BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" |
---|
470 | AC_SUBST(BONOBO_ACTIVATION_IDL_DIR) |
---|
471 | |
---|
472 | |
---|
473 | dnl ============================================== |
---|
474 | dnl Define the directories |
---|
475 | dnl ============================================== |
---|
476 | if test "x${prefix}" = "xNONE"; then |
---|
477 | real_prefix=${ac_default_prefix} |
---|
478 | else |
---|
479 | real_prefix=${prefix} |
---|
480 | fi |
---|
481 | |
---|
482 | AC_DEFINE_UNQUOTED(GNOMECC_DATA_DIR, "${real_prefix}/share/${GETTEXT_PACKAGE}",[Path to gnomecc data files]) |
---|
483 | AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [install prefix]) |
---|
484 | GNOMECC_ICONS_DIR='$(datadir)/'${GETTEXT_PACKAGE}'/icons' |
---|
485 | AC_SUBST(GNOMECC_ICONS_DIR) |
---|
486 | GNOMECC_DESKTOP_DIR='$(datadir)/'${GETTEXT_PACKAGE}'/capplets' |
---|
487 | AC_SUBST(GNOMECC_DESKTOP_DIR) |
---|
488 | GNOMECC_GLADE_DIR='$(datadir)/'${GETTEXT_PACKAGE}'/interfaces' |
---|
489 | AC_SUBST(GNOMECC_GLADE_DIR) |
---|
490 | GNOMECC_PIXMAPS_DIR='$(datadir)/'${GETTEXT_PACKAGE}'/pixmaps' |
---|
491 | AC_SUBST(GNOMECC_PIXMAPS_DIR) |
---|
492 | dnl ============================================== |
---|
493 | dnl End: Define the directories |
---|
494 | dnl ============================================== |
---|
495 | |
---|
496 | dnl ======================================= |
---|
497 | dnl Variables for config_archiverConf.sh.in |
---|
498 | dnl ======================================= |
---|
499 | CONFIG_ARCHIVER_LIBDIR='-L${libdir}' |
---|
500 | CONFIG_ARCHIVER_LIBS="$CONFIG_ARCHIVER_LIBS -lconfig_archiver" |
---|
501 | CONFIG_ARCHIVER_INCLUDEDIR="$CONFIG_ARCHIVER_CFLAGS -I${includedir}" |
---|
502 | |
---|
503 | AC_SUBST(CONFIG_ARCHIVER_LIBDIR) |
---|
504 | AC_SUBST(CONFIG_ARCHIVER_LIBS) |
---|
505 | AC_SUBST(CONFIG_ARCHIVER_INCLUDEDIR) |
---|
506 | dnl ======================================= |
---|
507 | dnl End: Variables for config_archiverConf.sh.in |
---|
508 | dnl ======================================= |
---|
509 | |
---|
510 | AC_OUTPUT([ |
---|
511 | Makefile |
---|
512 | po/Makefile.in |
---|
513 | idl/Makefile |
---|
514 | gnome-settings-daemon/Makefile |
---|
515 | gnome-settings-daemon/xrdb/Makefile |
---|
516 | gnome-settings-daemon/actions/Makefile |
---|
517 | control-center/Makefile |
---|
518 | control-center/GNOME_ControlCenter.server |
---|
519 | libbackground/Makefile |
---|
520 | libwindow-settings/Makefile |
---|
521 | libwindow-settings/gnome-window-settings-2.0.pc |
---|
522 | libgswitchit/Makefile |
---|
523 | libkbdraw/Makefile |
---|
524 | capplets/Makefile |
---|
525 | capplets/common/Makefile |
---|
526 | capplets/default-applications/Makefile |
---|
527 | capplets/background/Makefile |
---|
528 | capplets/desktop-links/Makefile |
---|
529 | capplets/display/Makefile |
---|
530 | capplets/font/Makefile |
---|
531 | capplets/keybindings/Makefile |
---|
532 | capplets/keyboard/Makefile |
---|
533 | capplets/mouse/Makefile |
---|
534 | capplets/sound/Makefile |
---|
535 | capplets/theme-switcher/Makefile |
---|
536 | capplets/ui-properties/Makefile |
---|
537 | capplets/accessibility/Makefile |
---|
538 | capplets/accessibility/keyboard/Makefile |
---|
539 | capplets/accessibility/at-properties/Makefile |
---|
540 | capplets/network/Makefile |
---|
541 | capplets/windows/Makefile |
---|
542 | typing-break/Makefile |
---|
543 | schemas/Makefile |
---|
544 | libsounds/Makefile |
---|
545 | vfs-methods/Makefile |
---|
546 | vfs-methods/themus/Makefile |
---|
547 | vfs-methods/fontilus/Makefile |
---|
548 | control-center.spec |
---|
549 | ]) |
---|
550 | dnl due to a bug in intltool we need to expand something from the root last control-center.spec |
---|