X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2Fconfigure.ac;h=596519736da62f1b38209534faa2d72c5d821c32;hb=ce5f90bf8f0065bad4063c9160e5e86832f6387a;hp=7e603eafda1e8ad786c722f337b520e6f048a9f2;hpb=652cf9d2a36b292ab1deadb2aa650b8d061ff0d3;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/configure.ac b/HLT/configure.ac index 7e603eafda1..596519736da 100644 --- a/HLT/configure.ac +++ b/HLT/configure.ac @@ -83,11 +83,11 @@ if test "x$have_root" = "x1"; then # TBuffer.h has been made pure virtual in root v5-15-02 and one # has to derive from TBufferFile.h (needed for BASE/AliHLTMessage.h) - AC_CHECK_HEADERS([TBufferFile.h]) + AC_CHECK_HEADER([TBufferFile.h], [], [HAVE_NOT_TBUFFERFILE]) # TView.h has been made pure virtual right after root v5-15-02 and one # has to derive from TView3D.h (needed for TPCLib/OnlineDisplay/AliHLTTPCDisplay3D) - AC_CHECK_HEADERS([TView3D.h]) + AC_CHECK_HEADER([TView3D.h], [], [HAVE_NOT_TVIEW3D]) CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS @@ -253,58 +253,59 @@ if test ! "x$have_aliroot" = "xno" ; then fi dnl - dnl required header files and libraries for modules + dnl ESD supports non-std content dnl - if test ! "x$have_aliroot" = "xno" ; then - # the HLTTPCLib needs to link agains TPCbase and TPCrec - # TPC library for AliTPCParam and AliSimDigits used in - # AliHLTTPCFileHandler.h and AliHLTTPCDisplay.cxx - # from May 07 TPCbase depends on libGui.so - CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC" - have_alitpc=yes - AC_MSG_CHECKING(for required classes in TPC libraries) - if test ! "x$have_alitpc" = "xno" ; then - ALITPC_LIBS="-lGui -lTPCbase -lTPCrec" - LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS" - AC_LINK_IFELSE([AC_LANG_PROGRAM([#include - #include - #include - #include - #include - #include - #include ], - [AliSimDigits dig; - AliTPCParam param; - AliTPCParamSR paramsr; - AliTPCDigitsArray digarray; - AliTPCClustersArray clustarray; - AliTPCcluster clust; - AliTPCClustersRow row])], - [AC_DEFINE(HAVE_ALITPC)], - [have_alitpc=no - ALITPC_LIBS= ]) - fi - AC_MSG_RESULT($have_alitpc) - fi - AC_CHECK_HEADERS([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)]) - AC_CHECK_HEADERS([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)]) + have_esd_nonstd=no + AC_RUN_IFELSE([AC_LANG_PROGRAM([#include + #include + #include + #include ], + [AliESDEvent esd; + esd.CreateStdContent(); + TTree* tree=new TTree("esdTree", "Tree with HLT ESD objects"); + TClonesArray* a=new TClonesArray("AliExternalTrackParam"); + a->SetName("SomeObject"); + esd.AddObject(a); + esd.WriteToTree(tree); + if (!tree->FindBranch("SomeObject")) return 1; + return 0;])], + [have_esd_nonstd=yes], + [AC_DEFINE(HAVE_NOT_ESD_NONSTD)]) + AC_MSG_CHECKING(whether ESD supports non standard content) + AC_MSG_RESULT([$have_esd_nonstd]) - have_tpc_mapping=no - if test ! "x$have_aliroot" = "xno" ; then - # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC - # which is stored in the TPC/mapping/Patchx.data files from - # AliRoot version v4-04-Release (May 2006) - AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available]) - TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping - AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data], - [have_tpc_mapping=yes - AC_SUBST(TPC_PAD_MAPPING_PATH) - AC_DEFINE(HAVE_TPC_MAPPING)], - []) - + dnl + dnl ESD copy function added May 9 2008 rev 25667 + dnl + if test "x$have_esd_nonstd" != "xyes"; then + have_esd_copy=no + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], + [AliESDEvent esd1; + AliESDEvent esd2; + esd2=esd1;])], + [have_esd_copy=yes], + [AC_DEFINE(HAVE_NOT_ESD_COPY)]) + AC_MSG_CHECKING(for ESD assignment operator) + AC_MSG_RESULT([$have_esd_copy]) fi - AC_MSG_CHECKING([for TPC mapping layout]) - AC_MSG_RESULT([$have_tpc_mapping]) + + dnl + dnl AliRawReaderMemory support for multiple buffers added + dnl revision 26829 Jun 2008 + dnl + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/RAW" + have_rawreadermemory_multbuffers=no + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], + [AliRawReaderMemory rr; + rr.AddBuffer(NULL, 0, 0);])], + [have_rawreadermemory_multbuffers=yes], + [AC_DEFINE(HAVE_NOT_ALIRAWREADERMEMORY_ADDBUFFER)]) + AC_MSG_CHECKING(AliRawReaderMemory support for multiple buffers) + AC_MSG_RESULT([$have_rawreadermemory_multbuffers]) + + dnl + dnl required header files and libraries for modules + dnl dnl dnl Check for the interface of AliExternalTrackParam which has been changed @@ -320,6 +321,22 @@ if test ! "x$have_aliroot" = "xno" ; then AC_MSG_CHECKING(for version of AliExternalTrackParam) AC_MSG_RESULT($externaltrackparam_version) + dnl The AliShuttleInterface was changed in rev 29388. Some return types + dnl had been const, now changed according to gcc 4.3 warnings + AC_MSG_CHECKING(for version of AliShuttleInterface.h) + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/" + LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS" + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], + [class dummy : public AliShuttleInterface { + public: + const UInt_t GetStartTimeDCSQuery() {;} + };])], + [AC_DEFINE(SHUTTLE_PRE_REV29388_INTERFACE) + alishuttleinterface_version=pre.rev.29388], + [alishuttleinterface_version=up.to.date]) + AC_MSG_RESULT([$alishuttleinterface_version]) + CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS @@ -471,10 +488,28 @@ AC_ARG_ENABLE(strict, [disable coding convention checks ])], [],[enable_strict=yes]) if test "x$enable_strict" = "xyes" ; then - CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall" + CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall -Wshadow" fi AC_MSG_RESULT([$enable_strict]) +dnl ------------------------------------------------------------------ +AC_MSG_CHECKING([whether to enable component statistics]) +AC_ARG_ENABLE(component-stat, + [AC_HELP_STRING([--enable-component-stat], + [enable component statistics ])], + [],[enable_component_stat=no]) +if test "x$enable_component_stat" = "xyes" ; then + AC_DEFINE(HLT_COMPONENT_STATISTICS) +fi +AC_MSG_RESULT([$enable_component_stat]) + +dnl ------------------------------------------------------------------ +dnl ---- module checks +dnl ------------------------------------------------------------------ +save_CPPFLAGS=$CPPFLAGS +save_LDFLAGS=$LDFLAGS +save_LIBS=$LIBS + dnl ------------------------------------------------------------------ AC_MSG_CHECKING([whether to compile sample library]) AH_TEMPLATE([HLT_SAMPLE],[hlt sample library]) @@ -518,19 +553,17 @@ AC_MSG_RESULT([$enable_util]) dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_TPC],[hlt tpc library]) +ALITPC_LIBS= CHECK_HLTMODULE([tpc], [AliTPCRawStream.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/TPC], - [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], - [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [Gui ANALYSIS STAT], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS], + [TPCbase TPCrec TPCcalib], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...missing.headers" - enable_tpc="no...missing.headers" -elif test "x$have_alitpc" = "xno" ; then - enable_module="no...requires.AliRoot.TPC.libraries" - enable_tpc="no...requires.AliRoot.TPC.libraries" + enable_tpc=$enable_module elif test "x$enable_module" = "xforce"; then enable_tpc="yes" else @@ -538,7 +571,54 @@ else fi if test "x$enable_tpc" = "xyes" ; then + AC_LANG_PUSH(C++) AC_DEFINE(HLT_TPC) + ALITPC_LIBS=$ALIHLTMODULE_LIBS + dnl + dnl Check for functionality in the TPC reconstruction required for online + dnl processing + dnl + have_tpc_hltoffline_rec=no + AC_MSG_CHECKING(for on-line features of TPC offline reconstruction) + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC" + LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS" + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include + #include + #include ], + [AliTPCtrackerMI tracker; + TObjArray* array=NULL; + tracker.LoadClusters(array); + AliTPCclustererMI cl(NULL, NULL); + cl.GetOutputClonesArray();])], + [have_tpc_hltoffline_rec=yes], + [AC_DEFINE(HAVE_NOT_TPCOFFLINE_REC)]) + LIBS=$save_LIBS + AC_MSG_RESULT([$have_tpc_hltoffline_rec]) + + AC_CHECK_HEADER([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)]) + AC_CHECK_HEADER([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)]) + + have_tpc_mapping=no + if test ! "x$have_aliroot" = "xno" ; then + # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC + # which is stored in the TPC/mapping/Patchx.data files from + # AliRoot version v4-04-Release (May 2006) + AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available]) + TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping + AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data], + [have_tpc_mapping=yes + AC_SUBST(TPC_PAD_MAPPING_PATH) + AC_DEFINE(HAVE_TPC_MAPPING)], + []) + + fi + AC_MSG_CHECKING([for TPC mapping layout]) + AC_MSG_RESULT([$have_tpc_mapping]) + AC_LANG_POP(C++) + +else + enable_module=$enable_tpc fi AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes) AC_MSG_CHECKING([whether to compile TPC library]) @@ -557,17 +637,11 @@ CHECK_HLTMODULE([rcu], if test "x$enable_module" = "xmissheader"; then enable_module="no...missing.headers" - enable_rcu="no...missing.headers" -elif test "x$have_alircu" = "xno" ; then - enable_module="no...requires.AliRoot.RAW.libraries" - enable_rcu="no...requires.AliRoot.RAW.libraries" + enable_rcu=$enable_module elif test "x$enable_module" = "xforce"; then enable_rcu="yes" else AC_LANG_PUSH(C++) - save_CPPFLAGS=$CPPFLAGS - save_LDFLAGS=$LDFLAGS - save_LIBS=$LIBS CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS" LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS" @@ -585,6 +659,8 @@ fi if test "x$enable_rcu" = "xyes" ; then AC_DEFINE(HLT_RCU) +else + enable_module=$enable_rcu fi AM_CONDITIONAL(EN_HLT_RCU, test x$enable_rcu = xyes) AC_MSG_CHECKING([whether to compile RCU library]) @@ -598,12 +674,12 @@ ALIPHOS_LIBS= CHECK_HLTMODULE([phos], [], [$ALIROOT_CPPFLAGS], [RAWDatasim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS], - [PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [PHOSUtils PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...requires.AliRoot>v4-05-07" - enable_phos="no...requires.AliRoot>v4-05-07" + enable_phos=$enable_module elif test "x$enable_module" = "xforce"; then enable_phos="yes" else @@ -613,7 +689,7 @@ else save_CPPFLAGS="$CPPFLAGS" # this can not be used as AliCaloRawStream.h indirectly depends on TString.h #AC_CHECK_HEADERS([AliCaloRawStream.h], [have_alicalorawstream=yes]) - CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS" + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/PHOS" AC_MSG_CHECKING([for AliCaloRawStream.h usability]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include #include ], @@ -621,6 +697,13 @@ else [AC_DEFINE(HAVE_ALICALORAWSTREAM) have_alicalorawstream=yes], []) + AC_MSG_RESULT([$have_aliphosrecoparam]) + AC_MSG_CHECKING([for required EMC functionality in AliPHOSRecoParam.h ]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliPHOSRecoParam param; + param.GetEMCClusteringThreshold()])], + [have_aliphosrecoparam=yes], + [AC_DEFINE(HAVE_NOT_PHOSRECOPARAMEMC)]) AC_MSG_RESULT([$have_alicalorawstream]) AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS" @@ -635,6 +718,8 @@ fi if test "x$enable_phos" = "xyes" ; then AC_DEFINE(HLT_PHOS) ALIPHOS_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_phos fi AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes) AC_MSG_CHECKING([whether to compile PHOS library]) @@ -647,13 +732,13 @@ AH_TEMPLATE([HLT_TRD],[hlt trd library]) ALITRD_LIBS= CHECK_HLTMODULE([trd], [], [], - [MLP], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [MLP XMLParser], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], [TRDbase TRDrec TRDsim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...requires.AliRoot>v4-07-Release" - enable_trd="no...requires.AliRoot>v4-07-Release" + enable_trd=$enable_module elif test "x$enable_module" = "xforce"; then enable_trd="yes" else @@ -662,12 +747,16 @@ else AC_LANG_PUSH(C++) save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/TRD" - AC_MSG_CHECKING([for required functions in AliTRDclusterizer]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], - [AliTRDclusterizer c; - c.SetRawVersion(0)])], + # AliTRDclusterizer::SetRawVersion() requires >v4-07-Release + # changed to AliTRDrecoParam::SetSeedingOn() due to revision 26327, Mon Jun 2 2008 + # changed to AliTRDReconstructor::SetStreamLevel() due to revision 27797, Tue Aug 5 2008 + # changed to AliTRDReconstructor::SetClusters() according to revision 28069, Mon Aug 18 2008 + AC_MSG_CHECKING([for required functions in AliTRDReconstructor]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliTRDReconstructor r; + r.SetClusters(0)])], [], - [enable_trd="no...requires.AliRoot>v4-07-Release"]) + [enable_trd="no...requires.AliRoot>v4-14-Release"]) AC_MSG_RESULT([$enable_trd]) AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS" @@ -677,12 +766,44 @@ fi if test "x$enable_trd" = "xyes" ; then AC_DEFINE(HLT_TRD) ALITRD_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_trd fi AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes) AC_MSG_CHECKING([whether to compile TRD library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALITRD_LIBS]) +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_FMD],[hlt fmd library]) + +ALIFMD_LIBS=$ALIHLTMODULE_LIBS +CHECK_HLTMODULE([fmd], + [], [], + [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [FMDbase FMDrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...missing.headers" + enable_fmd=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_fmd="yes" +else + enable_fmd=$enable_module +fi + +if test "x$enable_fmd" = "xyes" ; then + AC_DEFINE(HLT_FMD) + ALIFMD_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_fmd +fi +AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes) +AC_MSG_CHECKING([whether to compile FMD library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIFMD_LIBS]) + dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_MUON],[hlt dimuon library]) @@ -690,13 +811,13 @@ ALIMUON_LIBS= CHECK_HLTMODULE([dimuon], [AliMpExMap.h AliMUONTriggerIO.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/MUON -I$ALICE_ROOT/MUON/mapping], - [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], - [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [MUONcore MUONraw MUONbase MUONgeometry MUONmapping MUONcalib MUONsim MUONtrigger MUONevaluation MUONrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...requires.AliRoot>=v4-08-Release" - enable_muon="no...requires.AliRoot>=v4-08-Release" + enable_muon=$enable_module elif test "x$enable_module" = "xforce"; then enable_muon="yes" else @@ -706,6 +827,29 @@ fi if test "x$enable_muon" = "xyes" ; then AC_DEFINE(HLT_MUON) ALIMUON_LIBS=$ALIHLTMODULE_LIBS + AC_LANG_PUSH(C++) + save_CPPFLAGS="$CPPFLAGS" + + dnl + dnl Check for functionality GetRawStream AliMUONDigitMaker.h + dnl + have_muon_digitmaker_getrawstream=no + AC_MSG_CHECKING(for GetRawStream methods of AliMUONDigitMaker) + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON" + LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS" + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], + [AliMUONDigitMaker dm; + dm.GetRawStreamTracker();])], + [have_muon_digitmaker_getrawstream=yes], + [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)]) + LIBS=$save_LIBS + AC_MSG_RESULT([$have_muon_digitmaker_getrawstream]) + CPPFLAGS="$save_CPPFLAGS" + + AC_LANG_POP(C++) +else + enable_module=$enable_muon fi AM_CONDITIONAL(EN_HLT_MUON, test x$enable_muon = xyes) AC_MSG_CHECKING([whether to compile MUON library]) @@ -724,7 +868,7 @@ CHECK_HLTMODULE([trigger], if test "x$enable_module" = "xmissheader"; then enable_module="no...header.missing" - enable_trigger="no...header.missing" + enable_trigger=$enable_module elif test "x$enable_module" = "xforce"; then enable_trigger="yes" else @@ -734,6 +878,8 @@ fi if test "x$enable_trigger" = "xyes" ; then AC_DEFINE(HLT_TRIGGER) ALITRIGGER_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_trigger fi AM_CONDITIONAL(EN_HLT_TRIGGER, test x$enable_trigger = xyes) AC_MSG_CHECKING([whether to compile Trigger library]) @@ -745,29 +891,77 @@ AH_TEMPLATE([HLT_ITS],[hlt its library]) ALIITS_LIBS= CHECK_HLTMODULE([its], - [], [$ALIROOT_CPPFLAGS], - [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], - [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [AliITSCompressRawDataSDD.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS], + [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [ITSbase ITSrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...header.missing" - enable_its="no...header.missing" + enable_its=$enable_module elif test "x$enable_module" = "xforce"; then enable_its="yes" else enable_its=$enable_module + if test "x$enable_its" = "xyes" ; then + AC_LANG_PUSH(C++) + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS" + # changes in the AliVertexer base class revision 26414, Thu Jun 5 15:36:18 2008 + # require AliVertexer::GetNominalPos() + AC_MSG_CHECKING([for required functions in AliITSVertexer]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliITSVertexerZ v; + v.GetNominalPos()])], + [], + [enable_its="no...requires.AliRoot>v4-13-Release"]) + AC_MSG_RESULT([$enable_its]) + AC_LANG_POP(C++) + CPPFLAGS="$save_CPPFLAGS" + fi fi if test "x$enable_its" = "xyes" ; then AC_DEFINE(HLT_ITS) ALIITS_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_its fi AM_CONDITIONAL(EN_HLT_ITS, test x$enable_its = xyes) AC_MSG_CHECKING([whether to compile ITS library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALIITS_LIBS]) +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_EMCAL],[hlt emcal library]) + +ALIEMCAL_LIBS= +CHECK_HLTMODULE([emcal], + [], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/EMCAL], + [RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [EMCALrec EMCALsim EMCALbase], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...header.missing" + enable_emcal=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_emcal="yes" +else + enable_emcal=$enable_module +fi + +if test "x$enable_emcal" = "xyes" ; then + AC_DEFINE(HLT_EMCAL) + ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_emcal +fi +AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes) +AC_MSG_CHECKING([whether to compile EMCAL library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIEMCAL_LIBS]) + dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_COMP],[hlt comp library]) @@ -780,7 +974,7 @@ CHECK_HLTMODULE([comp], if test "x$enable_module" = "xmissheader"; then enable_module="no...header.missing" - enable_comp="no...header.missing" + enable_comp=$enable_module elif test "x$enable_module" = "xforce"; then enable_comp="yes" else @@ -790,6 +984,8 @@ fi if test "x$enable_comp" = "xyes" ; then AC_DEFINE(HLT_COMP) ALICOMP_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_comp fi AM_CONDITIONAL(EN_HLT_COMP, test x$enable_comp = xyes) AC_MSG_CHECKING([whether to compile comp library]) @@ -856,7 +1052,6 @@ dnl AC_ARG_VAR(DOXYGEN, The Documentation Generator) AC_PATH_PROG(PERL, perl) AC_PATH_PROG(DOXYGEN, doxygen) -AM_CONDITIONAL(HAVE_DOXYGEN, test ! "x$DOXYGEN" = "x") AC_ARG_ENABLE(dot, [AC_HELP_STRING([--enable-dot], [enable dot documentation generator])], @@ -868,6 +1063,31 @@ if test "x$DOT" != "x" && test "x$enable_dot" = "xyes" ; then HAVE_DOT=YES DOT_PATH=`dirname $DOT` fi + +AC_MSG_CHECKING([for documentation mode]) +AC_ARG_ENABLE(doc, + [AC_HELP_STRING([--disable-doc], + [disable documentation build; monolithic build --enable-doc=mono ])], + [],[enable_doc=modules]) + +if test "x$DOXYGEN" = "x" ; then + enable_doc=no.doxygen +elif test "x$enable_doc" = "xyes" ; then + enable_doc=yes +elif test ! "x$enable_doc" = "xmono" && \ + test ! "x$enable_doc" = "xmodules" && \ + test ! "x$enable_doc" = "xno"; then + enable_doc=no + AC_MSG_WARN([unknown option]) +fi +if test "x$enable_doc" = "xno" ; then + enable_doc=off + DOXYGEN= +fi + +AC_MSG_RESULT([$enable_doc]) +AM_CONDITIONAL(MONOLITHIC_DOC, test "x$enable_doc" = "xmono") +AM_CONDITIONAL(HAVE_DOXYGEN, test ! "x$DOXYGEN" = "x") AC_SUBST([HAVE_DOT]) AC_SUBST([DOT_PATH]) @@ -891,6 +1111,7 @@ AC_CONFIG_FILES([Makefile BASE/util/Makefile BASE/interface/Makefile BASE/test/Makefile + BASE/interface/test/Makefile doc/Makefile doc/doxygen.conf doc/doxymodule.conf]) @@ -903,7 +1124,10 @@ if test "x$have_aliroot" != "xno"; then AC_CONFIG_FILES([sim/Makefile rec/Makefile rec/test/Makefile + rec/startAliEVE-barrel-tracks.sh shuttle/Makefile + pendolino/Makefile + benchmark/Makefile ]) fi if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then @@ -929,6 +1153,7 @@ if test "x$enable_tpc" = "xyes"; then TPCLib/test/Makefile TPCLib/mapping2array.cxx TPCLib/OnlineDisplay/Makefile + TPCLib/EVE/Makefile ]) fi @@ -942,6 +1167,11 @@ if test "x$enable_trd" = "xyes"; then AC_CONFIG_FILES([TRD/Makefile]) fi +AC_MSG_NOTICE([compile FMD library: $enable_fmd]) +if test "x$enable_fmd" = "xyes"; then + AC_CONFIG_FILES([FMD/Makefile]) +fi + AC_MSG_NOTICE([compile MUON library: $enable_muon]) if test "x$enable_muon" = "xyes"; then AC_CONFIG_FILES([MUON/Makefile]) @@ -952,6 +1182,11 @@ if test "x$enable_its" = "xyes"; then AC_CONFIG_FILES([ITS/Makefile]) fi +AC_MSG_NOTICE([compile EMCAL library: $enable_emcal]) +if test "x$enable_emcal" = "xyes"; then + AC_CONFIG_FILES([EMCAL/Makefile]) +fi + AC_MSG_NOTICE([compile trigger library: $enable_trigger]) if test "x$enable_trigger" = "xyes"; then AC_CONFIG_FILES([trigger/Makefile])