Debian Codegraph @

m4/systemd.m4

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