From: Bert Vermeulen Date: Sat, 19 Jul 2014 18:20:47 +0000 (+0200) Subject: configure: Add --enable-bindings switch. X-Git-Tag: libsigrok-0.4.0~1239 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6223feeb8ed6f6e525c85f3023195d99dfa1589f;p=libsigrok.git configure: Add --enable-bindings switch. --- diff --git a/configure.ac b/configure.ac index 971f9a7e..cf7e8dc2 100644 --- a/configure.ac +++ b/configure.ac @@ -156,20 +156,25 @@ AC_ARG_ENABLE(libusb, # Language binding '--enable' options -AC_ARG_ENABLE(c++, +AC_ARG_ENABLE(bindings, + AC_HELP_STRING([--enable-bindings], + [build language bindings [default=yes]]), + [BINDINGS_ALL="$enableval"], [BINDINGS_ALL="yes"]) + +AC_ARG_ENABLE(cxx, AC_HELP_STRING([--enable-cxx], [build C++ bindings [default=yes]]), - [BINDINGS_CXX="$enableval"], [BINDINGS_CXX="yes"]) + [BINDINGS_CXX="$enableval"], [BINDINGS_CXX=$BINDINGS_ALL]) AC_ARG_ENABLE(python, AC_HELP_STRING([--enable-python], [build Python bindings [default=yes]]), - [BINDINGS_PYTHON="$enableval"], [BINDINGS_PYTHON="yes"]) + [BINDINGS_PYTHON="$enableval"], [BINDINGS_PYTHON=$BINDINGS_ALL]) AC_ARG_ENABLE(java, AC_HELP_STRING([--enable-java], [build Java bindings [default=yes]]), - [BINDINGS_JAVA="$enableval"], [BINDINGS_JAVA="yes"]) + [BINDINGS_JAVA="$enableval"], [BINDINGS_JAVA=$BINDINGS_ALL]) # Check if the C++ compiler supports the C++11 standard.