From: Uwe Hermann Date: Tue, 17 Jul 2018 17:43:54 +0000 (+0200) Subject: configure.ac: Emit a warning if the C++ bindings are not being built. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9bf093011ae7692c4808d52f540b4be23b89ffcf;p=libsigrok.git configure.ac: Emit a warning if the C++ bindings are not being built. --- 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 +])