rsyslog/devtools/run-configure.sh
Rainer Gerhards 0845ff8e02
CI: add script to do a full CI run
The core ID is to use this script together with pretty generic
buildbot workers. This provides a simple way to load-balance
across the worker pool.
2020-01-11 12:10:48 +01:00

18 lines
752 B
Bash
Executable File

#!/bin/bash
printf "running configure with\nCC:\t$CC\nCFLAGS:\t$CFLAGS\n"
if [ "$RSYSLOG_CONFIGURE_OPTIONS_OVERRIDE" != "" ]; then
RSYSLOG_CONFIGURE_OPTIONS="$RSYSLOG_CONFIGURE_OPTIONS_OVERRIDE"
fi
export CONFIGURE_OPTS_OVERRIDE=
grep "sanitize.*=.*address" <<< "$CFLAGS" >/dev/null
if [ $? -eq 0 ]; then
printf "\n==========================================================\n"
printf "WARNING: address sanitizer requested. libfaketime is not\n"
printf "compatible with it. DISABLED LIBFAKETIME TESTS.\n"
printf "==========================================================\n\n"
export CONFIGURE_OPTS_OVERRIDE=--disable-libfaketime
fi
autoreconf -fvi
./configure $RSYSLOG_CONFIGURE_OPTIONS $RSYSLOG_CONFIGURE_OPTIONS_EXTRA $CONFIGURE_OPTS_OVERRIDE