lxdm-0.4.1-optional-consolekit.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/lxdm;a=patch;h=902438eb83b4ae97d774e4e5f38b46f2d826df2f
  3. X-Git-Url: http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/lxdm;a=patch;h=371b018474217bdff1d5108b384fbf0f45aa873d
  4. Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
  5. Index: lxdm-0.4.1/configure.ac
  6. ===================================================================
  7. --- lxdm-0.4.1.orig/configure.ac
  8. +++ lxdm-0.4.1/configure.ac
  9. @@ -28,8 +28,6 @@ if test "x$USE_PAM" != "xno" ; then
  10. fi])
  11. fi
  12. -AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
  13. -
  14. # Checks for header files.
  15. AC_PATH_X
  16. AC_CHECK_HEADERS([shadow.h stdlib.h string.h unistd.h utmpx.h])
  17. @@ -89,11 +87,22 @@ PKG_CHECK_MODULES(GTK, [$pkg_modules])
  18. AC_SUBST(GTK_CFLAGS)
  19. AC_SUBST(GTK_LIBS)
  20. -PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[
  21. +
  22. +AC_ARG_ENABLE(consolekit,
  23. + AC_HELP_STRING([--disable-consolekit],[disable ConsoleKit support]),
  24. + [enable_consolekit=$enableval],
  25. + [enable_consolekit=yes]
  26. +)
  27. +
  28. +if test "x$enable_consolekit" = "xyes" ; then
  29. + AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
  30. + PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[
  31. AC_SUBST(CONSOLEKIT_CFLAGS)
  32. AC_SUBST(CONSOLEKIT_LIBS)],[
  33. echo "ConsoleKit devel package not found"
  34. ])
  35. +fi
  36. +
  37. AC_ARG_ENABLE(password,
  38. AC_HELP_STRING([--enable-password],[enable to load autologin password store at config file]),