/[gentoo-x86]/lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch
Gentoo

Contents of /lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Dec 22 12:19:53 2013 UTC (6 years, 7 months ago) by hwoarang
Branch: MAIN
File MIME type: text/x-diff
Add (and fix) upstream patch for optional consolekit support. Thanks to Bombino <teknocratdefunct@riseup.net>. Bug #443666

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 X-Gentoo-Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=443666
2 X-Git-Url: http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde%2Flxdm;a=blobdiff_plain;f=configure.ac;h=9e21a22d893b45f1564e23b12c00a0bf546d95e8;hp=3c540df5cc76aa8c3ef394bae4f0d0cf33bff993;hb=371b018474217bdff1d5108b384fbf0f45aa873d;hpb=f625fd7b1f90caac260422a6c13e0cb12ccf1f96
3
4 Further Changes: Mmove the AC_CHECK_LIB([ck-connector]) inside the 'if' block
5 to avoid checking and enabling ck-connector even if --disable-consolekit was
6 passed.
7
8 Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
9
10 Index: lxdm-0.4.1/configure.ac
11 ===================================================================
12 --- lxdm-0.4.1.orig/configure.ac
13 +++ lxdm-0.4.1/configure.ac
14 @@ -28,8 +28,6 @@ if test "x$USE_PAM" != "xno" ; then
15 fi])
16 fi
17
18 -AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
19 -
20 # Checks for header files.
21 AC_PATH_X
22 AC_CHECK_HEADERS([shadow.h stdlib.h string.h unistd.h utmpx.h])
23 @@ -89,11 +87,22 @@ PKG_CHECK_MODULES(GTK, [$pkg_modules])
24 AC_SUBST(GTK_CFLAGS)
25 AC_SUBST(GTK_LIBS)
26
27 -PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[
28 +
29 +AC_ARG_ENABLE(consolekit,
30 + AC_HELP_STRING([--disable-consolekit],[disable ConsoleKit support]),
31 + [enable_consolekit=$enableval],
32 + [enable_consolekit=yes]
33 +)
34 +
35 +if test "x$enable_consolekit" = "xyes" ; then
36 + AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
37 + PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[
38 AC_SUBST(CONSOLEKIT_CFLAGS)
39 AC_SUBST(CONSOLEKIT_LIBS)],[
40 echo "ConsoleKit devel package not found"
41 ])
42 +fi
43 +
44
45 AC_ARG_ENABLE(password,
46 AC_HELP_STRING([--enable-password],[enable to load autologin password store at config file]),

  ViewVC Help
Powered by ViewVC 1.1.20