Changeset 1348

Show
Ignore:
Timestamp:
2005-07-11 01:32:25 (3 years ago)
Author:
conrad
Message:

remove the need to run under --disable-shared to run tests under valgrind,
by using 'libtool --mode=execute valgrind ...".
Thanks to thomasvs for the tip :-)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • liboggz/trunk/configure.ac

    r1334 r1348  
    5656 
    5757# Check for valgrind 
     58VALGRIND_ENVIRONMENT="" 
    5859ac_enable_valgrind=no 
    5960AC_ARG_ENABLE(valgrind-testing, 
     
    6364if test "x${ac_enable_valgrind}" = xyes ; then 
    6465  if test "x${enable_shared}" = xyes ; then 
    65     AC_MSG_WARN([ 
    66 *** You have requested to test under valgrind, but have not disabled the 
    67 *** building of shared libraries. You usually need to do: 
    68 ***   ./configure --disable-shared --enable-valgrind-testing 
    69 *** for Valgrind to produce useful output.]) 
     66    VALGRIND_ENVIRONMENT="libtool --mode=execute " 
    7067  fi 
    7168 
    7269  AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no) 
    7370  if test "x$HAVE_VALGRIND" = xyes ; then 
    74     VALGRIND_ENVIRONMENT="valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100" 
     71    VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100" 
    7572    AC_SUBST(VALGRIND_ENVIRONMENT) 
    7673    TESTS_INFO="Test suite will be run under: