Commits

ms70 committed e13bc4f

conditionally include svm library sources

  • Participants
  • Parent commits c39602b

Comments (0)

Files changed (2)

File configure.ac

 AM_CONDITIONAL([WITH_TOOLS], [$with_tools])
 AM_CONDITIONAL([WITH_SMILE_TOOLS], [test "x$smile_state" = "xok"])
 AM_CONDITIONAL([WITH_SVM_TOOLS], [test "x$svm_perf_state" = "xok"])
+AM_CONDITIONAL([WITH_SVM_LIBSRC], [test "x$svm_perf_state" = "xok"])
 AM_CONDITIONAL([WITH_VW_TOOLS], [test "x$vowpal_wabbit_state" = "xok"])
 AM_CONDITIONAL([WITH_READLINE_TOOLS], [test "x$readline_state" = "xok"])
 AM_CONDITIONAL([WITH_BOOST_TOOLS], [test "x$boost_state" = "xok"])

File src/Makefile.am

 
 #LDADD = $(LOG4CPP_LIBS) $(SMILE_LIBS) $(SVM_PERF_LIBS) $(PTHREAD_LIBS)
 
+if WITH_SVM_LIBSRC
+libSleipnir_SVM_SOURCES = svm.cpp svmperf.cpp
+libSleipnir_SVM_INCLUDES = svm.h svmi.h svmperf.h
+endif
 libSleipnir_a_SOURCES	=	\
 	annotation.cpp			\
 	annotationobo.cpp		\
 	server.cpp				\
 	statistics.cpp			\
 	stdafx.cpp				\
-	svm.cpp					\
-	svmperf.cpp					\
+	$(libSleipnir_SVM_SOURCES) \
 	vwb.cpp
 include_HEADERS			=	\
 	annotation.h			\
 	statistics.h			\
 	statisticsi.h			\
 	stdafx.h				\
-	svm.h					\
-	svmi.h					\
-	svmperf.h					\
+	$(libSleipnir_SVM_INCLUDES)  \
 	trie.h					\
 	triei.h					\
 	typesi.h				\