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 ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer'
78 for CHECKLIB in $ROOT_CHECKLIBS ; do
79 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}"
80 LIBS="$save_LIBS $ROOTLIBS $ADD_ROOTLIBS"
81 AC_CHECK_LIB([$CHECKLIB],[_init], [ADD_ROOTLIBS="$ADD_ROOTLIBS -l$CHECKLIB"])
84 # TBuffer.h has been made pure virtual in root v5-15-02 and one
85 # has to derive from TBufferFile.h (needed for BASE/AliHLTMessage.h)
86 AC_CHECK_HEADER([TBufferFile.h], [], [HAVE_NOT_TBUFFERFILE])
88 # TView.h has been made pure virtual right after root v5-15-02 and one
89 # has to derive from TView3D.h (needed for TPCLib/OnlineDisplay/AliHLTTPCDisplay3D)
90 AC_CHECK_HEADER([TView3D.h], [], [HAVE_NOT_TVIEW3D])
92 CPPFLAGS=$save_CPPFLAGS
98 dnl ------------------------------------------------------------------
99 # TODO: make this configurable through arguments
100 #Define whether you want to run with ALIROOT or only ROOT
101 AH_TEMPLATE([ALIHLT_USEPACKAGE],[running environment])
102 ALIHLT_USEPACKAGE=ALIROOT
103 #ALIHLT_USEPACKAGE=ROOT
104 #ALIHLT_USEPACKAGE=STANDALONE
105 AC_DEFINE(use_aliroot)
107 CPPFLAGS="$CPPFLAGS ${ROOTCFLAGS}"
108 save_CPPFLAGS=$CPPFLAGS
109 save_LDFLAGS=$LDFLAGS
112 dnl ------------------------------------------------------------------
113 dnl check for AliRoot features
116 AC_ARG_WITH(aliroot,[ --with-aliroot top of the AliRoot installation],
117 [test -d $with_aliroot && ALICE_ROOT=$with_aliroot],
120 if test "x$ALICE_ROOT" != "x" && test -d $ALICE_ROOT ; then
121 dnl ------------------------------------------------------------------
122 dnl Try to estimate the system architecture
123 case $host_os:$host_cpu in
124 linux*:x86_64*) alice_target='linuxx8664gcc' ;;
125 linux*) alice_target='linux' ;;
126 *) alice_target='unknown' ;;
128 if test "x$alice_target" = "xunknown" ; then
129 if test -z $ALICE_TARGET ; then
130 AC_MSG_ERROR([Can not estimate system architecture.
131 To avoid the problem, set the ALICE_TARGET variable appropriately.
132 Please send the following information to Matthias.Richter@ift.uib.no:
133 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
135 AC_MSG_NOTICE([Unknown system architecture.
136 Please send the following information to Matthias.Richter@ift.uib.no:
137 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
140 if test "x$ALICE_TARGET" != "x" && test "x$ALICE_TARGET" != "x$alice_target" ; then
141 AC_MSG_WARN([The ALICE_TARGET variable does not match your current system
142 overriding $ALICE_TARGET by $alice_target])
144 ALICE_TARGET=$alice_target
146 ALIROOTBINDIR=${ALICE_ROOT}/bin/tgt_${ALICE_TARGET}
147 ALIROOTLIBDIR=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}
148 ALIROOTINCDIR=${ALICE_ROOT}/include
149 test -d ${ALIROOTBINDIR} || AC_MSG_WARN([can not find AliRoot binary directory $ALIROOTBINDIR])
150 test -d ${ALIROOTLIBDIR} || AC_MSG_WARN([can not find AliRoot library directory $ALIROOTLIBDIR])
151 test -d ${ALIROOTINCDIR} || AC_MSG_WARN([can not find AliRoot include directory $ALIROOTINCDIR])
154 AC_MSG_CHECKING([for AliRoot])
155 if test "x$ALICE_ROOT" != "x" \
156 && test -d ${ALIROOTBINDIR} \
157 && test -d ${ALIROOTLIBDIR} \
158 && test -d ${ALIROOTINCDIR}; then
159 have_aliroot=$ALICE_ROOT
165 AC_MSG_RESULT([$have_aliroot])
167 if test ! "x$have_aliroot" = "xno" ; then
168 ALIROOT_CPPFLAGS="-I${ALIROOTINCDIR} -I${ALICE_ROOT}/RAW"
169 ALIROOT_LDFLAGS="-L${ALIROOTLIBDIR}"
170 ALIROOT_LIBS="$ADD_ROOTLIBS"
171 save_CPPFLAGS=$CPPFLAGS
172 save_LDFLAGS=$LDFLAGS
174 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
175 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
177 # check for certain AliRoot libraries/files/features
178 # libSTEERBase present since Aug 7 2007
179 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
181 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
183 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
185 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
187 # CBD library is present since AliRoot version v4-05-00 (02.06.2006)
188 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
190 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
192 # splitted RAW libraries since AliRoot version v4-04-Rev-07 (09.08.2006)
194 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
196 AC_CHECK_LIB([$CHECKLIB],[_init],
197 [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"
198 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lESD -lSTEER"
200 AC_CHECK_LIB([$CHECKLIB],[_init],
201 [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"
202 have_alirawdata=$CHECKLIB])],
203 [# second pass with -RAWData
205 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $CHECKLIB -lSTEER"
206 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRawReaderMemory.h>
207 #include <AliRawReaderFile.h>
208 #include <AliRawReaderDate.h>
209 #include <AliRawReaderRoot.h>],
210 [AliRawReaderMemory mreader;
211 AliRawReaderFile freader;
212 AliRawReaderDate dreader(NULL,0);
213 AliRawReaderRoot rreader(NULL,0);])],
214 [ALIROOT_LIBS="$ALIROOT_LIBS $CHECKLIB"
215 have_alirawdata=$CHECKLIB],
216 [have_alirawdata=no])
217 ]) dnl AC_CHECK_LIB RAWDatabase
218 AC_MSG_CHECKING([for AliRawReader classes in RAWData libraries])
219 AC_MSG_RESULT([$have_alirawdata])
221 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lSTEER"
223 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
225 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
227 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"],[have_aliroot=no])
230 dnl check whether AliLog supports notification callback
232 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
233 have_alilog_notification=no
234 if test ! "x$have_aliroot" = "xno" ; then
235 AC_MSG_CHECKING([whether AliLog supports notification callback])
236 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliLog.h>],
237 [AliLog::AliLogNotification fct])],
238 [have_alilog_notification=yes],
239 [AC_DEFINE(NO_ALILOG_NOTIFICATION)])
240 AC_MSG_RESULT([$have_alilog_notification])
243 if test "x$have_aliroot" = "xno" ; then
244 # 2007-08-18 dont reset ALIROOT_CPPFLAGS in order to allow compilation
245 # but library dependencies might not be resolved completely
247 AC_MSG_WARN([some of the AliRoot library dependencies are not resolved.
248 This can happen from time to time due to development in AliRoot. You can
249 force compilation of detector libs by --enable-<detector>, but be aware
250 of unresolved references at runtime.])
251 AC_MSG_WARN([ ------------------------------------------ ])
252 AC_MSG_WARN([ Report this to $PACKAGE_BUGREPORT ])
253 AC_MSG_WARN([ please include config.log ])
254 AC_MSG_WARN([ ------------------------------------------ ])
260 dnl ESD supports non-std content
263 AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <AliESDEvent.h>
264 #include <AliExternalTrackParam.h>
266 #include <TClonesArray.h>],
268 esd.CreateStdContent();
269 TTree* tree=new TTree("esdTree", "Tree with HLT ESD objects");
270 TClonesArray* a=new TClonesArray("AliExternalTrackParam");
271 a->SetName("SomeObject");
273 esd.WriteToTree(tree);
274 if (!tree->FindBranch("SomeObject")) return 1;
276 [have_esd_nonstd=yes],
277 [AC_DEFINE(HAVE_NOT_ESD_NONSTD)])
278 AC_MSG_CHECKING(whether ESD supports non standard content)
279 AC_MSG_RESULT([$have_esd_nonstd])
282 dnl ESD copy function added May 9 2008 rev 25667
284 if test "x$have_esd_nonstd" != "xyes"; then
286 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliESDEvent.h>],
291 [AC_DEFINE(HAVE_NOT_ESD_COPY)])
292 AC_MSG_CHECKING(for ESD assignment operator)
293 AC_MSG_RESULT([$have_esd_copy])
297 dnl AliRawReaderMemory support for multiple buffers added
298 dnl revision 26829 Jun 2008
300 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/RAW"
301 have_rawreadermemory_multbuffers=no
302 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRawReaderMemory.h>],
303 [AliRawReaderMemory rr;
304 rr.AddBuffer(NULL, 0, 0);])],
305 [have_rawreadermemory_multbuffers=yes],
306 [AC_DEFINE(HAVE_NOT_ALIRAWREADERMEMORY_ADDBUFFER)])
307 AC_MSG_CHECKING(AliRawReaderMemory support for multiple buffers)
308 AC_MSG_RESULT([$have_rawreadermemory_multbuffers])
311 dnl required header files and libraries for modules
315 dnl Check for the interface of AliExternalTrackParam which has been changed
316 dnl in revision 1.17 of AliExternalTrackParam.h (AliRoot version v4-05-04
318 externaltrackparam_version=1
319 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliExternalTrackParam.h>],
320 [AliExternalTrackParam trackparam;
321 Double_t param[[5]]; Double_t covar[[15]];
322 trackparam.Set(0., 0., param, covar);])],
323 [externaltrackparam_version=2],
324 [AC_DEFINE(EXTERNALTRACKPARAM_V1)])
325 AC_MSG_CHECKING(for version of AliExternalTrackParam)
326 AC_MSG_RESULT($externaltrackparam_version)
328 dnl The AliShuttleInterface was changed in rev 29388. Some return types
329 dnl had been const, now changed according to gcc 4.3 warnings
330 AC_MSG_CHECKING(for version of AliShuttleInterface.h)
331 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/"
332 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
333 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
334 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliShuttleInterface.h>],
335 [class dummy : public AliShuttleInterface {
337 const UInt_t GetStartTimeDCSQuery() {;}
339 [AC_DEFINE(SHUTTLE_PRE_REV29388_INTERFACE)
340 alishuttleinterface_version=pre.rev.29388],
341 [alishuttleinterface_version=up.to.date])
342 AC_MSG_RESULT([$alishuttleinterface_version])
344 CPPFLAGS=$save_CPPFLAGS
345 LDFLAGS=$save_LDFLAGS
347 fi # if test ! "x$have_aliroot" = "xno"
350 AC_SUBST([ALICE_ROOT])
351 AC_SUBST([ALIROOT_CPPFLAGS])
352 AC_SUBST([ALIROOT_LDFLAGS])
353 AC_SUBST([ALIROOTBINDIR])
354 AC_SUBST([ALIROOTLIBDIR])
355 AC_SUBST([ALIROOT_LIBS])
356 AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes)
358 HLTBASE_CPPFLAGS='-I${top_srcdir}/BASE'
360 AC_SUBST([HLTBASE_CPPFLAGS])
361 AC_SUBST([HLTBASE_LDFLAGS])
363 dnl ------------------------------------------------------------------
364 dnl check for the HLT PubSub Framework
365 dnl namely for the existence of the HOMER library
366 dnl from Sep 2007, the HOMER lib has been incorporated into the alice-hlt
367 dnl package. It os though possible to choose an external. library
368 dnl In order to make the origni of the HOMER lib clear, the one in AliRoot
369 dnl got the name libAliHLTHOMER
370 AC_MSG_CHECKING([for HLT PubSub Framework])
371 AC_ARG_WITH(pubsub, [installation path of the HLT PubSub framework],
373 [ test -n $ALIHLT_DC_DIR && with_pubsub=$ALIHLT_DC_DIR ])
374 if test -z $with_pubsub || ! test -d $with_pubsub ; then
377 AC_MSG_RESULT([$with_pubsub])
381 AH_TEMPLATE([HAVE_HOMERREADER],[the HLT PubSub Homer Reader interface])
382 if test "x$with_pubsub" != "xno" ; then
383 save_CPPFLAGS=$CPPFLAGS
384 save_LDFLAGS=$LDFLAGS
386 # currently the different versions of the HLT PubSub framework have a different
388 if test -d ${with_pubsub}/include/HOMER ; then
389 # the 'early' location of the include files with separated HOMER sub dirs
390 HOMER_INCDIRS="${with_pubsub}/include/HOMER ${with_pubsub}/include/HOMER/reader"
391 elif test -d ${with_pubsub}/include/Util/HOMER ; then
392 # location for HLT Framework versions after Sep 2006
393 HOMER_INCDIRS="${with_pubsub}/include/Util/HOMER"
394 elif test -d ${with_pubsub}/src/Util/HOMER/include ; then
395 # fall back if include files were not installed (versions after Sep 06)
396 HOMER_INCDIRS="${with_pubsub}/src/Util/HOMER/include"
398 # fall back if include files were not installed (versions before Sep 06)
399 HOMER_INCDIRS="${with_pubsub}/src/Util/HOMER/reader/include ${with_pubsub}/src/Util/HOMER/data/include"
401 HOMER_CPPFLAGS=`for i in ${HOMER_INCDIRS}; do echo -n "-I$i " ; done`
403 AC_ARG_ENABLE(pubsub-debug,
404 [AC_HELP_STRING([--disable-pubsub-debug],
405 [force the production version of the PubSub framework])],
406 [],[enable_pubsub_debug=yes])
408 HOMER_TARGET="`uname -s`-`uname -m`"
409 AC_MSG_CHECKING([for HLT PubSub Framework release type])
410 if test -d "${with_pubsub}/lib/${HOMER_TARGET}-release" ; then
411 homer_type="production"
412 HOMER_TARGET="${HOMER_TARGET}-release"
413 elif test "x$enable_pubsub_debug" = "xyes" && test -d "${with_pubsub}/lib/${HOMER_TARGET}-debug" ; then
415 HOMER_TARGET="${HOMER_TARGET}-debug"
417 AC_MSG_RESULT([${homer_type}])
418 HOMERREADER_HEADER=HOMERReader.h
419 HOMER_BINDIR="${with_pubsub}/bin/${HOMER_TARGET}"
420 HOMER_LIBDIR="${with_pubsub}/lib/${HOMER_TARGET}"
421 HOMER_LDFLAGS="-L${HOMER_LIBDIR}"
422 CPPFLAGS="$save_CPPFLAGS $HOMER_CPPFLAGS"
423 LDFLAGS="$save_LDFLAGS $HOMER_LDFLAGS"
427 AC_CHECK_HEADER([$HOMERREADER_HEADER],
428 [ AC_CHECK_LIB([HOMER],[_init],
430 HOMER_LIBS="-lHOMER"],
431 [ AC_CHECK_LIB([HOMERReader],[_init],
433 HOMER_LIBS="-lHOMERReader"])])
434 LIBS="$LIBS $HOMER_LIBS"
435 AC_MSG_CHECKING([version of HOMER library])
436 dnl The Homer library has no versioning, so we do our own
437 dnl version description
438 dnl ----------------------------------------------------------------------
439 dnl 1 inintial version
440 dnl 2 GetBlockStatusFlags added to the interface
441 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <HOMERReader.h>],
442 [HOMERReader reader("dummy", 0);
443 reader.GetBlockStatusFlags(0);])],
446 AC_MSG_RESULT([$HOMER_VERSION])
448 [HOMERREADER_HEADER=]) #AC_CHECK_HEADER([$HOMERREADER_HEADER])
452 dnl no pubsub version defined, check if the HOMER lib is available in AliRoot
454 HOMER_CPPFLAGS="-I`(cd $topdir; pwd)`/BASE/HOMER"
455 HOMERREADER_HEADER=AliHLTHOMERReader.h
456 HOMER_INBUILT_LIB=`pwd`/BASE/HOMER/libAliHLTHOMER.la
462 if test "x$with_homer" = "xno" ; then
467 HOMER_CPPFLAGS="$HOMER_CPPFLAGS -DHOMER_VERSION=$HOMER_VERSION"
468 AC_DEFINE(HAVE_HOMERREADER)
470 CPPFLAGS="$save_CPPFLAGS"
471 LDFLAGS="$save_LDFLAGS"
474 AC_SUBST([HOMERREADER_HEADER])
475 AC_SUBST([HOMER_INBUILT_LIB])
476 AC_SUBST([HOMER_CPPFLAGS])
477 AC_SUBST([HOMER_LDFLAGS])
478 AC_SUBST([HOMER_LIBDIR])
479 AC_SUBST([HOMER_BINDIR])
480 AC_SUBST([HOMER_LIBS])
482 dnl ------------------------------------------------------------------
484 [AC_HELP_STRING([--disable-all],
485 [disable all detector modules, individual modules can be switched on by --enable-det])],
486 [disable_all=yes],[])
488 dnl ------------------------------------------------------------------
489 AC_MSG_CHECKING([whether to impose strict coding conventions])
490 AC_ARG_ENABLE(strict,
491 [AC_HELP_STRING([--disable-strict],
492 [disable coding convention checks ])],
493 [],[enable_strict=yes])
494 if test "x$enable_strict" = "xyes" ; then
495 CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall -Wshadow"
497 AC_MSG_RESULT([$enable_strict])
499 dnl ------------------------------------------------------------------
500 AC_MSG_CHECKING([whether to enable component statistics])
501 AC_ARG_ENABLE(component-stat,
502 [AC_HELP_STRING([--enable-component-stat],
503 [enable component statistics ])],
504 [],[enable_component_stat=no])
505 if test "x$enable_component_stat" = "xyes" ; then
506 AC_DEFINE(HLT_COMPONENT_STATISTICS)
508 AC_MSG_RESULT([$enable_component_stat])
510 dnl ------------------------------------------------------------------
511 dnl ---- module checks
512 dnl ------------------------------------------------------------------
513 save_CPPFLAGS=$CPPFLAGS
514 save_LDFLAGS=$LDFLAGS
517 dnl ------------------------------------------------------------------
518 AC_MSG_CHECKING([whether to compile sample library])
519 AH_TEMPLATE([HLT_SAMPLE],[hlt sample library])
520 AC_ARG_ENABLE(sample,
521 [AC_HELP_STRING([--disable-sample],
522 [compile the sample library ])],
524 [if test "x$have_aliroot" = "xno" ; then
525 enable_sample="no...requires.AliRoot"
531 if test "x$enable_sample" = "xyes" ; then
532 AC_DEFINE(HLT_SAMPLE)
534 AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes)
535 AC_MSG_RESULT([$enable_sample])
537 dnl ------------------------------------------------------------------
538 AC_MSG_CHECKING([whether to compile util library])
539 AH_TEMPLATE([HLT_UTIL],[HLT utility library])
541 [AC_HELP_STRING([--disable-util],
542 [compile the util library ])],
544 [if test "x$have_aliroot" = "xno" ; then
545 enable_util="no...requires.AliRoot"
551 if test "x$enable_util" = "xyes" ; then
554 AM_CONDITIONAL(EN_HLT_UTIL, test x$enable_util = xyes)
555 AC_MSG_RESULT([$enable_util])
557 dnl ------------------------------------------------------------------
558 AH_TEMPLATE([HLT_TPC],[hlt tpc library])
561 CHECK_HLTMODULE([tpc],
563 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/TPC],
564 [Gui ANALYSIS STAT], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS],
565 [TPCbase TPCrec TPCcalib], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
566 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
568 if test "x$enable_module" = "xmissheader"; then
569 enable_module="no...missing.headers"
570 enable_tpc=$enable_module
571 elif test "x$enable_module" = "xforce"; then
574 enable_tpc=$enable_module
577 if test "x$enable_tpc" = "xyes" ; then
580 ALITPC_LIBS=$ALIHLTMODULE_LIBS
582 dnl Check for functionality in the TPC reconstruction required for online
585 have_tpc_hltoffline_rec=no
586 AC_MSG_CHECKING(for on-line features of TPC offline reconstruction)
587 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC"
588 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
589 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
590 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliTPCtrackerMI.h>
591 #include <AliTPCclustererMI.h>
592 #include <TObjArray.h>],
593 [AliTPCtrackerMI tracker;
594 TObjArray* array=NULL;
595 tracker.LoadClusters(array);
596 AliTPCclustererMI cl(NULL, NULL);
597 cl.GetOutputClonesArray();])],
598 [have_tpc_hltoffline_rec=yes],
599 [AC_DEFINE(HAVE_NOT_TPCOFFLINE_REC)])
601 AC_MSG_RESULT([$have_tpc_hltoffline_rec])
603 AC_CHECK_HEADER([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)])
604 AC_CHECK_HEADER([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)])
607 if test ! "x$have_aliroot" = "xno" ; then
608 # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC
609 # which is stored in the TPC/mapping/Patchx.data files from
610 # AliRoot version v4-04-Release (May 2006)
611 AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available])
612 TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping
613 AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data],
614 [have_tpc_mapping=yes
615 AC_SUBST(TPC_PAD_MAPPING_PATH)
616 AC_DEFINE(HAVE_TPC_MAPPING)],
620 AC_MSG_CHECKING([for TPC mapping layout])
621 AC_MSG_RESULT([$have_tpc_mapping])
625 enable_module=$enable_tpc
627 AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
628 AC_MSG_CHECKING([whether to compile TPC library])
629 AC_MSG_RESULT([$enable_module])
630 AC_SUBST([ALITPC_LIBS])
632 dnl ------------------------------------------------------------------
633 AH_TEMPLATE([HLT_RCU],[hlt rcu library])
635 CHECK_HLTMODULE([rcu],
637 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/RAW],
638 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
639 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
640 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
642 if test "x$enable_module" = "xmissheader"; then
643 enable_module="no...missing.headers"
644 enable_rcu=$enable_module
645 elif test "x$enable_module" = "xforce"; then
649 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
650 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
651 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
652 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliAltroDecoder.h>],
653 [AliAltroDecoder decoder;
654 decoder.CopyBackward(NULL, 0);])],
655 [enable_rcu=$enable_module],
656 [enable_module="no...requires.AliRoot>v4-10-Release"
657 enable_rcu="no...requires.AliRoot>v4-10-Release"])
658 CPPFLAGS=$save_CPPFLAGS
659 LDFLAGS=$save_LDFLAGS
664 if test "x$enable_rcu" = "xyes" ; then
667 enable_module=$enable_rcu
669 AM_CONDITIONAL(EN_HLT_RCU, test x$enable_rcu = xyes)
670 AC_MSG_CHECKING([whether to compile RCU library])
671 AC_MSG_RESULT([$enable_module])
672 AC_SUBST([ALIRCU_LIBS])
674 dnl ------------------------------------------------------------------
675 AH_TEMPLATE([HLT_PHOS],[hlt phos library])
678 CHECK_HLTMODULE([phos],
679 [], [$ALIROOT_CPPFLAGS],
680 [RAWDatasim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS],
681 [PHOSUtils PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
682 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
684 if test "x$enable_module" = "xmissheader"; then
685 enable_module="no...requires.AliRoot>v4-05-07"
686 enable_phos=$enable_module
687 elif test "x$enable_module" = "xforce"; then
690 have_alicalorawstream=no
691 if test ! "x$have_aliroot" = "xno" ; then
693 save_CPPFLAGS="$CPPFLAGS"
694 # this can not be used as AliCaloRawStream.h indirectly depends on TString.h
695 #AC_CHECK_HEADERS([AliCaloRawStream.h], [have_alicalorawstream=yes])
696 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/PHOS"
697 AC_MSG_CHECKING([for AliCaloRawStream.h usability])
698 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <TString.h>
699 #include <AliCaloRawStream.h>],
701 [AC_DEFINE(HAVE_ALICALORAWSTREAM)
702 have_alicalorawstream=yes],
704 AC_MSG_RESULT([$have_aliphosrecoparam])
705 AC_MSG_CHECKING([for required EMC functionality in AliPHOSRecoParam.h ])
706 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliPHOSRecoParam.h>],
707 [AliPHOSRecoParam param;
708 param.GetEMCClusteringThreshold()])],
709 [have_aliphosrecoparam=yes],
710 [AC_DEFINE(HAVE_NOT_PHOSRECOPARAMEMC)])
711 AC_MSG_RESULT([$have_alicalorawstream])
713 CPPFLAGS="$save_CPPFLAGS"
715 if test "x$have_alicalorawstream" != "xyes"; then
716 enable_phos="no...requires.AliRoot>v4-05-07"
718 enable_phos=$enable_module
722 if test "x$enable_phos" = "xyes" ; then
724 ALIPHOS_LIBS=$ALIHLTMODULE_LIBS
726 enable_module=$enable_phos
728 AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
729 AC_MSG_CHECKING([whether to compile PHOS library])
730 AC_MSG_RESULT([$enable_module])
731 AC_SUBST([ALIPHOS_LIBS])
733 dnl ------------------------------------------------------------------
734 AH_TEMPLATE([HLT_TRD],[hlt trd library])
737 CHECK_HLTMODULE([trd],
739 [MLP XMLParser], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
740 [TRDbase TRDrec TRDsim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
741 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
743 if test "x$enable_module" = "xmissheader"; then
744 enable_module="no...requires.AliRoot>v4-07-Release"
745 enable_trd=$enable_module
746 elif test "x$enable_module" = "xforce"; then
749 enable_trd=$enable_module
750 if test "x$enable_trd" = "xyes" ; then
752 save_CPPFLAGS="$CPPFLAGS"
753 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/TRD"
754 # AliTRDclusterizer::SetRawVersion() requires >v4-07-Release
755 # changed to AliTRDrecoParam::SetSeedingOn() due to revision 26327, Mon Jun 2 2008
756 # changed to AliTRDReconstructor::SetStreamLevel() due to revision 27797, Tue Aug 5 2008
757 # changed to AliTRDReconstructor::SetClusters() according to revision 28069, Mon Aug 18 2008
758 # changed to AliTRDCluster according to revision 30461, Thu Dec 18 2008
759 AC_MSG_CHECKING([for required functions in AliTRDCluster])
760 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliTRDcluster.h>],
764 [enable_trd="no...requires.AliRoot>v4-16-Release"])
765 AC_MSG_RESULT([$enable_trd])
767 CPPFLAGS="$save_CPPFLAGS"
771 if test "x$enable_trd" = "xyes" ; then
773 ALITRD_LIBS=$ALIHLTMODULE_LIBS
775 enable_module=$enable_trd
777 AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes)
778 AC_MSG_CHECKING([whether to compile TRD library])
779 AC_MSG_RESULT([$enable_module])
780 AC_SUBST([ALITRD_LIBS])
782 dnl ------------------------------------------------------------------
783 AH_TEMPLATE([HLT_FMD],[hlt fmd library])
785 ALIFMD_LIBS=$ALIHLTMODULE_LIBS
786 CHECK_HLTMODULE([fmd],
788 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
789 [FMDbase FMDrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
790 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
792 if test "x$enable_module" = "xmissheader"; then
793 enable_module="no...missing.headers"
794 enable_fmd=$enable_module
795 elif test "x$enable_module" = "xforce"; then
798 enable_fmd=$enable_module
801 if test "x$enable_fmd" = "xyes" ; then
803 ALIFMD_LIBS=$ALIHLTMODULE_LIBS
805 enable_module=$enable_fmd
807 AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes)
808 AC_MSG_CHECKING([whether to compile FMD library])
809 AC_MSG_RESULT([$enable_module])
810 AC_SUBST([ALIFMD_LIBS])
812 dnl ------------------------------------------------------------------
813 AH_TEMPLATE([HLT_MUON],[hlt dimuon library])
816 CHECK_HLTMODULE([dimuon],
817 [AliMpExMap.h AliMUONTriggerIO.h],
818 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/MUON -I$ALICE_ROOT/MUON/mapping],
819 [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
820 [MUONcore MUONraw MUONbase MUONgeometry MUONmapping MUONcalib MUONsim MUONtrigger MUONevaluation MUONrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
821 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
823 if test "x$enable_module" = "xmissheader"; then
824 enable_module="no...requires.AliRoot>=v4-08-Release"
825 enable_muon=$enable_module
826 elif test "x$enable_module" = "xforce"; then
829 enable_muon=$enable_module
832 if test "x$enable_muon" = "xyes" ; then
834 ALIMUON_LIBS=$ALIHLTMODULE_LIBS
836 save_CPPFLAGS="$CPPFLAGS"
839 dnl Check for functionality GetRawStream AliMUONDigitMaker.h
841 have_muon_digitmaker_getrawstream=no
842 AC_MSG_CHECKING(for GetRawStream methods of AliMUONDigitMaker)
843 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON"
844 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
845 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS"
846 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMUONDigitMaker.h>],
847 [AliMUONDigitMaker dm;
848 dm.GetRawStreamTracker();])],
849 [have_muon_digitmaker_getrawstream=yes],
850 [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)])
852 AC_MSG_RESULT([$have_muon_digitmaker_getrawstream])
853 CPPFLAGS="$save_CPPFLAGS"
857 enable_module=$enable_muon
859 AM_CONDITIONAL(EN_HLT_MUON, test x$enable_muon = xyes)
860 AC_MSG_CHECKING([whether to compile MUON library])
861 AC_MSG_RESULT([$enable_module])
862 AC_SUBST([ALIMUON_LIBS])
864 dnl ------------------------------------------------------------------
865 AH_TEMPLATE([HLT_TRIGGER],[hlt trigger library])
868 CHECK_HLTMODULE([trigger],
869 [], [$ALIROOT_CPPFLAGS],
870 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
871 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
872 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
874 if test "x$enable_module" = "xmissheader"; then
875 enable_module="no...header.missing"
876 enable_trigger=$enable_module
877 elif test "x$enable_module" = "xforce"; then
880 enable_trigger=$enable_module
883 if test "x$enable_trigger" = "xyes" ; then
884 AC_DEFINE(HLT_TRIGGER)
885 ALITRIGGER_LIBS=$ALIHLTMODULE_LIBS
887 enable_module=$enable_trigger
889 AM_CONDITIONAL(EN_HLT_TRIGGER, test x$enable_trigger = xyes)
890 AC_MSG_CHECKING([whether to compile Trigger library])
891 AC_MSG_RESULT([$enable_module])
892 AC_SUBST([ALITRIGGER_LIBS])
894 dnl ------------------------------------------------------------------
895 AH_TEMPLATE([HLT_ITS],[hlt its library])
898 CHECK_HLTMODULE([its],
899 [AliITSCompressRawDataSDD.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS],
900 [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
901 [ITSbase ITSrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
902 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
904 if test "x$enable_module" = "xmissheader"; then
905 enable_module="no...header.missing"
906 enable_its=$enable_module
907 elif test "x$enable_module" = "xforce"; then
910 enable_its=$enable_module
911 if test "x$enable_its" = "xyes" ; then
913 save_CPPFLAGS="$CPPFLAGS"
914 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS"
915 # changes in the AliVertexer base class revision 26414, Thu Jun 5 15:36:18 2008
916 # require AliVertexer::GetNominalPos()
917 AC_MSG_CHECKING([for required functions in AliITSVertexer])
918 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliITSVertexerZ.h>],
920 v.GetNominalPos()])],
922 [enable_its="no...requires.AliRoot>v4-13-Release"])
923 AC_MSG_RESULT([$enable_its])
925 CPPFLAGS="$save_CPPFLAGS"
929 if test "x$enable_its" = "xyes" ; then
931 ALIITS_LIBS=$ALIHLTMODULE_LIBS
933 enable_module=$enable_its
935 AM_CONDITIONAL(EN_HLT_ITS, test x$enable_its = xyes)
936 AC_MSG_CHECKING([whether to compile ITS library])
937 AC_MSG_RESULT([$enable_module])
938 AC_SUBST([ALIITS_LIBS])
940 dnl ------------------------------------------------------------------
941 AH_TEMPLATE([HLT_EMCAL],[hlt emcal library])
944 CHECK_HLTMODULE([emcal],
945 [], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/EMCAL],
946 [RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
947 [EMCALrec EMCALsim EMCALbase], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
948 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
950 if test "x$enable_module" = "xmissheader"; then
951 enable_module="no...header.missing"
952 enable_emcal=$enable_module
953 elif test "x$enable_module" = "xforce"; then
956 enable_emcal=$enable_module
959 if test "x$enable_emcal" = "xyes" ; then
961 ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS
963 enable_module=$enable_emcal
965 AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes)
966 AC_MSG_CHECKING([whether to compile EMCAL library])
967 AC_MSG_RESULT([$enable_module])
968 AC_SUBST([ALIEMCAL_LIBS])
970 dnl ------------------------------------------------------------------
971 AH_TEMPLATE([HLT_COMP],[hlt comp library])
974 CHECK_HLTMODULE([comp],
975 [], [$ALIROOT_CPPFLAGS],
976 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
977 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
978 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
980 if test "x$enable_module" = "xmissheader"; then
981 enable_module="no...header.missing"
982 enable_comp=$enable_module
983 elif test "x$enable_module" = "xforce"; then
986 enable_comp=$enable_module
989 if test "x$enable_comp" = "xyes" ; then
991 ALICOMP_LIBS=$ALIHLTMODULE_LIBS
993 enable_module=$enable_comp
995 AM_CONDITIONAL(EN_HLT_COMP, test x$enable_comp = xyes)
996 AC_MSG_CHECKING([whether to compile comp library])
997 AC_MSG_RESULT([$enable_module])
998 AC_SUBST([ALICOMP_LIBS])
1000 dnl ------------------------------------------------------------------
1001 AC_MSG_CHECKING([whether to disable AliRoot logging])
1002 AH_TEMPLATE([NOALIROOT_LOGGING],[disable AliRoot logging])
1003 AC_ARG_ENABLE(aliroot-logging,
1004 [AC_HELP_STRING([--disable-aliroot-logging],
1005 [disable logging through AliRoot logging methods])],
1006 [],[enable_aliroot_logging=no])
1007 if test "x$have_aliroot" = "xno" ; then
1008 enable_aliroot_logging=yes # this means 'disable'
1010 if test "x$enable_aliroot_logging" != "xno" ; then
1011 AC_DEFINE(NOALIROOT_LOGGING)
1013 AM_CONDITIONAL(NOALIROOT_LOGGING, test x$enable_aliroot_logging != no)
1014 AC_MSG_RESULT([$enable_aliroot_logging])
1016 dnl ------------------------------------------------------------------
1017 AC_MSG_CHECKING([whether to enable saving MC data through the chain])
1018 AH_TEMPLATE([DOMC],[MC saving])
1019 AC_ARG_ENABLE(mc-saving,
1020 [AC_HELP_STRING([--enable-mc-saving],
1021 [enable saving MC data through the chain])],
1022 [],[enable_mc_saving=no])
1023 if test "x$enable_mc_saving" = "xyes" ; then
1026 AC_MSG_RESULT([$enable_mc_saving])
1028 dnl ------------------------------------------------------------------
1029 dnl certainly something old, but we keep the define
1030 AC_MSG_CHECKING([whether to use ROWHOUGH])
1031 AH_TEMPLATE([USEROWHOUGH],[HLT ROWHOUGH])
1032 AC_ARG_ENABLE(rowhough,
1033 [AC_HELP_STRING([--enable-rowhough],
1035 [],[enable_rowhough=no])
1036 if test "x$enable_rowhough" = "xyes" ; then
1037 AC_DEFINE(USEROWHOUGH)
1039 AC_MSG_RESULT([$enable_rowhough])
1041 dnl ------------------------------------------------------------------
1042 dnl The ROOTVERSION and ALIROOTVERSION defines were used by the old
1043 dnl stand-alone build system. This is most likely something old we can
1044 dnl get rid off later, or do something more reasonable. Since the define
1045 dnl needs the quotes they have to be escaped. This works well for the
1046 dnl Makefile but not for the configure script. So we have to add the
1047 dnl defines after all the other checks.
1048 CPPFLAGS="$CPPFLAGS -DROOTVERSION=\\\"`${ROOTCONF} --version`\\\""
1049 if test ! "x$have_aliroot" = "xno" ; then
1050 CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=\\\"Unknown\\\""
1053 dnl ------------------------------------------------------------------
1057 AC_ARG_VAR(DOXYGEN, The Documentation Generator)
1058 AC_PATH_PROG(PERL, perl)
1059 AC_PATH_PROG(DOXYGEN, doxygen)
1061 [AC_HELP_STRING([--enable-dot],
1062 [enable dot documentation generator])],
1066 AC_PATH_PROG(DOT, dot)
1067 if test "x$DOT" != "x" && test "x$enable_dot" = "xyes" ; then
1069 DOT_PATH=`dirname $DOT`
1072 AC_MSG_CHECKING([for documentation mode])
1074 [AC_HELP_STRING([--disable-doc],
1075 [disable documentation build; monolithic build --enable-doc=mono ])],
1076 [],[enable_doc=modules])
1078 if test "x$DOXYGEN" = "x" ; then
1079 enable_doc=no.doxygen
1080 elif test "x$enable_doc" = "xyes" ; then
1082 elif test ! "x$enable_doc" = "xmono" && \
1083 test ! "x$enable_doc" = "xmodules" && \
1084 test ! "x$enable_doc" = "xno"; then
1086 AC_MSG_WARN([unknown option])
1088 if test "x$enable_doc" = "xno" ; then
1093 AC_MSG_RESULT([$enable_doc])
1094 AM_CONDITIONAL(MONOLITHIC_DOC, test "x$enable_doc" = "xmono")
1095 AM_CONDITIONAL(HAVE_DOXYGEN, test ! "x$DOXYGEN" = "x")
1096 AC_SUBST([HAVE_DOT])
1097 AC_SUBST([DOT_PATH])
1099 dnl HAVE_SRC_SUBDIR=${abs_top_srcdir}/src
1100 dnl echo $HAVE_SRC_SUBDIR
1101 dnl if ! test -d $HAVE_SRC_SUBDIR; then
1102 dnl HAVE_SRC_SUBDIR=
1104 dnl AC_SUBST([HAVE_SRC_SUBDIR])
1106 dnl ------------------------------------------------------------------
1107 AC_MSG_NOTICE([---------------------------------------------- ])
1108 AC_MSG_NOTICE([ build summary ])
1109 AC_MSG_NOTICE([---------------------------------------------- ])
1111 AC_CONFIG_FILES([Makefile
1117 BASE/interface/Makefile
1119 BASE/interface/test/Makefile
1122 doc/doxymodule.conf])
1124 dnl AliRoot and installation directory for libraries
1126 AC_MSG_NOTICE([AliRoot: $have_aliroot])
1127 AM_CONDITIONAL(HAVE_ALIROOT, test "x$have_aliroot" != "xno" )
1128 if test "x$have_aliroot" != "xno"; then
1129 AC_CONFIG_FILES([sim/Makefile
1132 rec/startAliEVE-barrel-tracks.sh
1138 if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then
1139 libdir=\${exec_prefix}/lib/tgt_$ALICE_TARGET
1140 AC_MSG_NOTICE([libdir set to $libdir])
1143 AC_MSG_NOTICE([compile sample library: $enable_sample])
1144 if test "x$enable_sample" = "xyes"; then
1145 AC_CONFIG_FILES([SampleLib/Makefile])
1148 AC_MSG_NOTICE([compile RCU library: $enable_rcu])
1149 if test "x$enable_rcu" = "xyes"; then
1150 AC_CONFIG_FILES([RCU/Makefile
1155 AC_MSG_NOTICE([compile TPC library: $enable_tpc])
1156 if test "x$enable_tpc" = "xyes"; then
1157 AC_CONFIG_FILES([TPCLib/Makefile
1158 TPCLib/test/Makefile
1159 TPCLib/mapping2array.cxx
1164 AC_MSG_NOTICE([compile PHOS library: $enable_phos])
1165 if test "x$enable_phos" = "xyes"; then
1166 AC_CONFIG_FILES([PHOS/Makefile])
1169 AC_MSG_NOTICE([compile TRD library: $enable_trd])
1170 if test "x$enable_trd" = "xyes"; then
1171 AC_CONFIG_FILES([TRD/Makefile])
1174 AC_MSG_NOTICE([compile FMD library: $enable_fmd])
1175 if test "x$enable_fmd" = "xyes"; then
1176 AC_CONFIG_FILES([FMD/Makefile])
1179 AC_MSG_NOTICE([compile MUON library: $enable_muon])
1180 if test "x$enable_muon" = "xyes"; then
1181 AC_CONFIG_FILES([MUON/Makefile])
1184 AC_MSG_NOTICE([compile ITS library: $enable_its])
1185 if test "x$enable_its" = "xyes"; then
1186 AC_CONFIG_FILES([ITS/Makefile])
1189 AC_MSG_NOTICE([compile EMCAL library: $enable_emcal])
1190 if test "x$enable_emcal" = "xyes"; then
1191 AC_CONFIG_FILES([EMCAL/Makefile])
1194 AC_MSG_NOTICE([compile trigger library: $enable_trigger])
1195 if test "x$enable_trigger" = "xyes"; then
1196 AC_CONFIG_FILES([trigger/Makefile
1197 trigger/test/Makefile])
1200 AC_MSG_NOTICE([compile comp library: $enable_comp])
1201 if test "x$enable_comp" = "xyes"; then
1202 AC_CONFIG_FILES([comp/Makefile])