conditional compilation CLUSTER

This commit is contained in:
Francesco Lannutti 2012-11-17 12:45:41 +01:00 committed by rlar
parent 6f2038bbb4
commit 1a5da55280
3 changed files with 7 additions and 4 deletions

View File

@ -935,6 +935,7 @@ if test "x$enable_cluster" = xyes; then
AC_DEFINE([CLUSTER], [], [Spice cluster support])
LIBS="$LIBS -lpthread"
fi
AM_CONDITIONAL([HAVE_CLUSTER_WANTED], [test "x$enable_cluster" = xyes])
if test "x$enable_expdevices" = xyes; then
AC_DEFINE([EXP_DEV], [], [Define if we want to enable experimental devices])

View File

@ -94,8 +94,12 @@ libckt_la_SOURCES = \
tfsetp.c \
tranaskq.c \
traninit.c \
transetp.c \
cluster.c
transetp.c
if HAVE_CLUSTER_WANTED
libckt_la_SOURCES += cluster.c
endif
if PSS_WANTED

View File

@ -1,6 +1,5 @@
/* Spice hooks */
#include "ngspice/ngspice.h"
#ifdef CLUSTER
#include "ngspice/inpdefs.h"
#include "ngspice/cluster.h"
#include "ngspice/cktdefs.h"
@ -423,4 +422,3 @@ int CLUsync(double time,double *delta, int error){
return 1;
}
}
#endif