configure.ac 19.8 KB
Newer Older
1
AC_PREREQ([2.60])
2

3
AC_INIT([gnome-settings-daemon],
Bastien Nocera's avatar
3.6.2    
Bastien Nocera committed
4
        [3.6.2],
5
6
        [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-settings-daemon])

7
AC_CONFIG_SRCDIR([gnome-settings-daemon/gnome-settings-manager.c])
8

9
AM_INIT_AUTOMAKE([1.9 tar-ustar dist-xz no-dist-gzip check-news])
Rodrigo Moya's avatar
Rodrigo Moya committed
10
AM_MAINTAINER_MODE([enable])
11

Bastien Nocera's avatar
Bastien Nocera committed
12
13
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

14
15
16
17
18
19
m4_define([gsd_api_version_major],[3])
m4_define([gsd_api_version_minor],[0])
m4_define([gsd_api_version],[gsd_api_version_major.gsd_api_version_minor])
GSD_API_VERSION="gsd_api_version"
AC_SUBST(GSD_API_VERSION)

20
21
22
AC_STDC_HEADERS
AC_PROG_CXX
AM_PROG_CC_C_O
23
AC_PROG_LIBTOOL
24
25
26
27
28

AC_HEADER_STDC

AC_SUBST(VERSION)

29
AC_CONFIG_HEADERS([config.h])
30

31
IT_PROG_INTLTOOL([0.37.1])
32
33
34
35
36
37
38

GETTEXT_PACKAGE=gnome-settings-daemon
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of default gettext domain])

AM_GLIB_GNU_GETTEXT

39
40
41
GSD_INTLTOOL_PLUGIN_RULE='%.gnome-settings-plugin:   %.gnome-settings-plugin.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([GSD_INTLTOOL_PLUGIN_RULE])

42
43
44
45
dnl ---------------------------------------------------------------------------
dnl - Dependencies
dnl ---------------------------------------------------------------------------

46
GLIB_REQUIRED_VERSION=2.31.0
47
GTK_REQUIRED_VERSION=3.3.18
48
GCONF_REQUIRED_VERSION=2.6.1
49
GIO_REQUIRED_VERSION=2.26.0
50
GNOME_DESKTOP_REQUIRED_VERSION=3.5.3
51
LIBNOTIFY_REQUIRED_VERSION=0.7.3
52
UPOWER_GLIB_REQUIRED_VERSION=0.9.1
53
PA_REQUIRED_VERSION=0.9.16
54
LIBWACOM_REQUIRED_VERSION=0.6
Bastien Nocera's avatar
Bastien Nocera committed
55
UPOWER_REQUIRED_VERSION=0.9.11
56
IBUS_REQUIRED_VERSION=1.4.99
57
58
59
60

EXTRA_COMPILE_WARNINGS(yes)

PKG_CHECK_MODULES(SETTINGS_DAEMON,
61
        glib-2.0 >= $GLIB_REQUIRED_VERSION
Rodrigo Moya's avatar
Rodrigo Moya committed
62
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
63
        gio-2.0 >= $GIO_REQUIRED_VERSION
64
        gmodule-2.0
65
        gthread-2.0
66
	gsettings-desktop-schemas >= 3.5.90
67
68
69
)

PKG_CHECK_MODULES(SETTINGS_PLUGIN,
Rodrigo Moya's avatar
Rodrigo Moya committed
70
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
Rodrigo Moya's avatar
Rodrigo Moya committed
71
        gio-2.0 >= $GIO_REQUIRED_VERSION
Matthias Clasen's avatar
Matthias Clasen committed
72
        libnotify >= $LIBNOTIFY_REQUIRED_VERSION
73
        gsettings-desktop-schemas
74
        x11
75
76
)

Christian Persch's avatar
Christian Persch committed
77
GSD_PLUGIN_LDFLAGS="-export_dynamic -module -avoid-version -no-undefined"
78
79
80
81
82
case $host_os in
  darwin*)
    GSD_PLUGIN_LDFLAGS="${GSD_PLUGIN_LDFLAGS} -Wl,-bundle_loader,\$(top_builddir)/gnome-settings-daemon/gnome-settings-daemon"
    ;;
