~xnox/lightdm/archive-upload

1 by robert.ancell at gmail
Compiles and does something
1
dnl Process this file with autoconf to produce a configure script.
2
1872 by Robert Ancell
Releasing 1.9.6
3
AC_INIT(lightdm, 1.9.6)
210 by robert.ancell at gmail
Add introspection.m4 into build
4
AC_CONFIG_MACRO_DIR(m4)
175 by robert.ancell at gmail
Make ConsoleKit optional
5
AC_CONFIG_HEADER(config.h)
1555 by Robert Ancell
Use xzip for tarballs, don't distribute AUTHORS, ChangeLog, README
6
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
1562 by Robert Ancell
Stop using gnome-autogen.sh
7
AM_SILENT_RULES(yes)
60 by robert.ancell at gmail
Make libldmgreeter library
8
LT_INIT
9
AM_PROG_CC_C_O
284 by robert.ancell at canonical
Add libldmgreeter-qt (David Edmundson)
10
AC_PROG_CXX
197 by robert.ancell at gmail
Make AM_SILENT_RULES optional, use AC_PROG_LIBTOOL
11
AC_PROG_LIBTOOL
1 by robert.ancell at gmail
Compiles and does something
12
AM_MAINTAINER_MODE
13
1721.1.4 by Robert Ancell
Check for GCC before enabling warning flags
14
dnl Enable compile warnings (only supporting GCC)
15
if test "x$GCC" == xyes; then
16
    WARN_CFLAGS="-Wall \
17
                 -Wstrict-prototypes \
18
                 -Wnested-externs \
19
                 -Werror=missing-prototypes \
20
                 -Werror=implicit-function-declaration \
21
                 -Werror=pointer-arith \
22
                 -Werror=init-self \
23
                 -Werror=format-security \
24
                 -Werror=format=2 \
25
                 -Werror=missing-include-dirs"
26
fi
1721.1.1 by Robert Ancell
Compile with -Wall, fix associated bugs
27
AC_SUBST(WARN_CFLAGS)
28
324 by Robert Ancell
Require gobject-introspection 0.9.5
29
GOBJECT_INTROSPECTION_CHECK(0.9.5)
63 by robert.ancell at gmail
Build introspection
30
1 by robert.ancell at gmail
Compiles and does something
31
dnl ###########################################################################
32
dnl Dependencies
33
dnl ###########################################################################
34
175 by robert.ancell at gmail
Make ConsoleKit optional
35
AC_CHECK_HEADERS(security/pam_appl.h, [], AC_MSG_ERROR(PAM not found))
97 by robert.ancell at gmail
Check for PAM in build system
36
1517 by Robert Ancell
Handle clearenv() not being defined
37
AC_CHECK_FUNCS(setresgid setresuid clearenv)
1506.1.1 by Matthew Fischer
fixes 999713: setresuid/setresgid don't work on some platforms
38
1 by robert.ancell at gmail
Compiles and does something
39
PKG_CHECK_MODULES(LIGHTDM, [
1710.1.1 by Robert Ancell
Stop generating glib marshals by using glib >= 2.30
40
    glib-2.0 >= 2.30
354 by robert.ancell at canonical
Use GDBus instead of dbus-glib
41
    gio-2.0 >= 2.26
105 by robert.ancell at gmail
Use GDesktopAppInfo for session .desktop files
42
    gio-unix-2.0
123 by robert.ancell at gmail
Support XDM-AUTHENTICATION-1
43
    xdmcp
946 by Robert Ancell
Keep a connection open the the X server. Start a new X server on exit
44
    xcb
1 by robert.ancell at gmail
Compiles and does something
45
])
46
524 by Robert Ancell
Write a basic xserver that handles connects
47
PKG_CHECK_MODULES(GLIB, [
48
    glib-2.0
532 by Robert Ancell
Make the test greeter connect to the X server
49
])
50
692 by Robert Ancell
Make login switch to existing session if already logged in. Make D-Bus interface switch to existing sessions correctly.
51
PKG_CHECK_MODULES(GIO, [
52
    gio-2.0
53
])
54
734 by Robert Ancell
Use gio-unix for test-xserver
55
PKG_CHECK_MODULES(GIO_UNIX, [
56
    gio-unix-2.0
57
])
58
645 by Robert Ancell
Fix linking error with -z,defs
59
PKG_CHECK_MODULES(GOBJECT, [
60
    gobject-2.0
61
])
62
532 by Robert Ancell
Make the test greeter connect to the X server
63
PKG_CHECK_MODULES(XCB, [
64
    xcb
1576.1.54 by Robert Ancell
Unfix some whitespace to match trunk closer
65
])    
1576.1.13 by Robert Ancell
Make Mir support optional
66
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
67
AC_ARG_ENABLE(liblightdm-gobject,
1251 by Robert Ancell
Allow greeters to be disabled in configure flags
68
	AS_HELP_STRING([--enable-liblightdm-gobject],[Enable LightDM client gobject libraries [[default=auto]]]),
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
69
	[enable_liblightdm_gobject=$enableval],
1251 by Robert Ancell
Allow greeters to be disabled in configure flags
70
	[enable_liblightdm_gobject="auto"])
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
71
compile_liblightdm_gobject=no
72
if test x"$enable_liblightdm_gobject" = "xauto"; then
73
    PKG_CHECK_MODULES(LIBLIGHTDM_GOBJECT, [
74
        glib-2.0
354 by robert.ancell at canonical
Use GDBus instead of dbus-glib
75
        gio-2.0 >= 2.26
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
76
        gio-unix-2.0
77
        gobject-2.0
78
        libxklavier
79
        x11
80
    ], compile_liblightdm_gobject=yes, compile_liblightdm_gobject=no)
