1 dnl -*- mode: autoconf -*-
4 dnl template for the configuration script for the Alice HLT
5 dnl framework and components
7 dnl ------------------------------------------------------------------
9 dnl Take either the AliRoot tag as version id or the current revision
10 AC_INIT([Alice High Level Trigger] ,
11 m4_esyscmd([url=`svn info 2> /dev/null | grep "URL:" | cut -d: -f3 | sed -e 's|[/]*HLT[/]*$||' | sed -e 's|^[/]*||g' | cut -d '/' -f 4`; \
12 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | cut -d '/' -f 4`; \
13 if test "x$url" != "x"; then echo -n $url; \
14 elif test "x$revision" != "x"; then echo -n $revision ; \
15 elif test -e .revision && test x`cat .revision` != x; then \
18 echo -n invalid-version; \
20 [Matthias.Richter@ift.uib.no],
23 dnl ------------------------------------------------------------------
24 dnl the package from CVS contains the old Makefiles as well. In order to
25 dnl prevent them from becoming overwritten, we require a separate build
27 if test "`dirname $0`" = "." ; then
28 AC_ERROR([please run the script from a separate build directory])
31 dnl ------------------------------------------------------------------
33 AC_PREFIX_DEFAULT(${PWD})
34 AC_CONFIG_SRCDIR(BASE/AliHLTComponent.cxx)
42 AM_CONDITIONAL(STANDALONE_SAMPLELIB, test 0 )
44 dnl ------------------------------------------------------------------
45 dnl A warning posted into the auto-generated files
46 dnl Does NOT concern this file ;-)
47 AUTOGENERATED_WARNING="!!!!!!! DO NOT EDIT THIS FILE !!!!!!"
48 AC_SUBST([AUTOGENERATED_WARNING])
50 dnl ------------------------------------------------------------------
54 ROOT_PATH(, [have_root=1], [AC_ERROR([Stop! The HLT package needs ROOT.])])
55 AM_CONDITIONAL(HAVE_ROOT, test "x$have_root" = "x1" )
57 ROOTBINDIR=`dirname $ROOTEXEC`
58 AC_SUBST([ROOTBINDIR])
60 dnl test for additional required root libraries and headers
62 if test "x$have_root" = "x1"; then
64 save_CPPFLAGS=$CPPFLAGS
67 CPPFLAGS=`echo $save_CPPFLAGS; for i in ${ROOTINCDIR}; do echo -n "-I$i " ; done`
69 # we check for the libSTEER library which is linked to
70 # - the ROOT libs libGeom libMinuit libVMC libEG
71 # - the AliRoot libESD libRAWData (libRAWDatarec from v4-04-Rev-07)
72 # - ROOT libCint needs also libdl
73 # - from Nov 1 2006 TTreeFormula is needed by AliTagAnalysis and requires
75 # - from Jan 07 libESD also depends on libXMLIO
76 # - libSTEER depends on libProofPlayer since Oct 2007 (after v4-07-Release)
77 # - libCDB.so depends on libXMLParser since Mar 11 2009 r 31411
78 ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer XMLParser'
79 for CHECKLIB in $ROOT_CHECKLIBS ; do
80 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}"
81 LIBS="$save_LIBS $ROOTLIBS $ADD_ROOTLIBS"
82 AC_CHECK_LIB([$CHECKLIB],[_init], [ADD_ROOTLIBS="$ADD_ROOTLIBS -l$CHECKLIB"])
85 # TBuffer.h has been made pure virtual in root v5-15-02 and one
86 # has to derive from TBufferFile.h (needed for BASE/AliHLTMessage.h)
87 AC_CHECK_HEADER([TBufferFile.h], [], [HAVE_NOT_TBUFFERFILE])
89 # TView.h has been made pure virtual right after root v5-15-02 and one
90 # has to derive from TView3D.h (needed for TPCLib/OnlineDisplay/AliHLTTPCDisplay3D)
91 AC_CHECK_HEADER([TView3D.h], [], [HAVE_NOT_TVIEW3D])
93 CPPFLAGS=$save_CPPFLAGS
99 dnl ------------------------------------------------------------------
100 # TODO: make this configurable through arguments
101 #Define whether you want to run with ALIROOT or only ROOT
102 AH_TEMPLATE([ALIHLT_USEPACKAGE],[running environment])
103 ALIHLT_USEPACKAGE=ALIROOT
104 #ALIHLT_USEPACKAGE=ROOT
105 #ALIHLT_USEPACKAGE=STANDALONE
106 AC_DEFINE(use_aliroot)
108 CPPFLAGS="$CPPFLAGS ${ROOTCFLAGS}"
109 save_CPPFLAGS=$CPPFLAGS
110 save_LDFLAGS=$LDFLAGS
113 dnl ------------------------------------------------------------------
114 dnl check for AliRoot features
117 AC_ARG_WITH(aliroot,[ --with-aliroot top of the AliRoot installation],
118 [test -d $with_aliroot && ALICE_ROOT=$with_aliroot],
121 if test "x$ALICE_ROOT" != "x" && test -d $ALICE_ROOT ; then
122 dnl ------------------------------------------------------------------
123 dnl Try to estimate the system architecture
124 case $host_os:$host_cpu in
125 linux*:x86_64*) alice_target='linuxx8664gcc' ;;
126 linux*) alice_target='linux' ;;
127 *) alice_target='unknown' ;;
129 if test "x$alice_target" = "xunknown" ; then
130 if test -z $ALICE_TARGET ; then
131 AC_MSG_ERROR([Can not estimate system architecture.
132 To avoid the problem, set the ALICE_TARGET variable appropriately.
133 Please send the following information to Matthias.Richter@ift.uib.no:
134 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
136 AC_MSG_NOTICE([Unknown system architecture.
137 Please send the following information to Matthias.Richter@ift.uib.no:
138 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
141 if test "x$ALICE_TARGET" != "x" && test "x$ALICE_TARGET" != "x$alice_target" ; then
142 AC_MSG_WARN([The ALICE_TARGET variable does not match your current system
143 overriding $ALICE_TARGET by $alice_target])
145 ALICE_TARGET=$alice_target
147 ALIROOTBINDIR=${ALICE_ROOT}/bin/tgt_${ALICE_TARGET}
148 ALIROOTLIBDIR=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}
149 ALIROOTINCDIR=${ALICE_ROOT}/include
150 test -d ${ALIROOTBINDIR} || AC_MSG_WARN([can not find AliRoot binary directory $ALIROOTBINDIR])
151 test -d ${ALIROOTLIBDIR} || AC_MSG_WARN([can not find AliRoot library directory $ALIROOTLIBDIR])
152 test -d ${ALIROOTINCDIR} || AC_MSG_WARN([can not find AliRoot include directory $ALIROOTINCDIR])
155 AC_MSG_CHECKING([for AliRoot])
156 if test "x$ALICE_ROOT" != "x" \
157 && test -d ${ALIROOTBINDIR} \
158 && test -d ${ALIROOTLIBDIR} \
159 && test -d ${ALIROOTINCDIR}; then
160 have_aliroot=$ALICE_ROOT
166 AC_MSG_RESULT([$have_aliroot])
168 if test ! "x$have_aliroot" = "xno" ; then
169 ALIROOT_CPPFLAGS="-I${ALIROOTINCDIR} -I${ALICE_ROOT}/RAW"
170 ALIROOT_LDFLAGS="-L${ALIROOTLIBDIR}"
171 ALIROOT_LIBS="$ADD_ROOTLIBS"
172 save_CPPFLAGS=$CPPFLAGS
173 save_LDFLAGS=$LDFLAGS
175 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
176 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
178 # check for certain AliRoot libraries/files/features
179 # libSTEERBase present since Aug 7 2007
180 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
182 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
184 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
186 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
188 # CBD library is present since AliRoot version v4-05-00 (02.06.2006)
189 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
191 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
193 # splitted RAW libraries since AliRoot version v4-04-Rev-07 (09.08.2006)
195 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
197 AC_CHECK_LIB([$CHECKLIB],[_init],
198 [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"
199 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lESD -lSTEER"
201 AC_CHECK_LIB([$CHECKLIB],[_init],
202 [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"
203 have_alirawdata=$CHECKLIB])],
204 [# second pass with -RAWData
206 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $CHECKLIB -lSTEER"
207 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRawReaderMemory.h>
208 #include <AliRawReaderFile.h>
209 #include <AliRawReaderDate.h>
210 #include <AliRawReaderRoot.h>],
211 [AliRawReaderMemory mreader;
212 AliRawReaderFile freader;
213 AliRawReaderDate dreader(NULL,0);
214 AliRawReaderRoot rreader(NULL,0);])],
215 [ALIROOT_LIBS="$ALIROOT_LIBS $CHECKLIB"
216 have_alirawdata=$CHECKLIB],
217 [have_alirawdata=no])
218 ]) dnl AC_CHECK_LIB RAWDatabase
219 AC_MSG_CHECKING([for AliRawReader classes in RAWData libraries])
220 AC_MSG_RESULT([$have_alirawdata])
222 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lSTEER"
224 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
226 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
228 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"],[have_aliroot=no])
231 dnl check whether AliLog supports notification callback
233 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
234 have_alilog_notification=no
235 if test ! "x$have_aliroot" = "xno" ; then
236 AC_MSG_CHECKING([whether AliLog supports notification callback])
237 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliLog.h>],
238 [AliLog::AliLogNotification fct])],
239 [have_alilog_notification=yes],
240 [AC_DEFINE(NO_ALILOG_NOTIFICATION)])
241 AC_MSG_RESULT([$have_alilog_notification])
244 if test "x$have_aliroot" = "xno" ; then
245 # 2007-08-18 dont reset ALIROOT_CPPFLAGS in order to allow compilation
246 # but library dependencies might not be resolved completely
248 AC_MSG_WARN([some of the AliRoot library dependencies are not resolved.
249 This can happen from time to time due to development in AliRoot. You can
250 force compilation of detector libs by --enable-<detector>, but be aware
251 of unresolved references at runtime.])
252 AC_MSG_WARN([ ------------------------------------------ ])
253 AC_MSG_WARN([ Report this to $PACKAGE_BUGREPORT ])
254 AC_MSG_WARN([ please include config.log ])
255 AC_MSG_WARN([ ------------------------------------------ ])
261 dnl ESD supports non-std content
264 AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <AliESDEvent.h>
265 #include <AliExternalTrackParam.h>
267 #include <TClonesArray.h>],
269 esd.CreateStdContent();
270 TTree* tree=new TTree("esdTree", "Tree with HLT ESD objects");
271 TClonesArray* a=new TClonesArray("AliExternalTrackParam");
272 a->SetName("SomeObject");
274 esd.WriteToTree(tree);
275 if (!tree->FindBranch("SomeObject")) return 1;
277 [have_esd_nonstd=yes],
278 [AC_DEFINE(HAVE_NOT_ESD_NONSTD)])
279 AC_MSG_CHECKING(whether ESD supports non standard content)
280 AC_MSG_RESULT([$have_esd_nonstd])
283 dnl ESD copy function added May 9 2008 rev 25667
285 if test "x$have_esd_nonstd" != "xyes"; then
287 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliESDEvent.h>],
292 [AC_DEFINE(HAVE_NOT_ESD_COPY)])
293 AC_MSG_CHECKING(for ESD assignment operator)
294 AC_MSG_RESULT([$have_esd_copy])
298 dnl AliRawReaderMemory support for multiple buffers added
299 dnl revision 26829 Jun 2008
301 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/RAW"
302 have_rawreadermemory_multbuffers=no
303 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRawReaderMemory.h>],
304 [AliRawReaderMemory rr;
305 rr.AddBuffer(NULL, 0, 0);])],
306 [have_rawreadermemory_multbuffers=yes],
307 [AC_DEFINE(HAVE_NOT_ALIRAWREADERMEMORY_ADDBUFFER)])
308 AC_MSG_CHECKING(AliRawReaderMemory support for multiple buffers)
309 AC_MSG_RESULT([$have_rawreadermemory_multbuffers])
312 dnl required header files and libraries for modules
316 dnl Check for the interface of AliExternalTrackParam which has been changed
317 dnl in revision 1.17 of AliExternalTrackParam.h (AliRoot version v4-05-04
319 externaltrackparam_version=1
320 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliExternalTrackParam.h>],
321 [AliExternalTrackParam trackparam;
322 Double_t param[[5]]; Double_t covar[[15]];
323 trackparam.Set(0., 0., param, covar);])],
324 [externaltrackparam_version=2],
325 [AC_DEFINE(EXTERNALTRACKPARAM_V1)])
326 AC_MSG_CHECKING(for version of AliExternalTrackParam)
327 AC_MSG_RESULT($externaltrackparam_version)
329 dnl The AliShuttleInterface was changed in rev 29388. Some return types
330 dnl had been const, now changed according to gcc 4.3 warnings
331 AC_MSG_CHECKING(for version of AliShuttleInterface.h)
332 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/"
333 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
334 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
335 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliShuttleInterface.h>],
336 [class dummy : public AliShuttleInterface {
338 const UInt_t GetStartTimeDCSQuery() {;}
340 [AC_DEFINE(SHUTTLE_PRE_REV29388_INTERFACE)
341 alishuttleinterface_version=pre.rev.29388],
342 [alishuttleinterface_version=up.to.date])
343 AC_MSG_RESULT([$alishuttleinterface_version])
345 CPPFLAGS=$save_CPPFLAGS
346 LDFLAGS=$save_LDFLAGS
348 fi # if test ! "x$have_aliroot" = "xno"
351 AC_SUBST([ALICE_ROOT])
352 AC_SUBST([ALIROOT_CPPFLAGS])
353 AC_SUBST([ALIROOT_LDFLAGS])
354 AC_SUBST([ALIROOTBINDIR])
355 AC_SUBST([ALIROOTLIBDIR])
356 AC_SUBST([ALIROOT_LIBS])
357 AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes)
359 HLTBASE_CPPFLAGS='-I${top_srcdir}/BASE'
361 AC_SUBST([HLTBASE_CPPFLAGS])
362 AC_SUBST([HLTBASE_LDFLAGS])
364 dnl ------------------------------------------------------------------
365 dnl check for the HLT PubSub Framework
366 dnl namely for the existence of the HOMER library
367 dnl from Sep 2007, the HOMER lib has been incorporated into the alice-hlt
368 dnl package. It os though possible to choose an external. library
369 dnl In order to make the origni of the HOMER lib clear, the one in AliRoot
370 dnl got the name libAliHLTHOMER
371 AC_MSG_CHECKING([for HLT PubSub Framework])
372 AC_ARG_WITH(pubsub, [installation path of the HLT PubSub framework],
374 [ test -n $ALIHLT_DC_DIR && with_pubsub=$ALIHLT_DC_DIR ])
375 if test -z $with_pubsub || ! test -d $with_pubsub ; then
378 AC_MSG_RESULT([$with_pubsub])
382 AH_TEMPLATE([HAVE_HOMERREADER],[the HLT PubSub Homer Reader interface])
383 if test "x$with_pubsub" != "xno" ; then
384 save_CPPFLAGS=$CPPFLAGS
385 save_LDFLAGS=$LDFLAGS
387 # currently the different versions of the HLT PubSub framework have a different
389 if test -d ${with_pubsub}/include/HOMER ; then
390 # the 'early' location of the include files with separated HOMER sub dirs
391 HOMER_INCDIRS="${with_pubsub}/include/HOMER ${with_pubsub}/include/HOMER/reader"
392 elif test -d ${with_pubsub}/include/Util/HOMER ; then
393 # location for HLT Framework versions after Sep 2006
394 HOMER_INCDIRS="${with_pubsub}/include/Util/HOMER"
395 elif test -d ${with_pubsub}/src/Util/HOMER/include ; then
396 # fall back if include files were not installed (versions after Sep 06)
397 HOMER_INCDIRS="${with_pubsub}/src/Util/HOMER/include"
399 # fall back if include files were not installed (versions before Sep 06)
400 HOMER_INCDIRS="${with_pubsub}/src/Util/HOMER/reader/include ${with_pubsub}/src/Util/HOMER/data/include"
402 HOMER_CPPFLAGS=`for i in ${HOMER_INCDIRS}; do echo -n "-I$i " ; done`
404 AC_ARG_ENABLE(pubsub-debug,
405 [AC_HELP_STRING([--disable-pubsub-debug],
406 [force the production version of the PubSub framework])],
407 [],[enable_pubsub_debug=yes])
409 HOMER_TARGET="`uname -s`-`uname -m`"
410 AC_MSG_CHECKING([for HLT PubSub Framework release type])
411 if test -d "${with_pubsub}/lib/${HOMER_TARGET}-release" ; then
412 homer_type="production"
413 HOMER_TARGET="${HOMER_TARGET}-release"
414 elif test "x$enable_pubsub_debug" = "xyes" && test -d "${with_pubsub}/lib/${HOMER_TARGET}-debug" ; then
416 HOMER_TARGET="${HOMER_TARGET}-debug"
418 AC_MSG_RESULT([${homer_type}])
419 HOMERREADER_HEADER=HOMERReader.h
420 HOMER_BINDIR="${with_pubsub}/bin/${HOMER_TARGET}"
421 HOMER_LIBDIR="${with_pubsub}/lib/${HOMER_TARGET}"
422 HOMER_LDFLAGS="-L${HOMER_LIBDIR}"
423 CPPFLAGS="$save_CPPFLAGS $HOMER_CPPFLAGS"
424 LDFLAGS="$save_LDFLAGS $HOMER_LDFLAGS"
428 AC_CHECK_HEADER([$HOMERREADER_HEADER],
429 [ AC_CHECK_LIB([HOMER],[_init],
431 HOMER_LIBS="-lHOMER"],
432 [ AC_CHECK_LIB([HOMERReader],[_init],
434 HOMER_LIBS="-lHOMERReader"])])
435 LIBS="$LIBS $HOMER_LIBS"
436 AC_MSG_CHECKING([version of HOMER library])
437 dnl The Homer library has no versioning, so we do our own
438 dnl version description
439 dnl ----------------------------------------------------------------------
440 dnl 1 inintial version
441 dnl 2 GetBlockStatusFlags added to the interface
442 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <HOMERReader.h>],
443 [HOMERReader reader("dummy", 0);
444 reader.GetBlockStatusFlags(0);])],
447 AC_MSG_RESULT([$HOMER_VERSION])
449 [HOMERREADER_HEADER=]) #AC_CHECK_HEADER([$HOMERREADER_HEADER])
453 dnl no pubsub version defined, check if the HOMER lib is available in AliRoot
455 HOMER_CPPFLAGS="-I`(cd $topdir; pwd)`/BASE/HOMER"
456 HOMERREADER_HEADER=AliHLTHOMERReader.h
457 HOMER_INBUILT_LIB=`pwd`/BASE/HOMER/libAliHLTHOMER.la
463 if test "x$with_homer" = "xno" ; then
468 HOMER_CPPFLAGS="$HOMER_CPPFLAGS -DHOMER_VERSION=$HOMER_VERSION"
469 AC_DEFINE(HAVE_HOMERREADER)
471 CPPFLAGS="$save_CPPFLAGS"
472 LDFLAGS="$save_LDFLAGS"
475 AC_SUBST([HOMERREADER_HEADER])
476 AC_SUBST([HOMER_INBUILT_LIB])
477 AC_SUBST([HOMER_CPPFLAGS])
478 AC_SUBST([HOMER_LDFLAGS])
479 AC_SUBST([HOMER_LIBDIR])
480 AC_SUBST([HOMER_BINDIR])
481 AC_SUBST([HOMER_LIBS])
483 dnl ------------------------------------------------------------------
485 [AC_HELP_STRING([--disable-all],
486 [disable all detector modules, individual modules can be switched on by --enable-det])],
487 [disable_all=yes],[])
489 dnl ------------------------------------------------------------------
490 AC_MSG_CHECKING([whether to impose strict coding conventions])
491 AC_ARG_ENABLE(strict,
492 [AC_HELP_STRING([--disable-strict],
493 [disable coding convention checks ])],
494 [],[enable_strict=yes])
495 if test "x$enable_strict" = "xyes" ; then
496 CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall -Wshadow"
498 AC_MSG_RESULT([$enable_strict])
500 dnl ------------------------------------------------------------------
501 AC_MSG_CHECKING([whether to enable component statistics])
502 AC_ARG_ENABLE(component-stat,
503 [AC_HELP_STRING([--enable-component-stat],
504 [enable component statistics ])],
505 [],[enable_component_stat=no])
506 if test "x$enable_component_stat" = "xyes" ; then
507 AC_DEFINE(HLT_COMPONENT_STATISTICS)
509 AC_MSG_RESULT([$enable_component_stat])
511 dnl ------------------------------------------------------------------
512 dnl ---- module checks
513 dnl ------------------------------------------------------------------
514 save_CPPFLAGS=$CPPFLAGS
515 save_LDFLAGS=$LDFLAGS
518 dnl ------------------------------------------------------------------
519 AC_MSG_CHECKING([whether to compile sample library])
520 AH_TEMPLATE([HLT_SAMPLE],[hlt sample library])
521 AC_ARG_ENABLE(sample,
522 [AC_HELP_STRING([--disable-sample],
523 [compile the sample library ])],
525 [if test "x$have_aliroot" = "xno" ; then
526 enable_sample="no...requires.AliRoot"
532 if test "x$enable_sample" = "xyes" ; then
533 AC_DEFINE(HLT_SAMPLE)
535 AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes)
536 AC_MSG_RESULT([$enable_sample])
538 dnl ------------------------------------------------------------------
539 AC_MSG_CHECKING([whether to compile util library])
540 AH_TEMPLATE([HLT_UTIL],[HLT utility library])
542 [AC_HELP_STRING([--disable-util],
543 [compile the util library ])],
545 [if test "x$have_aliroot" = "xno" ; then
546 enable_util="no...requires.AliRoot"
552 if test "x$enable_util" = "xyes" ; then
555 AM_CONDITIONAL(EN_HLT_UTIL, test x$enable_util = xyes)
556 AC_MSG_RESULT([$enable_util])
558 dnl ------------------------------------------------------------------
559 AH_TEMPLATE([HLT_TPC],[hlt tpc library])
562 CHECK_HLTMODULE([tpc],
564 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/TPC],
565 [Gui ANALYSIS STAT], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS],
566 [TPCbase TPCrec TPCcalib], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
567 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
569 if test "x$enable_module" = "xmissheader"; then
570 enable_module="no...missing.headers"
571 enable_tpc=$enable_module
572 elif test "x$enable_module" = "xforce"; then
575 enable_tpc=$enable_module
578 if test "x$enable_tpc" = "xyes" ; then
581 ALITPC_LIBS=$ALIHLTMODULE_LIBS
583 dnl Check for functionality in the TPC reconstruction required for online
586 have_tpc_hltoffline_rec=no
587 AC_MSG_CHECKING(for on-line features of TPC offline reconstruction)
588 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC"
589 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
590 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
591 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliTPCtrackerMI.h>
592 #include <AliTPCclustererMI.h>
593 #include <TObjArray.h>],
594 [AliTPCtrackerMI tracker;
595 TObjArray* array=NULL;
596 tracker.LoadClusters(array);
597 AliTPCclustererMI cl(NULL, NULL);
598 cl.GetOutputClonesArray();])],
599 [have_tpc_hltoffline_rec=yes],
600 [AC_DEFINE(HAVE_NOT_TPCOFFLINE_REC)])
602 AC_MSG_RESULT([$have_tpc_hltoffline_rec])
604 AC_CHECK_HEADER([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)])
605 AC_CHECK_HEADER([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)])
608 if test ! "x$have_aliroot" = "xno" ; then
609 # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC
610 # which is stored in the TPC/mapping/Patchx.data files from
611 # AliRoot version v4-04-Release (May 2006)
612 AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available])
613 TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping
614 AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data],
615 [have_tpc_mapping=yes
616 AC_SUBST(TPC_PAD_MAPPING_PATH)
617 AC_DEFINE(HAVE_TPC_MAPPING)],
621 AC_MSG_CHECKING([for TPC mapping layout])
622 AC_MSG_RESULT([$have_tpc_mapping])
626 enable_module=$enable_tpc
628 AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
629 AC_MSG_CHECKING([whether to compile TPC library])
630 AC_MSG_RESULT([$enable_module])
631 AC_SUBST([ALITPC_LIBS])
633 dnl ------------------------------------------------------------------
634 AH_TEMPLATE([HLT_RCU],[hlt rcu library])
636 CHECK_HLTMODULE([rcu],
638 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/RAW],
639 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
640 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
641 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
643 if test "x$enable_module" = "xmissheader"; then
644 enable_module="no...missing.headers"
645 enable_rcu=$enable_module
646 elif test "x$enable_module" = "xforce"; then
650 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
651 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
652 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
653 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliAltroDecoder.h>],
654 [AliAltroDecoder decoder;
655 decoder.CopyBackward(NULL, 0);])],
656 [enable_rcu=$enable_module],
657 [enable_module="no...requires.AliRoot>v4-10-Release"
658 enable_rcu="no...requires.AliRoot>v4-10-Release"])
659 CPPFLAGS=$save_CPPFLAGS
660 LDFLAGS=$save_LDFLAGS
665 if test "x$enable_rcu" = "xyes" ; then
668 enable_module=$enable_rcu
670 AM_CONDITIONAL(EN_HLT_RCU, test x$enable_rcu = xyes)
671 AC_MSG_CHECKING([whether to compile RCU library])
672 AC_MSG_RESULT([$enable_module])
673 AC_SUBST([ALIRCU_LIBS])
675 dnl ------------------------------------------------------------------
676 AH_TEMPLATE([HLT_PHOS],[hlt phos library])
679 CHECK_HLTMODULE([phos],
680 [], [$ALIROOT_CPPFLAGS],
681 [RAWDatasim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS],
682 [PHOSUtils PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
683 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
685 if test "x$enable_module" = "xmissheader"; then
686 enable_module="no...requires.AliRoot>v4-05-07"
687 enable_phos=$enable_module
688 elif test "x$enable_module" = "xforce"; then
691 have_alicalorawstream=no
692 if test ! "x$have_aliroot" = "xno" ; then
694 save_CPPFLAGS="$CPPFLAGS"
695 # this can not be used as AliCaloRawStream.h indirectly depends on TString.h
696 #AC_CHECK_HEADERS([AliCaloRawStream.h], [have_alicalorawstream=yes])
697 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/PHOS"
698 AC_MSG_CHECKING([for AliCaloRawStream.h usability])
699 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <TString.h>
700 #include <AliCaloRawStream.h>],
702 [AC_DEFINE(HAVE_ALICALORAWSTREAM)
703 have_alicalorawstream=yes],
705 AC_MSG_RESULT([$have_aliphosrecoparam])
706 AC_MSG_CHECKING([for required EMC functionality in AliPHOSRecoParam.h ])
707 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliPHOSRecoParam.h>],
708 [AliPHOSRecoParam param;
709 param.GetEMCClusteringThreshold()])],
710 [have_aliphosrecoparam=yes],
711 [AC_DEFINE(HAVE_NOT_PHOSRECOPARAMEMC)])
712 AC_MSG_RESULT([$have_alicalorawstream])
714 CPPFLAGS="$save_CPPFLAGS"
716 if test "x$have_alicalorawstream" != "xyes"; then
717 enable_phos="no...requires.AliRoot>v4-05-07"
719 enable_phos=$enable_module
723 if test "x$enable_phos" = "xyes" ; then
725 ALIPHOS_LIBS=$ALIHLTMODULE_LIBS
727 enable_module=$enable_phos
729 AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
730 AC_MSG_CHECKING([whether to compile PHOS library])
731 AC_MSG_RESULT([$enable_module])
732 AC_SUBST([ALIPHOS_LIBS])
734 dnl ------------------------------------------------------------------
735 AH_TEMPLATE([HLT_TRD],[hlt trd library])
738 CHECK_HLTMODULE([trd],
740 [MLP XMLParser], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
741 [TRDbase TRDrec TRDsim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
742 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
744 if test "x$enable_module" = "xmissheader"; then
745 enable_module="no...requires.AliRoot>v4-07-Release"
746 enable_trd=$enable_module
747 elif test "x$enable_module" = "xforce"; then
750 enable_trd=$enable_module
751 if test "x$enable_trd" = "xyes" ; then
753 save_CPPFLAGS="$CPPFLAGS"
754 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/TRD"
755 # AliTRDclusterizer::SetRawVersion() requires >v4-07-Release
756 # changed to AliTRDrecoParam::SetSeedingOn() due to revision 26327, Mon Jun 2 2008
757 # changed to AliTRDReconstructor::SetStreamLevel() due to revision 27797, Tue Aug 5 2008
758 # changed to AliTRDReconstructor::SetClusters() according to revision 28069, Mon Aug 18 2008
759 # changed to AliTRDCluster according to revision 30461, Thu Dec 18 2008
760 AC_MSG_CHECKING([for required functions in AliTRDCluster])
761 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliTRDcluster.h>],
765 [enable_trd="no...requires.AliRoot>v4-16-Release"])
766 AC_MSG_RESULT([$enable_trd])
768 CPPFLAGS="$save_CPPFLAGS"
772 if test "x$enable_trd" = "xyes" ; then
774 ALITRD_LIBS=$ALIHLTMODULE_LIBS
776 enable_module=$enable_trd
778 AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes)
779 AC_MSG_CHECKING([whether to compile TRD library])
780 AC_MSG_RESULT([$enable_module])
781 AC_SUBST([ALITRD_LIBS])
783 dnl ------------------------------------------------------------------
784 AH_TEMPLATE([HLT_FMD],[hlt fmd library])
786 ALIFMD_LIBS=$ALIHLTMODULE_LIBS
787 CHECK_HLTMODULE([fmd],
789 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
790 [FMDbase FMDrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
791 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
793 if test "x$enable_module" = "xmissheader"; then
794 enable_module="no...missing.headers"
795 enable_fmd=$enable_module
796 elif test "x$enable_module" = "xforce"; then
799 enable_fmd=$enable_module
802 if test "x$enable_fmd" = "xyes" ; then
804 ALIFMD_LIBS=$ALIHLTMODULE_LIBS
806 enable_module=$enable_fmd
808 AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes)
809 AC_MSG_CHECKING([whether to compile FMD library])
810 AC_MSG_RESULT([$enable_module])
811 AC_SUBST([ALIFMD_LIBS])
813 dnl ------------------------------------------------------------------
814 AH_TEMPLATE([HLT_MUON],[hlt dimuon library])
817 CHECK_HLTMODULE([dimuon],
818 [AliMpExMap.h AliMUONTriggerIO.h],
819 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/MUON -I$ALICE_ROOT/MUON/mapping],
820 [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
821 [MUONcore MUONraw MUONbase MUONgeometry MUONmapping MUONcalib MUONsim MUONtrigger MUONevaluation MUONrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
822 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
824 if test "x$enable_module" = "xmissheader"; then
825 enable_module="no...requires.AliRoot>=v4-08-Release"
826 enable_muon=$enable_module
827 elif test "x$enable_module" = "xforce"; then
830 enable_muon=$enable_module
833 if test "x$enable_muon" = "xyes" ; then
835 ALIMUON_LIBS=$ALIHLTMODULE_LIBS
837 save_CPPFLAGS="$CPPFLAGS"
840 dnl Check for functionality GetRawStream AliMUONDigitMaker.h
842 have_muon_digitmaker_getrawstream=no
843 AC_MSG_CHECKING(for GetRawStream methods of AliMUONDigitMaker)
844 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON"
845 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
846 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS"
847 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMUONDigitMaker.h>],
848 [AliMUONDigitMaker dm;
849 dm.GetRawStreamTracker();])],
850 [have_muon_digitmaker_getrawstream=yes],
851 [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)])
853 AC_MSG_RESULT([$have_muon_digitmaker_getrawstream])
854 CPPFLAGS="$save_CPPFLAGS"
858 enable_module=$enable_muon
860 AM_CONDITIONAL(EN_HLT_MUON, test x$enable_muon = xyes)
861 AC_MSG_CHECKING([whether to compile MUON library])
862 AC_MSG_RESULT([$enable_module])
863 AC_SUBST([ALIMUON_LIBS])
865 dnl ------------------------------------------------------------------
866 AH_TEMPLATE([HLT_TRIGGER],[hlt trigger library])
869 CHECK_HLTMODULE([trigger],
870 [], [$ALIROOT_CPPFLAGS],
871 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
872 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
873 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
875 if test "x$enable_module" = "xmissheader"; then
876 enable_module="no...header.missing"
877 enable_trigger=$enable_module
878 elif test "x$enable_module" = "xforce"; then
881 enable_trigger=$enable_module
884 if test "x$enable_trigger" = "xyes" ; then
885 AC_DEFINE(HLT_TRIGGER)
886 ALITRIGGER_LIBS=$ALIHLTMODULE_LIBS
888 enable_module=$enable_trigger
890 AM_CONDITIONAL(EN_HLT_TRIGGER, test x$enable_trigger = xyes)
891 AC_MSG_CHECKING([whether to compile Trigger library])
892 AC_MSG_RESULT([$enable_module])
893 AC_SUBST([ALITRIGGER_LIBS])
895 dnl ------------------------------------------------------------------
896 AH_TEMPLATE([HLT_GLOBAL],[hlt global library])
899 CHECK_HLTMODULE([global],
900 [], [$ALIROOT_CPPFLAGS],
901 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
902 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
903 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
905 if test "x$enable_module" = "xmissheader"; then
906 enable_module="no...header.missing"
907 enable_global=$enable_module
908 elif test "x$enable_module" = "xforce"; then
911 enable_global=$enable_module
912 if test "x$enable_global" = "xyes" ; then
914 save_CPPFLAGS="$CPPFLAGS"
915 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
916 AC_MSG_CHECKING([for required functions in AliESDtrack])
917 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliESDtrack.h>],
919 t.SetGlobalChi2(0)])],
921 [enable_global="no...requires.AliRoot>v4-17-Release"])
922 AC_MSG_RESULT([$enable_global])
924 CPPFLAGS="$save_CPPFLAGS"
928 if test "x$enable_global" = "xyes" ; then
929 AC_DEFINE(HLT_GLOBAL)
930 ALIGLOBAL_LIBS=$ALIHLTMODULE_LIBS
932 enable_module=$enable_global
934 AM_CONDITIONAL(EN_HLT_GLOBAL, test x$enable_global = xyes)
935 AC_MSG_CHECKING([whether to compile Global library])
936 AC_MSG_RESULT([$enable_module])
937 AC_SUBST([ALIGLOBAL_LIBS])
939 dnl ------------------------------------------------------------------
940 AH_TEMPLATE([HLT_JET],[hlt jet library])
946 AC_ARG_WITH(fastjet, [installation path of the FASTJET package],
947 [ test "x$with_fastjet" != "xno" && export FASTJET=$with_fastjet],
948 [ test -n $FASTJET && with_fastjet=$FASTJET ])
950 if test "x$with_fastjet" != "x" && test "x$with_fastjet" != "xno" ; then
951 ALIFASTJET_INCFLAGS="-I${with_fastjet}/include"
952 ALIFASTJET_HEADER="PseudoJet.hh"
953 ALIFASTJET_LDFLAGS="-L${with_fastjet}/lib"
954 ALIFASTJET_LIBS="CGAL fastjet"
959 CHECK_HLTMODULE([jet],
960 [$ALIFASTJET_HEADER], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/JETAN $ALIFASTJET_INCFLAGS],
961 [$ALIFASTJET_LIBS], [-L$ROOTLIBDIR $ALIFASTJET_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS],
962 [AOD ESD ANALYSIS ANALYSISalice JETAN JETANMC],
963 [-L$ROOTLIBDIR $ALIROOT_LDFLAGS -L$ALICE_ROOT/lib/tgt_$ALICE_TARGET],
964 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
966 if test "x$enable_module" = "xmissheader"; then
967 enable_module="no...header.missing"
968 enable_jet=$enable_module
969 elif test "x$enable_module" = "xforce"; then
972 enable_jet=$enable_module
975 if test "x$enable_jet" = "xyes" ; then
977 ALIJET_LIBS="$ALIHLTMODULE_LIBS"
979 if test "x$with_fastjet" != "xno"; then
980 AC_DEFINE(HAVE_FASTJET)
981 AC_DEFINE(WITHFASTJET)
982 ALIJET_LIBS="$ALIJET_LIBS -L$FASTJET_LDFLAGS"
984 AC_MSG_CHECKING([compilation with FASTJET package])
985 AC_MSG_RESULT($with_fastjet)
988 enable_module=$enable_jet
991 AM_CONDITIONAL(EN_HLT_JET, test x$enable_jet = xyes)
992 AC_MSG_CHECKING([whether to compile Jet library])
993 AC_MSG_RESULT([$enable_module])
994 AC_SUBST([ALIJET_LIBS])
996 dnl ------------------------------------------------------------------
997 AH_TEMPLATE([HLT_ITS],[hlt its library])
1000 CHECK_HLTMODULE([its],
1001 [AliITSCompressRawDataSDD.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS],
1002 [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
1003 [ITSbase ITSrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
1004 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
1006 if test "x$enable_module" = "xmissheader"; then
1007 enable_module="no...header.missing"
1008 enable_its=$enable_module
1009 elif test "x$enable_module" = "xforce"; then
1012 enable_its=$enable_module
1013 if test "x$enable_its" = "xyes" ; then
1015 save_CPPFLAGS="$CPPFLAGS"
1016 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS"
1017 # changes in the AliVertexer base class revision 26414, Thu Jun 5 15:36:18 2008
1018 # require AliVertexer::GetNominalPos()
1019 AC_MSG_CHECKING([for required functions in AliITSVertexer])
1020 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliITSVertexerZ.h>],
1022 v.GetNominalPos()])],
1024 [enable_its="no...requires.AliRoot>v4-13-Release"])
1025 AC_MSG_RESULT([$enable_its])
1027 CPPFLAGS="$save_CPPFLAGS"
1031 if test "x$enable_its" = "xyes" ; then
1033 ALIITS_LIBS=$ALIHLTMODULE_LIBS
1035 enable_module=$enable_its
1037 AM_CONDITIONAL(EN_HLT_ITS, test x$enable_its = xyes)
1038 AC_MSG_CHECKING([whether to compile ITS library])
1039 AC_MSG_RESULT([$enable_module])
1040 AC_SUBST([ALIITS_LIBS])
1042 dnl ------------------------------------------------------------------
1043 AH_TEMPLATE([HLT_EMCAL],[hlt emcal library])
1046 CHECK_HLTMODULE([emcal],
1047 [], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/EMCAL],
1048 [RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
1049 [EMCALrec EMCALsim EMCALbase], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
1050 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
1052 if test "x$enable_module" = "xmissheader"; then
1053 enable_module="no...header.missing"
1054 enable_emcal=$enable_module
1055 elif test "x$enable_module" = "xforce"; then
1058 enable_emcal=$enable_module
1061 if test "x$enable_emcal" = "xyes" ; then
1062 AC_DEFINE(HLT_EMCAL)
1063 ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS
1065 enable_module=$enable_emcal
1067 AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes)
1068 AC_MSG_CHECKING([whether to compile EMCAL library])
1069 AC_MSG_RESULT([$enable_module])
1070 AC_SUBST([ALIEMCAL_LIBS])
1072 dnl ------------------------------------------------------------------
1073 AH_TEMPLATE([HLT_COMP],[hlt comp library])
1076 CHECK_HLTMODULE([comp],
1077 [], [$ALIROOT_CPPFLAGS],
1078 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
1079 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
1080 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
1082 if test "x$enable_module" = "xmissheader"; then
1083 enable_module="no...header.missing"
1084 enable_comp=$enable_module
1085 elif test "x$enable_module" = "xforce"; then
1088 enable_comp=$enable_module
1091 if test "x$enable_comp" = "xyes" ; then
1093 ALICOMP_LIBS=$ALIHLTMODULE_LIBS
1095 enable_module=$enable_comp
1097 AM_CONDITIONAL(EN_HLT_COMP, test x$enable_comp = xyes)
1098 AC_MSG_CHECKING([whether to compile comp library])
1099 AC_MSG_RESULT([$enable_module])
1100 AC_SUBST([ALICOMP_LIBS])
1102 dnl ------------------------------------------------------------------
1103 AC_MSG_CHECKING([whether to disable AliRoot logging])
1104 AH_TEMPLATE([NOALIROOT_LOGGING],[disable AliRoot logging])
1105 AC_ARG_ENABLE(aliroot-logging,
1106 [AC_HELP_STRING([--disable-aliroot-logging],
1107 [disable logging through AliRoot logging methods])],
1108 [],[enable_aliroot_logging=no])
1109 if test "x$have_aliroot" = "xno" ; then
1110 enable_aliroot_logging=yes # this means 'disable'
1112 if test "x$enable_aliroot_logging" != "xno" ; then
1113 AC_DEFINE(NOALIROOT_LOGGING)
1115 AM_CONDITIONAL(NOALIROOT_LOGGING, test x$enable_aliroot_logging != no)
1116 AC_MSG_RESULT([$enable_aliroot_logging])
1118 dnl ------------------------------------------------------------------
1119 AC_MSG_CHECKING([whether to enable saving MC data through the chain])
1120 AH_TEMPLATE([DOMC],[MC saving])
1121 AC_ARG_ENABLE(mc-saving,
1122 [AC_HELP_STRING([--enable-mc-saving],
1123 [enable saving MC data through the chain])],
1124 [],[enable_mc_saving=no])
1125 if test "x$enable_mc_saving" = "xyes" ; then
1128 AC_MSG_RESULT([$enable_mc_saving])
1130 dnl ------------------------------------------------------------------
1131 dnl certainly something old, but we keep the define
1132 AC_MSG_CHECKING([whether to use ROWHOUGH])
1133 AH_TEMPLATE([USEROWHOUGH],[HLT ROWHOUGH])
1134 AC_ARG_ENABLE(rowhough,
1135 [AC_HELP_STRING([--enable-rowhough],
1137 [],[enable_rowhough=no])
1138 if test "x$enable_rowhough" = "xyes" ; then
1139 AC_DEFINE(USEROWHOUGH)
1141 AC_MSG_RESULT([$enable_rowhough])
1143 dnl ------------------------------------------------------------------
1144 dnl The ROOTVERSION and ALIROOTVERSION defines were used by the old
1145 dnl stand-alone build system. This is most likely something old we can
1146 dnl get rid off later, or do something more reasonable. Since the define
1147 dnl needs the quotes they have to be escaped. This works well for the
1148 dnl Makefile but not for the configure script. So we have to add the
1149 dnl defines after all the other checks.
1150 CPPFLAGS="$CPPFLAGS -DROOTVERSION=\\\"`${ROOTCONF} --version`\\\""
1151 if test ! "x$have_aliroot" = "xno" ; then
1152 CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=\\\"Unknown\\\""
1155 dnl ------------------------------------------------------------------
1159 AC_ARG_VAR(DOXYGEN, The Documentation Generator)
1160 AC_PATH_PROG(PERL, perl)
1161 AC_PATH_PROG(DOXYGEN, doxygen)
1163 [AC_HELP_STRING([--enable-dot],
1164 [enable dot documentation generator])],
1168 AC_PATH_PROG(DOT, dot)
1169 if test "x$DOT" != "x" && test "x$enable_dot" = "xyes" ; then
1171 DOT_PATH=`dirname $DOT`
1174 AC_MSG_CHECKING([for documentation mode])
1176 [AC_HELP_STRING([--disable-doc],
1177 [disable documentation build; monolithic build --enable-doc=mono ])],
1178 [],[enable_doc=modules])
1180 if test "x$DOXYGEN" = "x" ; then
1181 enable_doc=no.doxygen
1182 elif test "x$enable_doc" = "xyes" ; then
1184 elif test ! "x$enable_doc" = "xmono" && \
1185 test ! "x$enable_doc" = "xmodules" && \
1186 test ! "x$enable_doc" = "xno"; then
1188 AC_MSG_WARN([unknown option])
1190 if test "x$enable_doc" = "xno" ; then
1195 AC_MSG_RESULT([$enable_doc])
1196 AM_CONDITIONAL(MONOLITHIC_DOC, test "x$enable_doc" = "xmono")
1197 AM_CONDITIONAL(HAVE_DOXYGEN, test ! "x$DOXYGEN" = "x")
1198 AC_SUBST([HAVE_DOT])
1199 AC_SUBST([DOT_PATH])
1201 dnl HAVE_SRC_SUBDIR=${abs_top_srcdir}/src
1202 dnl echo $HAVE_SRC_SUBDIR
1203 dnl if ! test -d $HAVE_SRC_SUBDIR; then
1204 dnl HAVE_SRC_SUBDIR=
1206 dnl AC_SUBST([HAVE_SRC_SUBDIR])
1208 dnl ------------------------------------------------------------------
1209 AC_MSG_NOTICE([---------------------------------------------- ])
1210 AC_MSG_NOTICE([ build summary ])
1211 AC_MSG_NOTICE([---------------------------------------------- ])
1213 AC_CONFIG_FILES([Makefile
1219 BASE/util/test/Makefile
1220 BASE/interface/Makefile
1222 BASE/interface/test/Makefile
1225 doc/doxymodule.conf])
1227 dnl AliRoot and installation directory for libraries
1229 AC_MSG_NOTICE([AliRoot: $have_aliroot])
1230 AM_CONDITIONAL(HAVE_ALIROOT, test "x$have_aliroot" != "xno" )
1231 if test "x$have_aliroot" != "xno"; then
1232 AC_CONFIG_FILES([sim/Makefile
1235 rec/startAliEVE-barrel-tracks.sh
1241 if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then
1242 libdir=\${exec_prefix}/lib/tgt_$ALICE_TARGET
1243 AC_MSG_NOTICE([libdir set to $libdir])
1246 AC_MSG_NOTICE([compile sample library: $enable_sample])
1247 if test "x$enable_sample" = "xyes"; then
1248 AC_CONFIG_FILES([SampleLib/Makefile])
1251 AC_MSG_NOTICE([compile RCU library: $enable_rcu])
1252 if test "x$enable_rcu" = "xyes"; then
1253 AC_CONFIG_FILES([RCU/Makefile
1258 AC_MSG_NOTICE([compile TPC library: $enable_tpc])
1259 if test "x$enable_tpc" = "xyes"; then
1260 AC_CONFIG_FILES([TPCLib/Makefile
1261 TPCLib/test/Makefile
1262 TPCLib/mapping2array.cxx
1267 AC_MSG_NOTICE([compile PHOS library: $enable_phos])
1268 if test "x$enable_phos" = "xyes"; then
1269 AC_CONFIG_FILES([PHOS/Makefile])
1272 AC_MSG_NOTICE([compile TRD library: $enable_trd])
1273 if test "x$enable_trd" = "xyes"; then
1274 AC_CONFIG_FILES([TRD/Makefile])
1277 AC_MSG_NOTICE([compile FMD library: $enable_fmd])
1278 if test "x$enable_fmd" = "xyes"; then
1279 AC_CONFIG_FILES([FMD/Makefile])
1282 AC_MSG_NOTICE([compile MUON library: $enable_muon])
1283 if test "x$enable_muon" = "xyes"; then
1284 AC_CONFIG_FILES([MUON/Makefile])
1287 AC_MSG_NOTICE([compile ITS library: $enable_its])
1288 if test "x$enable_its" = "xyes"; then
1289 AC_CONFIG_FILES([ITS/Makefile])
1292 AC_MSG_NOTICE([compile EMCAL library: $enable_emcal])
1293 if test "x$enable_emcal" = "xyes"; then
1294 AC_CONFIG_FILES([EMCAL/Makefile])
1297 AC_MSG_NOTICE([compile trigger library: $enable_trigger])
1298 if test "x$enable_trigger" = "xyes"; then
1299 AC_CONFIG_FILES([trigger/Makefile
1300 trigger/test/Makefile])
1303 AC_MSG_NOTICE([compile global library: $enable_global])
1304 if test "x$enable_global" = "xyes"; then
1305 AC_CONFIG_FILES([global/Makefile])
1308 AC_MSG_NOTICE([compile jet library: $enable_jet])
1309 if test "x$enable_jet" = "xyes"; then
1310 AC_CONFIG_FILES([JET/Makefile])
1313 AC_MSG_NOTICE([compile comp library: $enable_comp])
1314 if test "x$enable_comp" = "xyes"; then
1315 AC_CONFIG_FILES([comp/Makefile])