Re: [ng-spice] ng-spice_0.0 Comments


To ng-spice@ieee.ing.uniroma1.it
From Manu Rouat <emmanuel.rouat@wanadoo.fr>
Date Sun, 01 Aug 1999 20:44:52 +0200
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Organization la Guilde
References <Pine.LNX.3.96.990801195033.14415A-100000@voyager >
Reply-To ng-spice@ieee.ing.uniroma1.it
Sender rouat@war.wanadoo.com

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: