mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-11 09:18:20 +03:00
configure: add option for libsystemd
Until now ostree checked for libsystemd and enabled support for it if it found it. This commit changes that behavior by adding an option to enable/disable libsystemd. This is especially useful if one uses a source based distro (like Gentoo/Exherbo), where one wants to avoid such automagic detection of dependencies and prefers switches for that instead. Closes: #1490 Approved by: cgwalters
This commit is contained in:
parent
79fc506284
commit
17db0f15a7
24
configure.ac
24
configure.ac
@ -469,10 +469,26 @@ AC_ARG_WITH(mkinitcpio,
|
|||||||
AM_CONDITIONAL(BUILDOPT_MKINITCPIO, test x$with_mkinitcpio = xyes)
|
AM_CONDITIONAL(BUILDOPT_MKINITCPIO, test x$with_mkinitcpio = xyes)
|
||||||
|
|
||||||
dnl We have separate checks for libsystemd and the unit dir for historical reasons
|
dnl We have separate checks for libsystemd and the unit dir for historical reasons
|
||||||
PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd], [have_libsystemd=yes], [have_libsystemd=no])
|
AC_ARG_WITH(libsystemd,
|
||||||
AM_CONDITIONAL(BUILDOPT_LIBSYSTEMD, test x$have_libsystemd = xyes)
|
AS_HELP_STRING([--without-libsystemd], [Do not use libsystemd]),
|
||||||
AM_COND_IF(BUILDOPT_LIBSYSTEMD,
|
:, with_libsystemd=maybe)
|
||||||
AC_DEFINE([HAVE_LIBSYSTEMD], 1, [Define if we have libsystemd]))
|
|
||||||
|
AS_IF([ test x$with_libsystemd != xno ], [
|
||||||
|
AC_MSG_CHECKING([for libsystemd])
|
||||||
|
PKG_CHECK_EXISTS(libsystemd, have_libsystemd=yes, have_libsystemd=no)
|
||||||
|
AC_MSG_RESULT([$have_libsystemd])
|
||||||
|
AS_IF([ test x$have_libsystemd = xno && test x$with_libsystemd != xmaybe ], [
|
||||||
|
AC_MSG_ERROR([libsystemd is enabled but could not be found])
|
||||||
|
])
|
||||||
|
AS_IF([ test x$have_libsystemd = xyes], [
|
||||||
|
AC_DEFINE([HAVE_LIBSYSTEMD], 1, [Define if we have libsystemd.pc])
|
||||||
|
PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd])
|
||||||
|
with_libsystemd=yes
|
||||||
|
], [
|
||||||
|
with_libsystemd=no
|
||||||
|
])
|
||||||
|
], [ with_libsystemd=no ])
|
||||||
|
AM_CONDITIONAL(BUILDOPT_LIBSYSTEMD, test $with_libsystemd != no)
|
||||||
|
|
||||||
AS_IF([test "x$have_libsystemd" = "xyes"], [
|
AS_IF([test "x$have_libsystemd" = "xyes"], [
|
||||||
with_systemd=yes
|
with_systemd=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user