esac
Christian Persch's avatar
Christian Persch committed
83
AC_SUBST([GSD_PLUGIN_LDFLAGS])
84
85
86

AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)

Rodrigo Moya's avatar
Rodrigo Moya committed
87
88
89
90
91
92
dnl ================================================================
dnl GSettings stuff
dnl ================================================================

GLIB_GSETTINGS

93
94
95
96
97
dnl ---------------------------------------------------------------------------
dnl - Check for gnome-desktop
dnl ---------------------------------------------------------------------------
PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)

98
99
100
dnl ---------------------------------------------------------------------------
dnl - Check for LCMS2
dnl ---------------------------------------------------------------------------
101
102
103
104
PKG_CHECK_MODULES(LCMS, lcms2 >= 2.2, have_new_lcms=yes, have_new_lcms=no)
if test x$have_new_lcms = xyes; then
        AC_DEFINE(HAVE_NEW_LCMS,1,[Got new lcms2])
else
Richard Hughes's avatar
Richard Hughes committed
105
        PKG_CHECK_MODULES(LCMS, lcms2)
106
107
fi

108
dnl ---------------------------------------------------------------------------
109
dnl - Check for libnotify
110
111
dnl ---------------------------------------------------------------------------

Bastien Nocera's avatar
Bastien Nocera committed
112
113
114
115
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED_VERSION,
		  [have_libnotify=yes], have_libnotify=no)
if test "x$have_libnotify" = xno ; then
	AC_MSG_ERROR([libnotify is required to build gnome-settings-daemon])
116
fi
117
118
AC_SUBST(LIBNOTIFY_CFLAGS)
AC_SUBST(LIBNOTIFY_LIBS)
119

Bastien Nocera's avatar
Bastien Nocera committed
120
121
122
123
dnl ---------------------------------------------------------------------------
dnl - GUdev integration (default enabled)
dnl ---------------------------------------------------------------------------
GUDEV_PKG=""
124
AC_ARG_ENABLE(gudev, AS_HELP_STRING([--disable-gudev],[Disable GUdev support (not optional on Linux platforms)]), enable_gudev=$enableval)
Bastien Nocera's avatar
Bastien Nocera committed
125
if test x$enable_gudev != xno; then
126
127
	PKG_CHECK_MODULES(GUDEV, gudev-1.0, have_gudev="yes", have_gudev="no")
	if test "x$have_gudev" = "xyes"; then
Bastien Nocera's avatar
Bastien Nocera committed
128
129
130
131
132
133
134
135
		AC_DEFINE(HAVE_GUDEV, 1, [define if GUdev is available])
		GUDEV_PKG="gudev-1.0"
	else
		if test x$enable_gudev = xyes; then
			AC_MSG_ERROR([GUdev enabled but not found])
		fi
	fi
else
136
	have_gudev=no
Bastien Nocera's avatar
Bastien Nocera committed
137
fi
138
AM_CONDITIONAL(HAVE_GUDEV, test x$have_gudev = xyes)
Bastien Nocera's avatar
Bastien Nocera committed
139

William Jon McCann's avatar
William Jon McCann committed
140
dnl ---------------------------------------------------------------------------
141
dnl - common
William Jon McCann's avatar
William Jon McCann committed
142
143
dnl ---------------------------------------------------------------------------

144
PKG_CHECK_MODULES(COMMON, x11 kbproto xi)
William Jon McCann's avatar
William Jon McCann committed
145

146
147
148
dnl ---------------------------------------------------------------------------
dnl - automount
dnl ---------------------------------------------------------------------------
William Jon McCann's avatar
William Jon McCann committed
149

150
PKG_CHECK_MODULES(AUTOMOUNT, x11 kbproto)
William Jon McCann's avatar
William Jon McCann committed
151

