summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2018-08-02 17:29:33 +0000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-07 11:30:36 +1000
commit41f3b4219b9298d9d09b637772c1731b30ec1199 (patch)
treead465ce715483d1d7f623cb7fc98ab6c7e5bb590
parent3250bf173aec0ea6b658d09c75536bf50bb27a0c (diff)
downloadtalos-petitboot-41f3b4219b9298d9d09b637772c1731b30ec1199.tar.gz
talos-petitboot-41f3b4219b9298d9d09b637772c1731b30ec1199.zip
configure: Add check for UI build
Emit configure warning if no UI program is to be built. Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f12e48d..d02c85f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -136,6 +136,13 @@ AM_CONDITIONAL(
[test "x$with_twin_x11" = "xyes" || test "x$with_twin_fbdev" = "xyes"])
AS_IF(
+ [test "x$with_twin_x11" != "xyes" && \
+ test "x$with_twin_fbdev" != "xyes" && \
+ test "x$ax_cv_curses" != "xyes"],
+ [AC_MSG_WARN([ No user interface programs configured. Consider using --with-ncurses, --with-twin-x11 or --with-twin-fbdev'])]
+)
+
+AS_IF(
[test "x$with_twin_x11" = "xyes" || test "x$with_twin_fbdev" = "xyes"],
[PKG_CHECK_MODULES(
[twin],
OpenPOWER on IntegriCloud