summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config_host/config_features.h.in7
-rw-r--r--configure.ac1
2 files changed, 8 insertions, 0 deletions
diff --git a/config_host/config_features.h.in b/config_host/config_features.h.in
index 7462ba10dc81..38d41fd27d16 100644
--- a/config_host/config_features.h.in
+++ b/config_host/config_features.h.in
@@ -43,6 +43,13 @@
#define HAVE_FEATURE_DESKTOP_GUI_ELEMENTS 0
+/* X11
+ *
+ * Whether we are building code to run in an X11 environment.
+ */
+
+#define HAVE_FEATURE_X11 0
+
/* EXTENSIONS - Whether we have any extension mechanism at all
*
* Primarily intended for non-desktop platforms where supporting
diff --git a/configure.ac b/configure.ac
index 0ec35cf1d065..5960eb71649d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9138,6 +9138,7 @@ dnl ***************************************
WANT_X11="no"
if test $_os != Darwin -a $_os != WINNT -a $_os != Android -a $_os != iOS -a "$enable_headless" != "yes"; then
WANT_X11="yes"
+ AC_DEFINE(HAVE_FEATURE_X11)
fi
AC_MSG_RESULT([$WANT_X11])