81
elif test x"$enable_liblightdm_gobject" = "xyes"; then
82
    PKG_CHECK_MODULES(LIBLIGHTDM_GOBJECT, [
83
        glib-2.0
354 by robert.ancell at canonical
Use GDBus instead of dbus-glib
84
        gio-2.0 >= 2.26
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
85
        gio-unix-2.0
86
        gobject-2.0
87
        libxklavier
88
        x11
89
    ])
90
    compile_liblightdm_gobject=yes
91
fi
92
AM_CONDITIONAL(COMPILE_LIBLIGHTDM_GOBJECT, test x"$compile_liblightdm_gobject" != "xno")
60 by robert.ancell at gmail
Make libldmgreeter library
93
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
94
AC_ARG_ENABLE(liblightdm-qt,
1586.2.1 by Michael Terry
initial build support for Qt5
95
	AS_HELP_STRING([--enable-liblightdm-qt],[Enable LightDM client Qt4 libraries [[default=auto]]]),
96
	[enable_liblightdm_qt4=$enableval],
97
	[enable_liblightdm_qt4="auto"])
98
compile_liblightdm_qt4=no
1862.1.1 by Robert Ancell
Don't try to compile liblightdm-qt if liblightdm-gobject will not be compiled
99
if test x"$enable_liblightdm_qt4" = "xyes" -o \( x"$enable_liblightdm_qt4" = "xauto" -a x$compile_liblightdm_gobject = xyes \) ; then
1586.2.1 by Michael Terry
initial build support for Qt5
100
    PKG_CHECK_MODULES(LIBLIGHTDM_QT4, [
314 by robert.ancell at canonical
Add --enable-qt configure option
101
        QtCore
364 by Robert Ancell
Add a QT greeter
102
        QtDBus
1237 by Robert Ancell
Link liblightdm-qt against QtGui
103
        QtGui
1586.2.1 by Michael Terry
initial build support for Qt5
104
    ],
105
    [compile_liblightdm_qt4=yes
106
     AC_CHECK_TOOLS(MOC4, [moc-qt4 moc])
107
     if test x"$(readlink $(which $MOC4))" = xqtchooser; then
108
         MOC4="$MOC4 --qt=qt4"
109
     fi
1862.1.1 by Robert Ancell
Don't try to compile liblightdm-qt if liblightdm-gobject will not be compiled
110
     if test "x$compile_liblightdm_gobject" != xyes; then
111
         AC_MSG_FAILURE(
112
           [liblightdm-gobject is required to compile liblightdm-qt])
113
     fi
1586.2.1 by Michael Terry
initial build support for Qt5
114
    ],
115
    [if test "x$enable_liblightdm_qt4" != xauto; then
116
        AC_MSG_FAILURE(
117
          [--enable-liblightdm-qt was given, but test for Qt4 failed])
118
      fi
119
    ])
