From 9bf093011ae7692c4808d52f540b4be23b89ffcf Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 17 Jul 2018 19:43:54 +0200 Subject: [PATCH] configure.ac: Emit a warning if the C++ bindings are not being built. --- configure.ac | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index 349cdafa..c76ea6a1 100644 --- a/configure.ac +++ b/configure.ac @@ -612,3 +612,24 @@ Enabled language bindings: - Java............................ $BINDINGS_JAVA$sr_report_java _EOF + +# Emit a warning if the C++ bindings are not being built. +AM_COND_IF([BINDINGS_CXX], [], [ +cat >&AS_MESSAGE_FD <<_EOF +=============================================================================== +WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING +=============================================================================== +=== === +=== The libsigrok C++ bindings are not being built since you === +=== are missing one or more dependencies (see above)! === +=== === +=== This means you won't be able to compile frontends that require === +=== the C++ bindings (such as PulseView)! You also won't be able to build === +=== other bindings and frontends using those (such as sigrok-meter)! === +=== === +=============================================================================== +WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING +=============================================================================== + +_EOF +])