152
153
154
dnl ---------------------------------------------------------------------------
dnl - background
dnl ---------------------------------------------------------------------------
155

156
PKG_CHECK_MODULES(BACKGROUND, x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
157

158
dnl ---------------------------------------------------------------------------
159
dnl - mouse
160
dnl ---------------------------------------------------------------------------
161

162
PKG_CHECK_MODULES(MOUSE, x11 xi)
William Jon McCann's avatar
William Jon McCann committed
163

164
dnl ---------------------------------------------------------------------------
165
dnl - cursor
166
167
dnl ---------------------------------------------------------------------------

168
PKG_CHECK_MODULES(CURSOR, xfixes)
169

170
dnl ---------------------------------------------------------------------------
171
dnl - xsettings
172
173
dnl ---------------------------------------------------------------------------

174
PKG_CHECK_MODULES(XSETTINGS, fontconfig)
William Jon McCann's avatar
William Jon McCann committed
175
176
177
178
179

dnl ---------------------------------------------------------------------------
dnl - Keyboard plugin stuff
dnl ---------------------------------------------------------------------------

180
181
182
183
184
185
186
AC_ARG_ENABLE(ibus,
        AS_HELP_STRING([--disable-ibus],
                       [Disable IBus support]),
        enable_ibus=$enableval,
        enable_ibus=yes)

if test "x$enable_ibus" = "xyes" ; then
187
        IBUS_MODULE="ibus-1.0 >= $IBUS_REQUIRED_VERSION"
188
189
190
191
192
193
194
        AC_DEFINE(HAVE_IBUS, 1, [Defined if IBus support is enabled])
else
        IBUS_MODULE=
fi
AM_CONDITIONAL(HAVE_IBUS, test "x$enable_ibus" == "xyes")

PKG_CHECK_MODULES(KEYBOARD, xkbfile $IBUS_MODULE gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
195

Rodrigo Moya's avatar
Rodrigo Moya committed
196
197
198
199
200
201
dnl ---------------------------------------------------------------------------
dnl - Housekeeping plugin stuff
dnl ---------------------------------------------------------------------------

PKG_CHECK_MODULES(GIOUNIX, [gio-unix-2.0])

202
203
204
205
dnl ---------------------------------------------------------------------------
dnl - media-keys plugin stuff
dnl ---------------------------------------------------------------------------

206
PKG_CHECK_MODULES(MEDIA_KEYS, [gio-unix-2.0 libpulse >= $PA_REQUIRED_VERSION $GUDEV_PKG libpulse-mainloop-glib >= $PA_REQUIRED_VERSION libcanberra])
207

208
209
210
211
212
213
dnl ---------------------------------------------------------------------------
dnl - xrandr plugin stuff
dnl ---------------------------------------------------------------------------

PKG_CHECK_MODULES(XRANDR, [gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION upower-glib >= $UPOWER_REQUIRED_VERSION])

214
215
216
217
dnl ---------------------------------------------------------------------------
dnl - orientation plugin stuff
dnl ---------------------------------------------------------------------------

218
if test x$have_gudev != xno; then
219
220
221
	PKG_CHECK_MODULES(ORIENTATION, [gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION gudev-1.0])
fi

222
223
224
225
226
227
dnl ---------------------------------------------------------------------------
dnl - sound plugin stuff
dnl ---------------------------------------------------------------------------

PKG_CHECK_MODULES(SOUND, [libpulse >= $PA_REQUIRED_VERSION $GUDEV_PKG libpulse-mainloop-glib >= $PA_REQUIRED_VERSION])

228
229
230
231
232
# ---------------------------------------------------------------------------
# Power
# ---------------------------------------------------------------------------
PKG_CHECK_MODULES(POWER, upower-glib >= $UPOWER_REQUIRED_VERSION gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION libcanberra-gtk3 libnotify x11 xext)

233
if test x$have_gudev != xno; then
234
235
236
237
238
239
	PKG_CHECK_MODULES(BACKLIGHT_HELPER,
		glib-2.0 >= $GLIB_REQUIRED_VERSION
		gudev-1.0
	)
fi

240
241
242
243
244
245
dnl ---------------------------------------------------------------------------
dnl - color
dnl ---------------------------------------------------------------------------

PKG_CHECK_MODULES(COLOR, [colord >= 0.1.9 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION libcanberra-gtk3])

Bastien Nocera's avatar
Bastien Nocera committed
246
dnl ---------------------------------------------------------------------------
247
dnl - wacom (disabled for s390/s390x and non Linux platforms)
Bastien Nocera's avatar
Bastien Nocera committed
248
249
dnl ---------------------------------------------------------------------------

250
251
252
253
254
case $host_os in
  linux*)
    if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then
      have_wacom=no
    else
255
256
257
258
259
      if test x$enable_gudev != xno; then
        PKG_CHECK_MODULES(WACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION x11 xi xtst gudev-1.0 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION xorg-wacom])
      else
        AC_MSG_ERROR([GUdev is necessary to compile Wacom support])
      fi
