On 4 August 2018 at 01:42, Chip Davis <cdavis(a)codeweavers.com> wrote:
diff --git a/configure.ac b/configure.ac index 2773a15..7c2a560 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,18 @@ AS_IF([test "x$with_spirv_tools" = "xyes"], HAVE_SPIRV_TOOLS=yes])])
PKG_CHECK_MODULES([XCB], [xcb xcb-keysyms]) +case $host_os in + darwin*|macosx*) + enable_demos_default=no + ;; + *) + enable_demos_default=yes + ;; +esac + +AC_ARG_ENABLE([demos], AS_HELP_STRING([--enable-demos], [Build demo programs]),, + [enable_demos=$enable_demos_default]) +AM_CONDITIONAL(BUILD_DEMOS, [test "x$enable_demos" != "xno"])
The way I'd imagine this working would be to enable the demos if we have XCB, unless they've explicitly been disabled.