Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 590432
Collapse All | Expand All

(-)a/configure.ac (-5 / +3 lines)
Lines 476-507 if test "z$with_suspend_resume" = "z"; then Link Here
476
        else
476
        else
477
                # Fall back to upower
477
                # Fall back to upower
478
                with_suspend_resume="upower"
478
                with_suspend_resume="upower"
479
        fi
479
        fi
480
    fi
480
    fi
481
fi
481
fi
482
482
483
case $with_suspend_resume in
483
case $with_suspend_resume in
484
    upower) ;;
484
    upower)
485
        AC_DEFINE([SUSPEND_RESUME_UPOWER], 1, [Define to 1 to use UPower suspend api])
486
	;;
485
    systemd)
487
    systemd)
486
        PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd >= 209],,
488
        PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd >= 209],,
487
                          [PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd-login >= 183])])
489
                          [PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd-login >= 183])])
488
        AC_DEFINE([SUSPEND_RESUME_SYSTEMD], 1, [Define to 1 to use systemd suspend api])
490
        AC_DEFINE([SUSPEND_RESUME_SYSTEMD], 1, [Define to 1 to use systemd suspend api])
489
        ;;
491
        ;;
490
    consolekit)
492
    consolekit)
491
        AC_DEFINE([SUSPEND_RESUME_CONSOLEKIT], 1, [Define to 1 to use ConsoleKit2 suspend api])
493
        AC_DEFINE([SUSPEND_RESUME_CONSOLEKIT], 1, [Define to 1 to use ConsoleKit2 suspend api])
492
        ;;
494
        ;;
493
    *)
495
    *)
494
        AC_MSG_ERROR(--with-suspend-resume must be one of [upower, systemd, consolekit])
496
        AC_MSG_ERROR(--with-suspend-resume must be one of [upower, systemd, consolekit])
495
        ;;
497
        ;;
496
esac
498
esac
497
AM_CONDITIONAL(SUSPEND_RESUME_UPOWER, test "x$with_suspend_resume" = "xupower")
498
AM_CONDITIONAL(SUSPEND_RESUME_SYSTEMD, test "x$with_suspend_resume" = "xsystemd")
499
AM_CONDITIONAL(SUSPEND_RESUME_CONSOLEKIT, test "x$with_suspend_resume" = "xconsolekit")
500
499
501
# SELinux support
500
# SELinux support
502
AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux=yes|no|auto], [Build with SELinux (default: auto)]),,[with_selinux=auto])
501
AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux=yes|no|auto], [Build with SELinux (default: auto)]),,[with_selinux=auto])
503
if test "$with_selinux" = "yes" -o "$with_selinux" = "auto"; then
502
if test "$with_selinux" = "yes" -o "$with_selinux" = "auto"; then
504
    PKG_CHECK_MODULES(SELINUX, libselinux, [have_selinux=yes], [have_selinux=no])
503
    PKG_CHECK_MODULES(SELINUX, libselinux, [have_selinux=yes], [have_selinux=no])
505
else
504
else
506
    have_selinux=no
505
    have_selinux=no
507
fi
506
fi
508
- 

Return to bug 590432