+#!/bin/bash
+set -x
# Create build directory
rm -rf $WORKSPACE/build
mkdir -p $WORKSPACE/build
PREFIX="$WORKSPACE/build"
-CONF_OPT=""
-
+CONF_OPTS=""
if [ "$conf" = "no_ust" ]
then
export CPPFLAGS="-I$URCU_INCS"
./bootstrap
-CONF_OPTS=""
case "$conf" in
# Currently disabled, ust doesn't seem to be built right for static linking.
#static)
# We only support bindings built with Python 3
export PYTHON="python3"
export PYTHON_CONFIG="/usr/bin/python3-config"
- CONF_OPTS="--enable-python-bindings"
+ CONF_OPTS+=" --enable-python-bindings"
;;
no_ust)
echo "Build without UST support"
- CONF_OPTS="--disable-lttng-ust"
+ CONF_OPTS+=" --disable-lttng-ust"
;;
java_jul)
echo "Build with java-jul UST support"
- CONF_OPTS+=" --enable-java-agent-tests-jul --with-java-classpath=$UST_PREFIX/share/java/*"
+ CONF_OPTS+=" --enable-java-agent-tests-jul --with-java-classpath=$UST_PREFIX/share/java/\*"
+ ;;
+java_log4j)
+ echo "Build with java-log4j UST support"
+ CONF_OPTS+=" --enable-java-agent-tests-log4j --with-java-classpath=/usr/share/java/log4j-1.2.jar"
;;
*)
echo "Standard build"
- CONF_OPTS=""
+ CONF_OPTS+=" "
;;
esac
#
# Make sure to move to the build_path and configure
# before continuing
+echo "**************************************************"
+echo $CONF_OPTS
+echo "**************************************************"
BUILD_PATH=$WORKSPACE
case "$build" in
BUILD_PATH=`mktemp -d`
# Initial configure and generate tarball
- ./configure
+ ./configure $CONF_OPTS
make dist
mkdir -p $BUILD_PATH
if [ $build = "dist" ]; then
rm -rf $BUILD_PATH
fi
+set +x