mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-24 08:00:44 +02:00
Emit an error when --with-x was given but no X11 libs were found
This commit is contained in:
parent
51e468d828
commit
17c88a8944
1 changed files with 7 additions and 6 deletions
13
configure.ac
13
configure.ac
|
|
@ -1121,12 +1121,13 @@ else if test "x$with_x" != xno; then
|
|||
have_x11=yes
|
||||
DBUS_X_LIBS="$X_LIBS"
|
||||
DBUS_X_CFLAGS="$X_CFLAGS"
|
||||
],
|
||||
[ have_x11=no ])
|
||||
|
||||
if test "x$have_x11" = xno; then
|
||||
AC_MSG_WARN([Couldn't found X11, tried with pkg-config.])
|
||||
fi
|
||||
], [
|
||||
AS_IF([test "x$with_x" = xyes],
|
||||
[AC_MSG_ERROR([Couldn't find X11, tried with pkg-config.])],
|
||||
[AC_MSG_WARN([Couldn't find X11, tried with pkg-config.])]
|
||||
)
|
||||
have_x11=no
|
||||
])
|
||||
else
|
||||
AS_IF([test "x$enable_x11_autolaunch" = "xyes"], [
|
||||
AC_MSG_ERROR([--enable-x11-autolaunch and --without-x are not compatible])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue