diff options
author | Colin Watson <cjwatson@ubuntu.com> | 2014-02-09 16:09:57 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-10-07 14:27:14 +0100 |
commit | f51fe0c55e54c12db952624e980d18f39c41e581 (patch) | |
tree | 02f5526eaff2259689a4290b2646d0bf1c04f612 /configure.ac | |
parent | aca34215fc0e85d6b49e04f0a3cd0db79732125e (diff) |
Add support for registering ConsoleKit sessions on login
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1450
Last-Updated: 2014-10-07
Patch-Name: consolekit.patch
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7f160f131..f5c65c5a4 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -4113,6 +4113,30 @@ AC_ARG_WITH([kerberos5], | |||
4113 | AC_SUBST([GSSLIBS]) | 4113 | AC_SUBST([GSSLIBS]) |
4114 | AC_SUBST([K5LIBS]) | 4114 | AC_SUBST([K5LIBS]) |
4115 | 4115 | ||
4116 | # Check whether user wants ConsoleKit support | ||
4117 | CONSOLEKIT_MSG="no" | ||
4118 | LIBCK_CONNECTOR="" | ||
4119 | AC_ARG_WITH(consolekit, | ||
4120 | [ --with-consolekit Enable ConsoleKit support], | ||
4121 | [ if test "x$withval" != "xno" ; then | ||
4122 | AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no]) | ||
4123 | if test "$PKGCONFIG" != "no"; then | ||
4124 | AC_MSG_CHECKING([for ck-connector]) | ||
4125 | if $PKGCONFIG --exists ck-connector; then | ||
4126 | CKCON_CFLAGS=`$PKGCONFIG --cflags ck-connector` | ||
4127 | CKCON_LIBS=`$PKGCONFIG --libs ck-connector` | ||
4128 | CPPFLAGS="$CPPFLAGS $CKCON_CFLAGS" | ||
4129 | SSHDLIBS="$SSHDLIBS $CKCON_LIBS" | ||
4130 | AC_MSG_RESULT([yes]) | ||
4131 | AC_DEFINE(USE_CONSOLEKIT, 1, [Define if you want ConsoleKit support.]) | ||
4132 | CONSOLEKIT_MSG="yes" | ||
4133 | else | ||
4134 | AC_MSG_RESULT([no]) | ||
4135 | fi | ||
4136 | fi | ||
4137 | fi ] | ||
4138 | ) | ||
4139 | |||
4116 | # Looking for programs, paths and files | 4140 | # Looking for programs, paths and files |
4117 | 4141 | ||
4118 | PRIVSEP_PATH=/var/empty | 4142 | PRIVSEP_PATH=/var/empty |
@@ -4914,6 +4938,7 @@ echo " MD5 password support: $MD5_MSG" | |||
4914 | echo " libedit support: $LIBEDIT_MSG" | 4938 | echo " libedit support: $LIBEDIT_MSG" |
4915 | echo " Solaris process contract support: $SPC_MSG" | 4939 | echo " Solaris process contract support: $SPC_MSG" |
4916 | echo " Solaris project support: $SP_MSG" | 4940 | echo " Solaris project support: $SP_MSG" |
4941 | echo " ConsoleKit support: $CONSOLEKIT_MSG" | ||
4917 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | 4942 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
4918 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | 4943 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
4919 | echo " BSD Auth support: $BSD_AUTH_MSG" | 4944 | echo " BSD Auth support: $BSD_AUTH_MSG" |