diff options
author | Michael Biebl <biebl@debian.org> | 2014-09-29 23:13:33 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2014-09-30 08:16:53 +0200 |
commit | 31483d84db52016d184ba2c2e36713795d1352ea (patch) | |
tree | fe99d4f9acd5c1b1aabe03a2dd96851534c83aa0 | |
parent | a243eed9f452813d4e8f84f5481e1cf732ee139d (diff) |
Support building against libsystemd library
In systemd v209, the various libraries were merged into a single
libsystemd library [1].
Add support for building against this new library and fall back to the
old library names if not found.
[1] http://lists.freedesktop.org/archives/systemd-devel/2014-February/017146.html
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 3a39b5a..e3125cb 100644 --- a/configure.ac +++ b/configure.ac @@ -145,10 +145,10 @@ PKG_CHECK_MODULES(LIBATASMART, [libatasmart >= 0.17]) AC_SUBST(LIBATASMART_CFLAGS) AC_SUBST(LIBATASMART_LIBS) -PKG_CHECK_MODULES(LIBSYSTEMD_LOGIN, - [libsystemd-login >= 44 libsystemd-daemon], - have_libsystemd_login=yes, - have_libsystemd_login=no) +PKG_CHECK_MODULES(LIBSYSTEMD_LOGIN, [libsystemd >= 209], [have_libsystemd_login=yes], + [PKG_CHECK_MODULES(LIBSYSTEMD_LOGIN, [libsystemd-login >= 44 libsystemd-daemon], + [have_libsystemd_login=yes], + [have_libsystemd_login=no])]) AM_CONDITIONAL(HAVE_LIBSYSTEMD_LOGIN, test x$have_libsystemd_login = xyes) if test "x$have_libsystemd_login" = "xyes"; then AC_DEFINE([HAVE_LIBSYSTEMD_LOGIN], 1, [Define to 1 if libsystemd-login is available]) |