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
+1
View File
@@ -935,6 +935,7 @@ if test "x$enable_cluster" = xyes; then
AC_DEFINE([CLUSTER], [], [Spice cluster support]) AC_DEFINE([CLUSTER], [], [Spice cluster support])
LIBS="$LIBS -lpthread" LIBS="$LIBS -lpthread"
fi fi
AM_CONDITIONAL([HAVE_CLUSTER_WANTED], [test "x$enable_cluster" = xyes])
if test "x$enable_expdevices" = xyes; then if test "x$enable_expdevices" = xyes; then
AC_DEFINE([EXP_DEV], [], [Define if we want to enable experimental devices]) AC_DEFINE([EXP_DEV], [], [Define if we want to enable experimental devices])
+6 -2
View File
@@ -94,8 +94,12 @@ libckt_la_SOURCES = \
tfsetp.c \ tfsetp.c \
tranaskq.c \ tranaskq.c \
traninit.c \ traninit.c \
transetp.c \ transetp.c
cluster.c
if HAVE_CLUSTER_WANTED
libckt_la_SOURCES += cluster.c
endif
if PSS_WANTED if PSS_WANTED
-2
View File
@@ -1,6 +1,5 @@
/* Spice hooks */ /* Spice hooks */
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#ifdef CLUSTER
#include "ngspice/inpdefs.h" #include "ngspice/inpdefs.h"
#include "ngspice/cluster.h" #include "ngspice/cluster.h"
#include "ngspice/cktdefs.h" #include "ngspice/cktdefs.h"
@@ -423,4 +422,3 @@ int CLUsync(double time,double *delta, int error){
return 1; return 1;
} }
} }
#endif