260
261
262
263
      have_wacom=yes
    fi
    ;;
  *)
264
    have_wacom=no
265
266
    ;;
esac
267
AM_CONDITIONAL(HAVE_WACOM, test x$have_wacom = xyes)
Bastien Nocera's avatar
Bastien Nocera committed
268

269
270
271
272
dnl ==============================================
dnl PackageKit section
dnl ==============================================

273
have_packagekit=false
274
275
276
277
278
279
280
281
282
283
284
AC_ARG_ENABLE(packagekit,
  AC_HELP_STRING([--disable-packagekit],
                 [turn off PackageKit support]),
       [case "${enableval}" in
               yes) WANT_PACKAGEKIT=yes ;;
               no)  WANT_PACKAGEKIT=no ;;
               *) AC_MSG_ERROR(bad value ${enableval} for --disable-packagekit) ;;
       esac],
       [WANT_PACKAGEKIT=yes]) dnl Default value

if test x$WANT_PACKAGEKIT = xyes ; then
285
       PK_REQUIRED_VERSION=0.7.4
Bastien Nocera's avatar
Bastien Nocera committed
286
       PKG_CHECK_MODULES(PACKAGEKIT, glib-2.0 packagekit-glib2 >= $PK_REQUIRED_VERSION upower-glib >= $UPOWER_REQUIRED_VERSION gudev-1.0 libnotify >= $LIBNOTIFY_REQUIRED_VERSION,
287
288
289
290
291
292
293
294
295
             [have_packagekit=true
              AC_DEFINE(HAVE_PACKAGEKIT, 1, [Define if PackageKit should be used])],
             [have_packagekit=false])
fi
AM_CONDITIONAL(HAVE_PACKAGEKIT, test "x$have_packagekit" = "xtrue")

AC_SUBST(PACKAGEKIT_CFLAGS)
AC_SUBST(PACKAGEKIT_LIBS)

Ray Strode's avatar
Ray Strode committed
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
dnl ==============================================
dnl smartcard section
dnl ==============================================
have_smartcard_support=false
AC_ARG_ENABLE(smartcard-support,
  AC_HELP_STRING([--disable-smartcard-support],
                 [turn off smartcard support]),
       [case "${enableval}" in
               yes) WANT_SMARTCARD_SUPPORT=yes ;;
               no)  WANT_SMARTCARD_SUPPORT=no ;;
               *) AC_MSG_ERROR(bad value ${enableval} for --disable-smartcard-support) ;;
       esac],
       [WANT_SMARTCARD_SUPPORT=yes])

if test x$WANT_SMARTCARD_SUPPORT = xyes ; then
       NSS_REQUIRED_VERSION=3.11.2
       PKG_CHECK_MODULES(NSS, nss >= $NSS_REQUIRED_VERSION,
             [have_smartcard_support=true
              AC_DEFINE(SMARTCARD_SUPPORT, 1, [Define if smartcard support should be enabled])],
             [have_smartcard_support=false])
fi
AM_CONDITIONAL(SMARTCARD_SUPPORT, test "x$have_smartcard_support" = "xtrue")

AC_SUBST(NSS_CFLAGS)
AC_SUBST(NSS_LIBS)

AC_ARG_WITH(nssdb,
  AC_HELP_STRING([--with-nssdb],
                 [where system NSS database is]))

NSS_DATABASE=""
if test "x$have_smartcard_support" = "xtrue"; then
        if ! test -z "$with_nssdb" ; then
                NSS_DATABASE="$with_nssdb"
        else
                NSS_DATABASE="${sysconfdir}/pki/nssdb"
        fi
else
        if ! test -z "$with_nssdb" ; then
                AC_MSG_WARN([nssdb specified when smartcard support is disabled])
        fi
fi

AC_SUBST(NSS_DATABASE)

341

342
dnl ==============================================
343
dnl systemd check
344
345
dnl ==============================================

346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
AC_ARG_ENABLE([systemd],
              AS_HELP_STRING([--enable-systemd], [Use systemd for session tracking]),
              [with_systemd=$enableval],
              [with_systemd=no])
if test "$with_systemd" = "yes" ; then
  PKG_CHECK_MODULES(SYSTEMD, [libsystemd-login])
  AC_DEFINE(HAVE_SYSTEMD, 1, [Define if systemd is used for session tracking])
  SESSION_TRACKING=systemd
else
  SESSION_TRACKING=ConsoleKit
fi

AC_SUBST(SYSTEMD_CFLAGS)
AC_SUBST(SYSTEMD_LIBS)

AM_CONDITIONAL(WITH_SYSTEMD, [test "$with_systemd" = "yes"], [Using systemd])

363
364
365
366
# ---------------------------------------------------------------------------
# CUPS
# ---------------------------------------------------------------------------

367
368
369
370
371
AC_ARG_ENABLE(cups,
              AS_HELP_STRING([--disable-cups], [disable CUPS support (default: enabled)]),,
              enable_cups=yes)

if test x"$enable_cups" != x"no" ; then
372
373
   AC_PROG_SED

374
375
376
377
378
   AC_PATH_PROG(CUPS_CONFIG, cups-config)

   if test x$CUPS_CONFIG = x; then
     AC_MSG_ERROR([cups-config not found but CUPS support requested])
   fi
379

380
  CUPS_API_VERSION=`$CUPS_CONFIG --api-version`
381
382
  CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 1`
  CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 2`
383

384
385
386
387
388
389
390
391
  AC_CHECK_HEADERS([cups/cups.h cups/http.h cups/ipp.h],,
                   AC_MSG_ERROR([CUPS headers not found but CUPS support requested]))

   if ! test $CUPS_API_MAJOR -gt 1 -o \
             $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 4 ; then
      AC_MSG_ERROR([CUPS 1.4 or newer not found, but CUPS support requested])
   fi

392
393
394
   CUPS_CFLAGS=`$CUPS_CONFIG --cflags | $SED -e 's/-O\w*//g' -e 's/-m\w*//g'`
   CUPS_LIBS=`$CUPS_CONFIG --libs`
   AC_SUBST(CUPS_CFLAGS)
395
   AC_SUBST(CUPS_LIBS)
396
fi
397
398

AM_CONDITIONAL(BUILD_PRINT_NOTIFICATIONS, [test x"$enable_cups" = x"yes"])
399

400
401
402
403
404
405
# ---------------------------------------------------------------------------
# Enable Profiling
# ---------------------------------------------------------------------------
AC_ARG_ENABLE(profiling,
	[AC_HELP_STRING([--enable-profiling],
	[turn on profiling])],
406
407
	, enable_profiling=no)
if test "x$enable_profiling" = "xyes"; then
408
409
410
411
    AC_DEFINE(ENABLE_PROFILING,1,[enable profiling])
