cryb-to/autogen.des

44 lines
750 B
Text
Raw Permalink Normal View History

2014-07-04 11:18:53 +00:00
#!/bin/sh
has() {
which "$@" >/dev/null 2>&1
}
# BullseyeCoverage needs to know exactly which compiler we're using
2016-09-04 14:18:13 +00:00
if has "${CC}" "${CXX}" ; then
echo "using CC=${CC}"
elif has clang clang++ ; then
2014-07-04 11:18:53 +00:00
echo "using Clang"
export CC="${CC:-clang}"
export CXX="${CXX:-clang++}"
elif has gcc g++ ; then
echo "using GCC"
export CC="${CC:-gcc}"
export CXX="${CXX:-g++}"
else
echo "WARNING: using default compiler," \
"coverage analysis may not work"
fi
2016-09-04 14:18:13 +00:00
export CPP="${CPP:-${CC} -E}"
2014-07-04 11:18:53 +00:00
set -e
if has cov01 ; then
2016-01-09 19:23:33 +00:00
cov01 -qu
cov01 -q0
2014-07-04 11:18:53 +00:00
fi
. ./autogen.sh
./configure \
2015-12-14 17:08:22 +00:00
--enable-all \
--enable-openssl-tests \
--enable-rsaref-tests \
2014-07-04 11:18:53 +00:00
--enable-developer-warnings \
--enable-werror \
"$@"
if has cov01 ; then
2016-01-09 19:23:33 +00:00
cov01 -qo
2014-07-04 11:18:53 +00:00
fi