120
fi
121
AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT4, test x"$compile_liblightdm_qt4" != "xno")
122
123
AC_ARG_ENABLE(liblightdm-qt5,
124
	AS_HELP_STRING([--enable-liblightdm-qt5],[Enable LightDM client Qt5 libraries [[default=auto]]]),
125
	[enable_liblightdm_qt5=$enableval],
126
	[enable_liblightdm_qt5="auto"])
127
compile_liblightdm_qt5=no
128
if test x"$enable_liblightdm_qt5" != "xno"; then
129
    PKG_CHECK_MODULES(LIBLIGHTDM_QT5, [
130
        Qt5Core
131
        Qt5DBus
132
        Qt5Gui
133
    ],
134
    [compile_liblightdm_qt5=yes
135
     AC_CHECK_TOOLS(MOC5, [moc])
136
     if test x"$(readlink $(which $MOC5))" = xqtchooser; then
137
         MOC5="$MOC5 --qt=qt5"
138
     fi
139
    ],
140
    [if test "x$enable_liblightdm_qt5" != xauto; then
141
        AC_MSG_FAILURE(
142
          [--enable-liblightdm-qt5 was given, but test for Qt5 failed])
143
      fi
144
    ])
145
fi
146
AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT5, test x"$compile_liblightdm_qt5" != "xno")
284 by robert.ancell at canonical
Add libldmgreeter-qt (David Edmundson)
147
1266 by BobMauchin
Add a --disable-tests option
148
AC_MSG_CHECKING(whether to build tests)
149
AC_ARG_ENABLE(tests,
150
        AS_HELP_STRING([--disable-tests], [Disable tests building]),
151
        [], [enable_tests="yes"])