fi


Christian Persch's avatar
Christian Persch committed
412
413
414
# ---------------------------------------------------------------------------
# Plugins
# ---------------------------------------------------------------------------
William Jon McCann's avatar
William Jon McCann committed
415

416
plugindir='$(libdir)/gnome-settings-daemon-gsd_api_version'
Christian Persch's avatar
Christian Persch committed
417
AC_SUBST([plugindir])
418

419
PLUGIN_CFLAGS="-DG_LOG_DOMAIN=\"\\\"\$(plugin_name)-plugin\\\"\" -DPLUGIN_NAME=\"\\\"\$(plugin_name)\\\"\" "
420
421
AC_SUBST(PLUGIN_CFLAGS)

Colin Walters's avatar
Colin Walters committed
422
423
424
425
426
427
428
429
430
431
432
AC_ARG_ENABLE(man,
              [AS_HELP_STRING([--enable-man],
                              [generate man pages [default=yes]])],,
              enable_man=yes)
if test "$enable_man" != no; then
  AC_PATH_PROG([XSLTPROC], [xsltproc])
  if test -z "$XSLTPROC"; then
    AC_MSG_ERROR([xsltproc is required for --enable-man])
  fi
fi
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
Matthias Clasen's avatar
Matthias Clasen committed
433

434
435
436
437
438
dnl ---------------------------------------------------------------------------
dnl - Finish
dnl ---------------------------------------------------------------------------


William Jon McCann's avatar
William Jon McCann committed
439
# Turn on the additional warnings last, so warnings don't affect other tests.
440
441
442
443
444

AC_ARG_ENABLE(more-warnings,
	[AC_HELP_STRING([--enable-more-warnings],
	[Maximum compiler warnings])],
	set_more_warnings="$enableval",[
445
446
447
448
449
		if test -d $srcdir/.git; then
			set_more_warnings=yes
		else
			set_more_warnings=no
		fi
450
451
452
453
454
455
456
457
        ])
AC_MSG_CHECKING(for more warnings)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
        AC_MSG_RESULT(yes)
        CFLAGS="\
        -Wall \
        -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
        -Wnested-externs -Wpointer-arith \
William Jon McCann's avatar
William Jon McCann committed
458
        -Wcast-align -Wsign-compare \
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
        $CFLAGS"

        for option in -Wno-strict-aliasing -Wno-sign-compare; do
                SAVE_CFLAGS="$CFLAGS"
                CFLAGS="$CFLAGS $option"
                AC_MSG_CHECKING([whether gcc understands $option])
                AC_TRY_COMPILE([], [],
                        has_option=yes,
                        has_option=no,)
                if test $has_option = no; then
                        CFLAGS="$SAVE_CFLAGS"
                fi
                AC_MSG_RESULT($has_option)
                unset has_option
                unset SAVE_CFLAGS
        done
        unset option
else
        AC_MSG_RESULT(no)
fi

#
# Enable Debug
#
AC_ARG_ENABLE(debug,
	[AC_HELP_STRING([--enable-debug],
	[turn on debugging])],
	, enable_debug=yes)
if test "$enable_debug" = "yes"; then
	DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
else
	if test "x$enable_debug" = "xno"; then
		DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
492
493
494
	else
		DEBUG_CFLAGS=""
	fi
495
496
497
498
499
fi
AC_SUBST(DEBUG_CFLAGS)

