Skip to content

Commit 77d343b

Browse files
wmwwlukefromdc
authored andcommitted
Disallow building without X11 support
1 parent 0831806 commit 77d343b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,14 @@ gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE
171171
AC_ARG_ENABLE(x11,
172172
[AC_HELP_STRING([--enable-x11],
173173
[Explicitly enable or disable X11 support
174-
(default is to enable only if X development libraries are detected)
175-
@<:@default=auto:>@])],
174+
(default is to enable only if X development libraries are detected)])],
176175
[enable_x11=$enableval],
177176
[enable_x11=auto])
178177

179178
AC_ARG_ENABLE(wayland,
180179
[AC_HELP_STRING([--enable-wayland],
181180
[Explicitly enable or disable Wayland support
182-
(default is to enable only if Wayland client development library is detected)
183-
@<:@default=auto:>@])],
181+
(default is to enable only if Wayland client development library is detected)])],
184182
[enable_wayland=$enableval],
185183
[enable_wayland=auto])
186184

@@ -214,6 +212,8 @@ AM_CONDITIONAL(ENABLE_X11, [test "x$have_x11" = "xyes"])
214212

215213
if test "x$have_x11" = "xyes"; then
216214
AC_DEFINE(HAVE_X11, 1, [Have the X11 development library])
215+
else
216+
AC_MSG_ERROR([No support yet for non-X11 builds])
217217
fi
218218

219219
if test "x$have_x11" != "xyes" -a "x$have_wayland" != "xyes"; then

0 commit comments

Comments
 (0)