[Mockpp-commits] mockpp/config ac_cxx_boosttest.m4,NONE,1.1
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2006-01-01 10:27:36
|
Update of /cvsroot/mockpp/mockpp/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27489/config Added Files: ac_cxx_boosttest.m4 Log Message: Boost.Test basically running --- NEW FILE: ac_cxx_boosttest.m4 --- AC_DEFUN([EA_CHECK_BOOSTTEST], [ AC_ARG_ENABLE(boostdir, [ --boost-dir directory where the root of the Boost headers is located], [boostdir=NO]) boost_inc_dirs="/usr/include/boost-* /usr/local/include/boost-*" if test x$boostdir != xNO; then boost_inc_dirs="$boost_inc_dirs $boostdir" fi boost_lib_dirs="/usr/lib /usr/local/lib" if test "ac_cv_header_boost_TestSuite_h" != "yes"; then echo "checking for boost/any.hpp at $boost_inc_dirs" EA_FIND_FILE(boost/any.hpp, $boost_inc_dirs, boost_inc, dummy) if test x$boost_inc != xNO; then echo "*******************************************************" echo "found boost at $boost_inc" echo "*******************************************************" EA_EXTRA_INC="$EA_EXTRA_INC -I$boost_inc" AC_DEFINE(HAVE_BOOSTTEST, 1, [Define if you have boost installed.]) else echo "*******************************************************" echo "*** boost includes not found." echo "*******************************************************" AH_TEMPLATE(HAVE_BOOSTTEST, [Define if you have boost installed.]) fi fi echo "checking for libboost_unit_test_framework-*.so at $boost_lib_dirs" EA_FIND_FILE(libboost_unit_test_framework-*.so, $boost_lib_dirs, boost_lib, boost_name) if test x$boost_lib != xNO; then echo "*******************************************************" echo "found boost test library as $boost_name at $boost_lib" echo "*******************************************************" x=${boost_name#lib} echo "x $x" LIBBOOST="-l${x%.so}" echo "LIBBOOST $LIBBOOST" EA_EXTRA_LIB="$EA_EXTRA_LIB -L$boost_lib" else echo "*******************************************************" echo "*** boost unit test framework not found." echo "*******************************************************" fi AC_ARG_ENABLE(boosttest, [ --enable-boosttest use Boost.Test as framework, unless cxxtest selected (no) ], [enable_boosttest=yes]) if test x$boosttest_inc != xNO; then if test x$enable_boosttest = xyes; then echo "*******************************************************" echo "** using boosttest framework" echo "*******************************************************" AC_DEFINE(MOCKPP_USE_BOOSTTEST, 1, [Define to use Boost.Test as framework.]) else echo "*******************************************************" echo "** NOT using boosttest framework" echo "*******************************************************" AH_TEMPLATE(MOCKPP_USE_BOOSTTEST, [Define to use Boost.Test as framework.]) fi fi AM_CONDITIONAL(BOOSTTEST, test x$enable_boosttest = xyes) AC_SUBST(LIBBOOST) ]) |