AC_OUTPUT([
Makefile
500
gnome-settings-daemon/Makefile
501
plugins/Makefile
William Jon McCann's avatar
William Jon McCann committed
502
plugins/a11y-keyboard/Makefile
Bastien Nocera's avatar
Bastien Nocera committed
503
plugins/a11y-settings/Makefile
504
plugins/automount/Makefile
William Jon McCann's avatar
William Jon McCann committed
505
plugins/background/Makefile
506
plugins/clipboard/Makefile
507
plugins/color/Makefile
508
plugins/common/Makefile
509
plugins/cursor/Makefile
William Jon McCann's avatar
William Jon McCann committed
510
plugins/dummy/Makefile
511
plugins/power/Makefile
512
plugins/housekeeping/Makefile
William Jon McCann's avatar
William Jon McCann committed
513
plugins/keyboard/Makefile
William Jon McCann's avatar
William Jon McCann committed
514
plugins/media-keys/Makefile
515
plugins/media-keys/cut-n-paste/Makefile
William Jon McCann's avatar
William Jon McCann committed
516
plugins/mouse/Makefile
517
plugins/orientation/Makefile
518
plugins/print-notifications/Makefile
Ray Strode's avatar
Ray Strode committed
519
plugins/smartcard/Makefile
520
plugins/sound/Makefile
521
plugins/updates/Makefile
Peter Hutterer's avatar
Peter Hutterer committed
522
plugins/wacom/Makefile
William Jon McCann's avatar
William Jon McCann committed
523
plugins/xrandr/Makefile
524
525
526
plugins/xsettings/Makefile
data/Makefile
data/gnome-settings-daemon.pc
527
data/gnome-settings-daemon-uninstalled.pc
528
data/org.gnome.settings-daemon.plugins.gschema.xml.in
529
data/org.gnome.settings-daemon.plugins.xsettings.gschema.xml.in
530
data/org.gnome.settings-daemon.plugins.keyboard.gschema.xml.in
531
data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
532
data/org.gnome.settings-daemon.plugins.color.gschema.xml.in
533
data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
534
data/org.gnome.settings-daemon.peripherals.gschema.xml.in
Rodrigo Moya's avatar
Rodrigo Moya committed
535
data/org.gnome.settings-daemon.plugins.housekeeping.gschema.xml.in
536
data/org.gnome.settings-daemon.plugins.orientation.gschema.xml.in
537
data/org.gnome.settings-daemon.plugins.updates.gschema.xml.in
Rodrigo Moya's avatar
Rodrigo Moya committed
538
data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in
Peter Hutterer's avatar
Peter Hutterer committed
539
data/org.gnome.settings-daemon.peripherals.wacom.gschema.xml.in
540
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in
541
po/Makefile.in
Matthias Clasen's avatar
Matthias Clasen committed
542
man/Makefile
543
544
545
546
547
548
549
550
551
552
])

dnl ---------------------------------------------------------------------------
dnl - Show summary
dnl ---------------------------------------------------------------------------

echo "
                    gnome-settings-daemon $VERSION
                    =============================

553
554
        prefix:                   ${prefix}
        exec_prefix:              ${exec_prefix}
555
556
557
558
559
560
        libdir:                   ${libdir}
        bindir:                   ${bindir}
        sbindir:                  ${sbindir}
        sysconfdir:               ${sysconfdir}
        sysconfsubdir:            ${sysconfsubdir}
        localstatedir:            ${localstatedir}
Christian Persch's avatar
Christian Persch committed
561
        plugindir:                ${plugindir}
562
        datadir:                  ${datadir}
563
564
565
        source code location:     ${srcdir}
        compiler:                 ${CC}
        cflags:                   ${CFLAGS}
566
567
        Maintainer mode:          ${USE_MAINTAINER_MODE}

568
        Session tracking:         ${SESSION_TRACKING}
569
        LCMS DICT support:        ${have_new_lcms}
570
        IBus support:             ${enable_ibus}
571
        Libnotify support:        ${have_libnotify}
572
        PackageKit support:       ${have_packagekit}
Ray Strode's avatar
Ray Strode committed
573
        Smartcard support:        ${have_smartcard_support}
574
        Cups support:             ${enable_cups}
575
        Wacom support:            ${have_wacom}
Ray Strode's avatar
Ray Strode committed
576
577
578
${NSS_DATABASE:+\
        System nssdb:             ${NSS_DATABASE}
}\
579
        Profiling support:        ${enable_profiling}
580
"