]> git.alsa-project.org Git - alsa-utils.git/commitdiff
configure: Allow systemd service installation without systemd.pc
authorAchill Gilgenast <achill@achill.org>
Mon, 24 Nov 2025 14:53:04 +0000 (15:53 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Dec 2025 18:20:18 +0000 (19:20 +0100)
If the systemdsystemunitdir got passed anyway as a variable, we don't
need the systemd.pc dependency anymore and allow building without a
systemd build-dependency.

Relevant in Alpine Linux, where we allowed systemd services to be
(sub-)packaged (e.g. for downstreams like postmarketOS), but don't have
systemd pacakged in Alpine itself, yet.

Closes: https://github.com/alsa-project/alsa-utils/pull/309
Signed-off-by: Achill Gilgenast <achill@achill.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
configure.ac

index 4532778983e2b3ee17b48d0ddb7fb3fa64ec26db..00a613ccf4b63c3cb851e5e192120fdcdfbc16f4 100644 (file)
@@ -419,8 +419,8 @@ AC_ARG_WITH([systemdsystemunitdir],
 if test "x$with_systemdsystemunitdir" != xno; then
         AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
 fi
-AM_CONDITIONAL(HAVE_SYSTEMD, [test "$have_min_systemd" = "yes" \
-        -a -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" \
+                             -a "x$with_systemdsystemunitdir" != xno ])
 
 AC_ARG_WITH([asound-state-dir],
         AS_HELP_STRING([--with-asound-state-dir=DIR], [Directory to place asound.state file in]),