Add support for the monolithic libsystemd library

In systemd 209, the various small libsystemd-* libraries were merged
into a single libsystemd. This patch adds support for the detecting and
using the merged library when present, while still supporting the split
ones too. If the merged library is found, that will be preferred.

The only downside is that when using the split libraries, things were
only linked against libsystemd-daemon will also be linked against
libsystemd-journal too. Thankfully, that's harmless, and can be worked
around by using a clever linker.

This fixes #299.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
lib/tests/test_log_message: convert misc testcases to use MSG_TESTCASE

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
nvtable: fix nvtable corruption in case an indirect value references itself

Whenever an indirect ref references itself, nvtable lookups become infinite
loops. Fix this by breaking the reference cycle in this case.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
afinet: max packet length for spoof source is set to 1024

If actual packet size is bigger than AFInetDestDriver.spoof_source_maxmsglen,
the packet is truncated.

AFInetDestDriver.spoof_source_maxmsglen is set to 1024
and cannot set via config file at this time.

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
Merge pull request #341 from lbudai/f/truncate-spoof-source

afinet: max packet length for spoof source is set to 1024
afprog: kill program destination before stopping syslog-ng

Stop procedure of syslog-ng is not stopped program destination and it is
running after syslog-ng was stopped. This patch set program group ID to all
child processes of syslog-ng and kill them process that have the same
program gorup ID than syslog-ng before syslog-ng has been stoped.

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
Merge pull request #342 from lbudai/f/fix-prog-dest-respawn

afprog: kill program destination before stopping syslog-ng
Merge pull request #320 from algernon/f/libsystemd

Add support for the monolithic libsystemd library
Merge pull request #328 from balabit/f/fix-segfault-for-self-referencing-values

F/fix segfault for self referencing values