mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Drop libsystemd dependency
Talk to the journal ourselves using sendmsg() instead of linking against libsystemd for sd_journal_sendv(). At the same time, we can also avoid excessive copying. The motivation for dropping the dependency is that we can then use structured logging e.g. in a flatpak sandbox where libsystemd may not be present in the runtime. The code here is inspired by similar code in libvirt.
This commit is contained in:
15
configure.ac
15
configure.ac
@@ -1730,21 +1730,6 @@ if test x$have_libelf = xyes; then
|
||||
AC_DEFINE(HAVE_LIBELF, 1, [Define if libelf is available])
|
||||
fi
|
||||
|
||||
dnl *************************
|
||||
dnl *** check for systemd ***
|
||||
dnl *************************
|
||||
AC_ARG_ENABLE([libsystemd],
|
||||
[AS_HELP_STRING([--disable-libsystemd],
|
||||
[build without libsystemd support])])
|
||||
AS_IF([test "$enable_libsystemd" != "no"],[
|
||||
PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd],
|
||||
[have_libsystemd=yes], [have_libsystemd=no])
|
||||
])
|
||||
|
||||
AS_IF([test "$have_libsystemd" = "yes"],[
|
||||
AC_DEFINE([HAVE_LIBSYSTEMD],[1],[Define if libsystemd is available])
|
||||
])
|
||||
|
||||
dnl ****************************************
|
||||
dnl *** platform dependent source checks ***
|
||||
dnl ****************************************
|
||||
|
Reference in New Issue
Block a user