From e6362f26075bafd5109f144c91ed87be343901b2 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 1 Jun 2022 21:45:21 -0400 Subject: [PATCH] Display a warning if configuring without any UI. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 755d911..3709434 100644 --- a/configure.ac +++ b/configure.ac @@ -110,3 +110,9 @@ AC_CHECK_PROGS([OPTIPNG], [optipng]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT + +have_ui=false +AM_COND_IF([HAVE_MOTIF], [have_ui=:]) +AS_IF([$have_ui], [], +[AC_MSG_WARN([No user interface is enabled.]) +AC_MSG_WARN([It will not be possible to play the game.])]) -- 2.43.2