1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
# systemd.m4
# serial 3
dnl Copyright (C) 2023-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
# Sets SYSTEMD_CHOICE to 'yes' or 'no', depending on the preferred use of
# systemd APIs.
AC_DEFUN([gl_SYSTEMD_CHOICE],
[
AC_MSG_CHECKING([whether to use systemd APIs])
AC_ARG_ENABLE([systemd],
[ --enable-systemd use systemd APIs],
[SYSTEMD_CHOICE="$enableval"],
[SYSTEMD_CHOICE=no])
AC_MSG_RESULT([$SYSTEMD_CHOICE])
AC_SUBST([SYSTEMD_CHOICE])
])
# Pre-built package name for the libsystemd library:
# - On Debian and Debian-based systems: libsystemd-dev
# - On Red Hat distributions: systemd-devel
# - Other: https://repology.org/project/systemd/versions
|