Re: [ng-spice] ng-spice_0.0 Comments
Paolo Nenzi wrote:
>
> Hi all,
>
> I have compiled ng-spice_0.0 on a Debian Linux system and it worked (Good
> job Manu)!
>
> Now I would like to do some debugging on the source. I am planning to use
> the "checker" package to detect memory problems. How can I add an
> --with-checker-debug entry in the configure script (and the code to set
> checkergcc as the compiler ?
first, I have commited a bunch of stuff to the cvs , make sure you are
up-to-date.
For your request, something like:
dnl --enable-checker : add --with-checker-debug option to the compiler
AC_ARG_ENABLE(checker,
[ --enable-checker Add checker option for compilation with gcc])
and then (add a few lines to the existing gcc check):
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall "
if test "$enable_checker" = "yes"; then
CFLAGS="$CFLAGS --with-checker-debug "
fi
fi
that should do it.
manu
Partial thread listing: