Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add systemd socket activation support
- Loading branch information
Showing
2 changed files
with
103 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,7 @@ OPTIONS=( | |
| "android:no" | ||
| "tsdebug:no" | ||
| "gtimer_check:no" | ||
| "libsystemd_daemon:no" | ||
| ) | ||
|
|
||
| # | ||
|
|
@@ -547,6 +548,17 @@ if enabled_or_auto tsdebug; then | |
| enable mpegts_dvb | ||
| fi | ||
|
|
||
| # | ||
| # systemd | ||
| # | ||
| if enabled_or_auto libsystemd_daemon; then | ||
| if check_pkg libsystemd-daemon; then | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
zpon
|
||
| enable libsystemd_daemon | ||
| elif enabled libsystemd_daemon; then | ||
| die "libsystemd-daemon development support not found (use --disable-systemd_daemon)" | ||
| fi | ||
| fi | ||
|
|
||
|
|
||
| # ########################################################################### | ||
| # Write config | ||
|
|
||
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 is not going to work long as apparently the name for the package has been obsoleted starting at systemd 225 see https://packages.debian.org/sid/libsystemd-daemon-dev. So maybe you should also add a direct check for systemd/sd-daemon.h
if enabled_or_auto libsystemd_daemon; then
if check_cc_header 'systemd/sd-daemon' libsystemd_daemon ; then
enable libsystemd_daemon
LDFLAGS="$LDFLAGS -lsystemd"
elif enabled libsystemd_daemon; then
die "libsystemd-daemon development support not found (use --disable-systemd_daemon)"
fi
fi