]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Use AS_IF for system bus socket
authorSimon McVittie <smcv@collabora.com>
Wed, 18 May 2022 14:23:01 +0000 (15:23 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 11 Oct 2022 16:14:11 +0000 (17:14 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
configure.ac

index ecff6a0423a5bae225863566b8b6e3cdfa3c238c..c15ee151a255f071751b2163ceb8dfa3a7c16162 100644 (file)
@@ -1330,14 +1330,15 @@ AS_HELP_STRING([--with-systemduserunitdir=DIR], [Directory for systemd user serv
 AC_SUBST([systemduserunitdir], [$with_systemduserunitdir])
 
 ##### Set up location for system bus socket
-if ! test -z "$with_system_socket"; then
-   DBUS_SYSTEM_SOCKET=$with_system_socket
-else
+
+AS_IF([! test -z "$with_system_socket"],
+   [DBUS_SYSTEM_SOCKET=$with_system_socket],
+   [
    # We don't use runstatedir for this (yet?), because /var/run has been the
    # interoperable system bus socket for 10+ years.
    # See https://bugs.freedesktop.org/show_bug.cgi?id=101628
    DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket
-fi
+   ])
 
 AC_SUBST(DBUS_SYSTEM_SOCKET)
 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_SOCKET,"$DBUS_SYSTEM_SOCKET",[The name of the socket the system bus listens on by default])