diff options
author | Colin Watson <cjwatson@ubuntu.com> | 2014-02-09 16:09:57 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-09 23:43:40 +0000 |
commit | 05609b1cb381eafb999214bf4a95138e63abdbf2 (patch) | |
tree | f6adc60829e0310ab4fcafca21d7f1b9d62c88c0 /configure | |
parent | 84589dc348c43ec22b50ede0c2946cf6afd0980d (diff) |
Add support for registering ConsoleKit sessions on login
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1450
Last-Updated: 2013-09-14
Patch-Name: consolekit.patch
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 132 |
1 files changed, 132 insertions, 0 deletions
@@ -738,6 +738,7 @@ with_privsep_user | |||
738 | with_sandbox | 738 | with_sandbox |
739 | with_selinux | 739 | with_selinux |
740 | with_kerberos5 | 740 | with_kerberos5 |
741 | with_consolekit | ||
741 | with_privsep_path | 742 | with_privsep_path |
742 | with_xauth | 743 | with_xauth |
743 | enable_strip | 744 | enable_strip |
@@ -1428,6 +1429,7 @@ Optional Packages: | |||
1428 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter) | 1429 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter) |
1429 | --with-selinux Enable SELinux support | 1430 | --with-selinux Enable SELinux support |
1430 | --with-kerberos5=PATH Enable Kerberos 5 support | 1431 | --with-kerberos5=PATH Enable Kerberos 5 support |
1432 | --with-consolekit Enable ConsoleKit support | ||
1431 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | 1433 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) |
1432 | --with-xauth=PATH Specify path to xauth program | 1434 | --with-xauth=PATH Specify path to xauth program |
1433 | --with-maildir=/path/to/mail Specify your system mail directory | 1435 | --with-maildir=/path/to/mail Specify your system mail directory |
@@ -16375,6 +16377,135 @@ fi | |||
16375 | 16377 | ||
16376 | 16378 | ||
16377 | 16379 | ||
16380 | # Check whether user wants ConsoleKit support | ||
16381 | CONSOLEKIT_MSG="no" | ||
16382 | LIBCK_CONNECTOR="" | ||
16383 | |||
16384 | # Check whether --with-consolekit was given. | ||
16385 | if test "${with_consolekit+set}" = set; then : | ||
16386 | withval=$with_consolekit; if test "x$withval" != "xno" ; then | ||
16387 | if test -n "$ac_tool_prefix"; then | ||
16388 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
16389 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
16390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16391 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16392 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
16393 | $as_echo_n "(cached) " >&6 | ||
16394 | else | ||
16395 | case $PKGCONFIG in | ||
16396 | [\\/]* | ?:[\\/]*) | ||
16397 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
16398 | ;; | ||
16399 | *) | ||
16400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16401 | for as_dir in $PATH | ||
16402 | do | ||
16403 | IFS=$as_save_IFS | ||
16404 | test -z "$as_dir" && as_dir=. | ||
16405 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16407 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
16408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16409 | break 2 | ||
16410 | fi | ||
16411 | done | ||
16412 | done | ||
16413 | IFS=$as_save_IFS | ||
16414 | |||
16415 | ;; | ||
16416 | esac | ||
16417 | fi | ||
16418 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
16419 | if test -n "$PKGCONFIG"; then | ||
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
16421 | $as_echo "$PKGCONFIG" >&6; } | ||
16422 | else | ||
16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16424 | $as_echo "no" >&6; } | ||
16425 | fi | ||
16426 | |||
16427 | |||
16428 | fi | ||
16429 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
16430 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
16431 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
16432 | set dummy pkg-config; ac_word=$2 | ||
16433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16434 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16435 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
16436 | $as_echo_n "(cached) " >&6 | ||
16437 | else | ||
16438 | case $ac_pt_PKGCONFIG in | ||
16439 | [\\/]* | ?:[\\/]*) | ||
16440 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
16441 | ;; | ||
16442 | *) | ||
16443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16444 | for as_dir in $PATH | ||
16445 | do | ||
16446 | IFS=$as_save_IFS | ||
16447 | test -z "$as_dir" && as_dir=. | ||
16448 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16450 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
16451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16452 | break 2 | ||
16453 | fi | ||
16454 | done | ||
16455 | done | ||
16456 | IFS=$as_save_IFS | ||
16457 | |||
16458 | ;; | ||
16459 | esac | ||
16460 | fi | ||
16461 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
16462 | if test -n "$ac_pt_PKGCONFIG"; then | ||
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
16464 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
16465 | else | ||
16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16467 | $as_echo "no" >&6; } | ||
16468 | fi | ||
16469 | |||
16470 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
16471 | PKGCONFIG="no" | ||
16472 | else | ||
16473 | case $cross_compiling:$ac_tool_warned in | ||
16474 | yes:) | ||
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
16476 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
16477 | ac_tool_warned=yes ;; | ||
16478 | esac | ||
16479 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
16480 | fi | ||
16481 | else | ||
16482 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
16483 | fi | ||
16484 | |||
16485 | if test "$PKGCONFIG" != "no"; then | ||
16486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ck-connector" >&5 | ||
16487 | $as_echo_n "checking for ck-connector... " >&6; } | ||
16488 | if $PKGCONFIG --exists ck-connector; then | ||
16489 | CKCON_CFLAGS=`$PKGCONFIG --cflags ck-connector` | ||
16490 | CKCON_LIBS=`$PKGCONFIG --libs ck-connector` | ||
16491 | CPPFLAGS="$CPPFLAGS $CKCON_CFLAGS" | ||
16492 | SSHDLIBS="$SSHDLIBS $CKCON_LIBS" | ||
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16494 | $as_echo "yes" >&6; } | ||
16495 | |||
16496 | $as_echo "#define USE_CONSOLEKIT 1" >>confdefs.h | ||
16497 | |||
16498 | CONSOLEKIT_MSG="yes" | ||
16499 | else | ||
16500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16501 | $as_echo "no" >&6; } | ||
16502 | fi | ||
16503 | fi | ||
16504 | fi | ||
16505 | |||
16506 | fi | ||
16507 | |||
16508 | |||
16378 | # Looking for programs, paths and files | 16509 | # Looking for programs, paths and files |
16379 | 16510 | ||
16380 | PRIVSEP_PATH=/var/empty | 16511 | PRIVSEP_PATH=/var/empty |
@@ -18902,6 +19033,7 @@ echo " MD5 password support: $MD5_MSG" | |||
18902 | echo " libedit support: $LIBEDIT_MSG" | 19033 | echo " libedit support: $LIBEDIT_MSG" |
18903 | echo " Solaris process contract support: $SPC_MSG" | 19034 | echo " Solaris process contract support: $SPC_MSG" |
18904 | echo " Solaris project support: $SP_MSG" | 19035 | echo " Solaris project support: $SP_MSG" |
19036 | echo " ConsoleKit support: $CONSOLEKIT_MSG" | ||
18905 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | 19037 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
18906 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | 19038 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
18907 | echo " BSD Auth support: $BSD_AUTH_MSG" | 19039 | echo " BSD Auth support: $BSD_AUTH_MSG" |