152
AM_CONDITIONAL(COMPILE_TESTS, test x"$enable_tests" != "xno")
153
1 by robert.ancell at gmail
Compiles and does something
154
dnl ###########################################################################
37 by robert.ancell at gmail
Make options configurable
155
dnl Configurable values
156
dnl ###########################################################################
157
895 by Robert Ancell
Use the 'default' session by default
158
USER_SESSION=default
843 by Robert Ancell
Make generic hint fields for greeters
159
AC_ARG_WITH(user-session,
160
            AS_HELP_STRING(--with-user-session=<name>,
161
                           Session to use for user accounts),
54 by robert.ancell at gmail
Fix compile time flags
162
    if test x$withval != x; then
843 by Robert Ancell
Make generic hint fields for greeters
163
        USER_SESSION="$withval"
54 by robert.ancell at gmail
Fix compile time flags
164
    fi
165
)
843 by Robert Ancell
Make generic hint fields for greeters
166
AC_SUBST(USER_SESSION)
167
AC_DEFINE_UNQUOTED(USER_SESSION, "$USER_SESSION", User session)
37 by robert.ancell at gmail
Make options configurable
168
1231 by Robert Ancell
Remove --greeter-session option
169
GREETER_SESSION=default
895 by Robert Ancell
Use the 'default' session by default
170
AC_ARG_WITH(greeter-session,
809 by Robert Ancell
Refactored Display and Greeter classes
171
            AS_HELP_STRING(--with-greeter-session=<session>,
172
                           Greeter session),
57 by robert.ancell at gmail
Make a .theme format
173
    if test x$withval != x; then
809 by Robert Ancell
Refactored Display and Greeter classes
174
        GREETER_SESSION="$withval"
57 by robert.ancell at gmail
Make a .theme format
175
    fi
176
)
809 by Robert Ancell
Refactored Display and Greeter classes
177
AC_SUBST(GREETER_SESSION)
178
AC_DEFINE_UNQUOTED(GREETER_SESSION, "$GREETER_SESSION", Greeter session)
37 by robert.ancell at gmail
Make options configurable
179
987 by Robert Ancell
Add a --with-greeter-user configure option
180
GREETER_USER=lightdm
181
AC_ARG_WITH(greeter-user,
182
            AS_HELP_STRING(--with-greeter-user=<username>,
183
                           User to run greeter as),
184
    if test x$withval != x; then
185
        GREETER_USER="$withval"
186
    fi
187
)
188
AC_SUBST(GREETER_USER)
189
AC_DEFINE_UNQUOTED(GREETER_USER, "$GREETER_USER", User to run greeter as)
190
37 by robert.ancell at gmail
Make options configurable
191
dnl ###########################################################################
1 by robert.ancell at gmail
Compiles and does something
192
dnl Documentation
193
dnl ###########################################################################
194
61 by robert.ancell at gmail
Add some Gtk Doc stuff, can't get it working well though
195
GTK_DOC_CHECK
1494 by Robert Ancell
Add some stub documentation
196
YELP_HELP_INIT
1 by robert.ancell at gmail
Compiles and does something
197
198
dnl ###########################################################################
199
dnl Internationalization
200
dnl ###########################################################################
201
175 by robert.ancell at gmail
Make ConsoleKit optional
202
IT_PROG_INTLTOOL(0.35.0)
986 by Robert Ancell
Fix up translation build system
203
AC_SUBST(GETTEXT_PACKAGE, lightdm)
175 by robert.ancell at gmail
Make ConsoleKit optional
204
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)
1 by robert.ancell at gmail
Compiles and does something
205
206
dnl ###########################################################################
207
dnl Files to generate
208
dnl ###########################################################################
209
649 by Robert Ancell
Get guest account regression test working
210
AC_CONFIG_FILES([
1 by robert.ancell at gmail
Compiles and does something
211
Makefile
5 by robert.ancell at gmail
Install D-Bus service, use system bus
212
data/Makefile
61 by robert.ancell at gmail
Add some Gtk Doc stuff, can't get it working well though
213
doc/Makefile
1494 by Robert Ancell
Add some stub documentation
214
help/Makefile
855 by Robert Ancell
Both libraries are now version 1 and have API and ABI guarantees
215
liblightdm-gobject/liblightdm-gobject-1.pc
297 by robert.ancell at canonical
Renamed libldmgreeter to liblightdm
216
liblightdm-gobject/Makefile
217
liblightdm-qt/Makefile
1639.2.11 by Iain Lane
Merge trunk
218
liblightdm-qt/liblightdm-qt-3.pc
219
liblightdm-qt/liblightdm-qt5-3.pc
1 by robert.ancell at gmail
Compiles and does something
220
po/Makefile.in
221
src/Makefile
503 by Robert Ancell
Start working on tests
222
tests/Makefile
557 by Robert Ancell
Move test harness into src dir
223
tests/src/Makefile
1005.1.1 by Robert Ancell
Remove obsolete chmod
224
])
649 by Robert Ancell
Get guest account regression test working
225
AC_OUTPUT
37 by robert.ancell at gmail
Make options configurable
226
227
dnl ###########################################################################
228
dnl Summary
229
dnl ###########################################################################
230
231
echo "
232
                    Light Display Manager $VERSION
233
                    ===========================
234
175 by robert.ancell at gmail
Make ConsoleKit optional
235
        prefix:                   $prefix
809 by Robert Ancell
Refactored Display and Greeter classes
236
        Greeter session:          $GREETER_SESSION
987 by Robert Ancell
Add a --with-greeter-user configure option
237
        Greeter user:             $GREETER_USER
843 by Robert Ancell
Make generic hint fields for greeters
238
        User session:             $USER_SESSION
321 by robert.ancell at canonical
Add --enable-liblightdm-gobject configure option
239
        liblightdm-gobject:       $compile_liblightdm_gobject
290 by robert.ancell at canonical
State if building with introspection
240
        GObject introspection:    $found_introspection
1586.2.1 by Michael Terry
initial build support for Qt5
241
        liblightdm-qt:            $compile_liblightdm_qt4
242
        liblightdm-qt5:           $compile_liblightdm_qt5
1266 by BobMauchin
Add a --disable-tests option
243
        Enable tests:             $enable_tests
37 by robert.ancell at gmail
Make options configurable
244
"