64
64
dnl ---------------------------------------------------------------------------
66
66
DBUS_GLIB_REQUIRED_VERSION=0.74
67
GLIB_REQUIRED_VERSION=2.33.2
67
GLIB_REQUIRED_VERSION=2.35.0
68
68
GTK_REQUIRED_VERSION=2.91.1
69
69
PANGO_REQUIRED_VERSION=1.3.0
70
70
SCROLLKEEPER_REQUIRED_VERSION=0.1.4
283
283
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
284
284
[Directory for systemd service files]),
285
285
[with_systemdsystemunitdir=$withval], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
286
AC_ARG_ENABLE(systemd-journal,
287
AS_HELP_STRING([--enable-systemd-journal],
288
[Add journald support @<:@default=auto@:>@]),
289
[enable_systemd_journal=$enableval], [enable_systemd_journal=auto])
286
290
AC_ARG_WITH(plymouth,
287
291
AS_HELP_STRING([--with-plymouth],
288
292
[Add plymouth support @<:@default=auto@:>@]),
289
293
[with_plymouth=$withval], [with_plymouth=auto])
294
AC_ARG_ENABLE(fallback-greeter,
295
AS_HELP_STRING([--enable-fallback-greeter],
296
[Enable fallback greeter @<:@default=no@:>@]),,
297
enable_fallback_greeter=no)
298
AM_CONDITIONAL(ENABLE_FALLBACK_GREETER, test x$enable_fallback_greeter = xyes)
291
300
AC_ARG_WITH(at-spi-registryd-directory,
292
301
AS_HELP_STRING([--with-at-spi-registryd-directory],
327
336
if test x$withval != x; then
328
337
LANG_CONFIG_FILE="$withval"
330
LANG_CONFIG_FILE='$(sysconfdir)/sysconfig/i18n'
339
LANG_CONFIG_FILE='$(sysconfdir)/locale.conf'
332
341
AC_SUBST(LANG_CONFIG_FILE)
945
954
AC_SUBST(SYSTEMD_CFLAGS)
946
955
AC_SUBST(SYSTEMD_LIBS)
957
PKG_CHECK_MODULES(JOURNALD,
958
[libsystemd-journal],
959
[have_journald=yes], [have_journald=no])
961
if test "x$enable_systemd_journal" = "xauto" ; then
962
if test x$use_systemd = xyes ; then
963
if test x$have_journald = xno ; then
973
use_journald="$enable_systemd_journal"
976
if test "x$use_journald" != "xno" ; then
977
if test "x$have_journald" = "xno"; then
978
AC_MSG_ERROR([journald support explicitly required, but journald not found])
981
AC_DEFINE(ENABLE_SYSTEMD_JOURNAL, 1, [Define to enable systemd journal support])
983
AC_SUBST(JOURNALD_CFLAGS)
984
AC_SUBST(JOURNALD_LIBS)
948
986
AC_PATH_PROG(SYSTEMD_X_SERVER, systemd-multi-seat-x, [/lib/systemd/systemd-multi-seat-x], [/lib/systemd:/usr/lib/systemd:$PATH])
949
987
AC_SUBST(SYSTEMD_X_SERVER)
950
988
AC_DEFINE_UNQUOTED(SYSTEMD_X_SERVER,"$SYSTEMD_X_SERVER",[Path to systemd X server wrapper])
1316
1354
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
1318
1356
dnl ---------------------------------------------------------------------------
1357
dnl - runtime directory
1358
dnl ---------------------------------------------------------------------------
1360
AC_ARG_WITH([run-dir],
1361
AS_HELP_STRING([--with-run-dir=<file>],
1362
[runtime directory]))
1364
if ! test -z "$with_run_dir"; then
1365
GDM_RUN_DIR=$with_run_dir
1367
GDM_RUN_DIR=${localstatedir}/run/gdm
1370
AC_SUBST([GDM_RUN_DIR])
1372
dnl ---------------------------------------------------------------------------
1320
1374
dnl ---------------------------------------------------------------------------
1326
1380
if ! test -z "$with_pid_file"; then
1327
1381
GDM_PID_FILE=$with_pid_file
1329
GDM_PID_FILE=/var/run/gdm.pid
1383
GDM_PID_FILE=$GDM_RUN_DIR/gdm.pid
1332
1386
AC_SUBST(GDM_PID_FILE)
1333
1387
AC_DEFINE_UNQUOTED(GDM_PID_FILE, "$GDM_PID_FILE", [pid file])
1335
1389
dnl ---------------------------------------------------------------------------
1390
dnl - ran once marker
1391
dnl ---------------------------------------------------------------------------
1393
AC_ARG_WITH(ran-once-marker-directory,
1394
AS_HELP_STRING([--with-ran-once-marker-directory=<dir>],
1395
[ran once marker directory]))
1397
if ! test -z "$with_ran_once_marker_directory"; then
1398
GDM_RAN_ONCE_MARKER_DIR=$with_ran_once_marker_directory
1400
GDM_RAN_ONCE_MARKER_DIR=$GDM_RUN_DIR
1402
AC_SUBST(GDM_RAN_ONCE_MARKER_DIR)
1403
AS_AC_EXPAND(GDM_RAN_ONCE_MARKER_DIR_EXPANDED, $GDM_RAN_ONCE_MARKER_DIR)
1404
AC_DEFINE_UNQUOTED(GDM_RAN_ONCE_MARKER_DIR, "$GDM_RAN_ONCE_MARKER_DIR_EXPANDED", [ran once marker dir])
1406
GDM_RAN_ONCE_MARKER_FILE="$GDM_RAN_ONCE_MARKER_DIR/ran-once-marker"
1407
AC_SUBST(GDM_RAN_ONCE_MARKER_FILE)
1408
AS_AC_EXPAND(GDM_RAN_ONCE_MARKER_FILE_EXPANDED, $GDM_RAN_ONCE_MARKER_FILE)
1409
AC_DEFINE_UNQUOTED(GDM_RAN_ONCE_MARKER_FILE, "$GDM_RAN_ONCE_MARKER_FILE_EXPANDED", [ran once marker file])
1411
dnl ---------------------------------------------------------------------------
1336
1412
dnl - GREETER WORKING DIRECTORY
1337
1413
dnl ---------------------------------------------------------------------------
1375
1451
if ! test -z "$with_screenshot_dir"; then
1376
1452
GDM_SCREENSHOT_DIR=$with_screenshot_dir
1378
GDM_SCREENSHOT_DIR=${localstatedir}/run/gdm/greeter
1454
GDM_SCREENSHOT_DIR=$GDM_RUN_DIR/greeter
1381
1457
AC_SUBST(GDM_SCREENSHOT_DIR)
1414
1490
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
1415
1491
-Wnested-externs -Wpointer-arith \
1416
-Wcast-align -Wsign-compare -Wp,-D_FORTIFY_SOURCE=2 \
1492
-Wcast-align -Wsign-compare \
1419
1495
for option in -Wno-strict-aliasing -Wno-sign-compare; do