Compilation of AliAnalysisGoodies.cxx only if Root was compiled with XML support
[u/mrichter/AliRoot.git] / ANALYSIS / libANALYSIS.pkg
index 8ceb72448b4437fd434098b83f811d65edde1f58..3e4d697ffd80e5e7aa15956bf8fe6812325ee3d8 100644 (file)
@@ -1,15 +1,23 @@
 SRCS = AliAnalysisDataContainer.cxx AliAnalysisDataSlot.cxx \
-       AliAnalysisManager.cxx AliAnalysisTask.cxx AliAnalysisGoodies.cxx \
+       AliAnalysisManager.cxx AliAnalysisTask.cxx \
        AliAnalysisSelector.cxx
 
-HDRS:= $(SRCS:.cxx=.h) 
-
-DHDR= ANALYSISLinkDef.h
-
 CHECKALIEN = $(shell root-config --has-alien)
 ifeq (yes,$(CHECKALIEN))
 PACKCXXFLAGS := $(CXXFLAGS) -DWITHALIEN
 endif
+
+CHECKXML = $(shell root-config --has-xml)
+ifeq (yes,$(CHECKXML))
+PACKCXXFLAGS += $(CXXFLAGS) -DWITHXML
+CINTFLAGS += -DWITHXML
+SRCS += AliAnalysisGoodies.cxx
+endif
+
+HDRS:= $(SRCS:.cxx=.h) 
+
+DHDR= ANALYSISLinkDef.h
+
 EXPORT:=$(SRCS:.cxx=.h)