Re: [ng-spice] Configure Script


To ng-spice@ieee.ing.uniroma1.it
From Manu Rouat <emmanuel.rouat@wanadoo.fr>
Date Mon, 02 Aug 1999 22:05:08 +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.990802214627.12563A-100000@ieee.ing.uniroma1.it >
Reply-To ng-spice@ieee.ing.uniroma1.it
Sender rouat@war.wanadoo.com

Paolo Nenzi wrote:

> I have written this code, it will work ?
> (note: I have autocon 2.12 you require 2.13 which is in the next
> distribution of Deabian, I have to upgrade my distribution).
> 
> dnl --enable-efence : Compile with the Electric Fence debug library
> AC_ARG_ENABLE(efence,
>     [  --enable-efence          Add efence library for memory allocation
> debug])

ok

> 
> ...
> 
> if test $efence = yes; then
>         AC_CHECK_LIB(efence,main,LIBS="$LIBS
> -lefence",AC_MSG_ERROR(ElectricFence not found))
> fi

do:

if test $enable_efence = yes; then
         AC_CHECK_LIB(efence,main,LIBS="-lefence $LIBS",
AC_MSG_ERROR(ElectricFence not found))
fi

that should do it - put it as LAST test if you want to be sure that efence is 
the first lib
linked in.


manu

Partial thread listing: