;;
esac
-if [ "x$CC" != "x" ]; then
+if [ "x${CC:-}" != "x" ]; then
echo "Selected compiler:"
"$CC" -v
fi
# Get source version from configure script
eval "$(grep '^PACKAGE_VERSION=' ./configure)"
+# Enable dev mode by default for BT 2.0 builds
+export BABELTRACE_DEBUG_MODE=1
+export BABELTRACE_DEV_MODE=1
+export BABELTRACE_MINIMAL_LOG_LEVEL=VERBOSE
+
# Set configure options for each build configuration
CONF_OPTS=""
case "$conf" in
CONF_OPTS="${CONF_OPTS} --enable-python-bindings-doc --enable-python-plugins"
fi
;;
+production)
+ echo "Production build"
+
+ # Unset the developper variables
+ unset BABELTRACE_DEBUG_MODE
+ unset BABELTRACE_DEV_MODE
+ unset BABELTRACE_MINIMAL_LOG_LEVEL
+
+ # Enable the python bindings
+ export PYTHON="python3"
+ export PYTHON_CONFIG="/usr/bin/python3-config"
+ CONF_OPTS="--enable-python-bindings --enable-python-bindings-doc --enable-python-plugins"
+ ;;
*)
echo "Standard build"
CONF_OPTS=""