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
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(lightdm, 0.1.0)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
LT_INIT
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
GOBJECT_INTROSPECTION_CHECK(0.6.7)
GNOME_COMPILE_WARNINGS(maximum)
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
AC_CHECK_HEADERS(security/pam_appl.h, [], AC_MSG_ERROR(PAM not found))
PKG_CHECK_MODULES(LIGHTDM, [
glib-2.0
gio-2.0
gio-unix-2.0
gobject-2.0
dbus-glib-1
xcb
xdmcp
])
AC_ARG_ENABLE(console-kit,
AC_HELP_STRING(--enable-console-kit=[no/auto/yes], Enable Console Kit),
enable_console_kit=$enableval,
enable_console_kit="auto")
have_console_kit=no
case "$enable_console_kit" in
"auto")
PKG_CHECK_MODULES(CONSOLE_KIT,
ck-connector,
have_console_kit=yes,
have_console_kit=no)
;;
"yes")
PKG_CHECK_MODULES(CONSOLE_KIT, ck-connector)
have_console_kit=yes;
;;
esac
if test $have_console_kit = yes; then
AC_DEFINE(HAVE_CONSOLE_KIT, 1, Define if using Console Kit)
fi
PKG_CHECK_MODULES(LIBLDMGREETER, [
glib-2.0
gio-unix-2.0
gobject-2.0
dbus-glib-1
libxklavier
])
PKG_CHECK_MODULES(LIGHTDM_GREETER, [
gtk+-2.0
dbus-glib-1
])
PKG_CHECK_MODULES(LIGHTDM_WKGREETER, [
gtk+-2.0
webkit-1.0
dbus-glib-1
])
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_PATH_PROG(DBUSBINDINGTOOL, dbus-binding-tool)
AC_SUBST(DBUSBINDINGTOOL)
dnl ###########################################################################
dnl Configurable values
dnl ###########################################################################
CONFIG_FILE=${sysconfdir}/lightdm.conf
AC_ARG_WITH(config-file,
AS_HELP_STRING(--with-config-file=<file>,
Configuration file to load),
if test x$withval != x; then
CONFIG_FILE="$withval"
fi
)
AC_SUBST(CONFIG_FILE)
LOG_DIR=${localstatedir}/log/lightdm
AC_ARG_WITH(log-dir,
AS_HELP_STRING(--with-log-dir=<file>,
Directory to write logs to),
if test x$withval != x; then
LOG_DIR="$withval"
fi
)
AC_SUBST(LOG_DIR)
DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
AC_ARG_WITH(dbus-sys,
AS_HELP_STRING(--with-dbus-sys=<dir>,
Where D-BUS system.d directory is),
if test x$withval != x ; then
DBUS_SYS_DIR="$withval"
fi
)
AC_SUBST(DBUS_SYS_DIR)
XSERVER_BINARY=/usr/bin/X
AC_ARG_WITH(xserver-binary,
AS_HELP_STRING(--with-xserver-binary=<binary>,
X server binary name),
if test x$withval != x; then
XSERVER_BINARY="$withval"
fi
)
AC_SUBST(XSERVER_BINARY)
AC_DEFINE_UNQUOTED(XSERVER_BINARY, "$XSERVER_BINARY", X server binary name)
XAUTH_DIR=$localstatedir/run/lightdm/authority
AC_ARG_WITH(xauth-dir,
AS_HELP_STRING(--with-xauth-dir=<dir>,
X server authorization directory),
if test x$withval != x; then
XAUTH_DIR="$withval"
fi
)
AC_SUBST(XAUTH_DIR)
XSESSIONS_DIR=/usr/share/xsessions
AC_ARG_WITH(xsession-dir,
AS_HELP_STRING(--with-xsession-dir=<dir>,
X session directory),
if test x$withval != x; then
XSESSIONS_DIR="$withval"
fi
)
AC_SUBST(XSESSIONS_DIR)
AC_DEFINE_UNQUOTED(XSESSIONS_DIR, "$XSESSIONS_DIR", X session directory)
DEFAULT_SESSION=gnome
AC_ARG_WITH(default-session,
AS_HELP_STRING(--with-default-session=<name>,
Default session to launch),
if test x$withval != x; then
DEFAULT_SESSION="$withval"
fi
)
AC_SUBST(DEFAULT_SESSION)
AC_DEFINE_UNQUOTED(DEFAULT_SESSION, "$DEFAULT_SESSION", Default session)
GREETER_USER=gdm
AC_ARG_WITH(greeter-user,
AS_HELP_STRING(--with-greeter-user=<username>,
User to run greeter as),
if test x$withval != x; then
GREETER_USER="$withval"
fi
)
AC_SUBST(GREETER_USER)
AC_DEFINE_UNQUOTED(GREETER_USER, "$GREETER_USER", User to run greeter as)
THEME_DIR=${prefix}/share/lightdm/themes
AC_ARG_WITH(theme-dir,
AS_HELP_STRING(--with-theme-dir=<dir>,
Directory containing greeter themes),
if test x$withval != x; then
THEME_DIR="$withval"
fi
)
AC_SUBST(THEME_DIR)
AC_DEFINE_UNQUOTED(THEME_DIR, "$THEME_DIR", Directory containing greeter themes)
GREETER_THEME=gnome
AC_ARG_WITH(theme,
AS_HELP_STRING(--with-theme=<theme>,
Default theme),
if test x$withval != x; then
GREETER_THEME="$withval"
fi
)
AC_SUBST(GREETER_THEME)
AC_DEFINE_UNQUOTED(GREETER_THEME, "$GREETER_THEME", Default theme)
dnl ###########################################################################
dnl Documentation
dnl ###########################################################################
GNOME_DOC_INIT
GTK_DOC_CHECK
dnl ###########################################################################
dnl Internationalization
dnl ###########################################################################
IT_PROG_INTLTOOL(0.35.0)
GETTEXT_PACKAGE=lightdm
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)
AM_GLIB_GNU_GETTEXT
dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################
AC_OUTPUT([
Makefile
data/org.freedesktop.LightDisplayManager.conf
data/Makefile
doc/Makefile
greeters/Makefile
libldmgreeter/libldmgreeter-1.pc
libldmgreeter/Makefile
po/Makefile.in
src/Makefile
themes/Makefile
themes/gnome/Makefile
themes/webkit/Makefile
])
dnl ###########################################################################
dnl Summary
dnl ###########################################################################
echo "
Light Display Manager $VERSION
===========================
prefix: $prefix
Config file: $CONFIG_FILE
Log directory: $LOG_DIR
D-Bus system directory: $DBUS_SYS_DIR
X server binary: $XSERVER_BINARY
X authorization dir: $XAUTH_DIR
XSessions dir: $XSESSIONS_DIR
Default session: $DEFAULT_SESSION
Console Kit: $have_console_kit
Greeter user: $GREETER_USER
Theme directory: $THEME_DIR
Theme: $GREETER_THEME
"
|