[PATCH] enable build support without systemd compatibility libraries

Lennart Poettering mzqohf at 0pointer.de
Wed Sep 3 10:49:43 PDT 2014


On Tue, 02.09.14 09:02, Umut Tezduyar Lindskog (umut at tezduyar.com) wrote:

> systemd 209 merged all the libraries to libsystemd. Old
> libraries can still be enabled with --enable-compat-libs
> switch in systemd but this increases the binary size.
> 
> Implement a fallback library check in case compat libraries
> dont exist.
> ---
>  configure.ac |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index cbaf874..9bee914 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1149,7 +1149,10 @@ else
>      PKG_CHECK_MODULES(SYSTEMD,
>          [libsystemd-login >= 32, libsystemd-daemon >= 32, libsystemd-journal >= 32],
>          have_systemd=yes,
> -        have_systemd=no)
> +        PKG_CHECK_MODULES(SYSTEMD,
> +            [libsystemd >= 209],
> +            have_systemd=yes,
> +            have_systemd=no))
>  fi

Looks good to me (modulo the quoting issues Simon mentioned).

Lennart

-- 
Lennart Poettering, Red Hat


More information about the dbus mailing list