]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Treat --with-x[=yes] the same as --with-x=auto
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 1 Mar 2022 14:56:30 +0000 (15:56 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 1 Mar 2022 17:59:00 +0000 (18:59 +0100)
Previously, --with-x would disable the check for X11 libraries, which
was not intended.

configure.ac

index fa75e930ac71c5e567b9c98b68193608c3d777ac..847e95fb809866aaf69c7fdecb369acb01ddeee0 100644 (file)
@@ -1115,7 +1115,7 @@ if test "x$dbus_win" = xyes; then
 
     enable_x11_autolaunch=no
     have_x11=no
-else if test "x$with_x" = xauto; then
+else if test "x$with_x" != xno; then
     PKG_CHECK_MODULES([X], [x11],
             [AC_DEFINE([HAVE_X11], [1], [Define to 1 if you have X11 library])],
             [ have_x11=no ])