-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Socket Activation for userproxy mode
This way we can provide a user systemd unit that will automatically starts gssproxy in user mode if someone tries to use the userproxy socket. Signed-off-by: Simo Sorce <simo@redhat.com>
- Loading branch information
Showing
6 changed files
with
119 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
dnl A macro to check presence of systemd on the system | ||
AC_DEFUN([AM_CHECK_SYSTEMD], | ||
[ | ||
PKG_CHECK_EXISTS(systemd, | ||
[ HAVE_SYSTEMD=1, AC_SUBST(HAVE_SYSTEMD) ], | ||
[AC_MSG_ERROR([Could not detect systemd presence])] | ||
) | ||
PKG_CHECK_EXISTS([systemd], | ||
[HAVE_SYSTEMD=yes], | ||
[HAVE_SYSTEMD=no]) | ||
dnl older system uses libsystemd | ||
PKG_CHECK_EXISTS([libsystemd], | ||
[HAVE_LIBSYSTEMD=yes], | ||
[HAVE_LIBSYSTEMD=no]) | ||
dnl newer systemd splits libsystemd in slaler libs | ||
AS_IF([test x$HAVE_LIBSYSTEMD = xyes], | ||
[daemon_lib_name=libsystemd], | ||
[daemon_lib_name=libsystemd-daemon]) | ||
AS_IF([test x$HAVE_SYSTEMD = xyes], | ||
[PKG_CHECK_MODULES( | ||
[SYSTEMD_DAEMON], | ||
[$daemon_lib_name], | ||
[AC_DEFINE_UNQUOTED([HAVE_SYSTEMD_DAEMON], 1, | ||
[Build with $daemon_lib_name support])], | ||
[AC_MSG_NOTICE([Build without $daemon_lib_name support])])], | ||
[AC_MSG_NOTICE([Build without $daemon_lib_name support])]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters