]>
Commit | Line | Data |
---|---|---|
b521659f | 1 | dnl -*- mode: autoconf -*- |
2 | dnl | |
3 | dnl $Id$ | |
4 | dnl template for the configuration script for the Alice HLT | |
5 | dnl framework and components | |
6 | dnl | |
e0e15ca3 | 7 | dnl Note: the autoconf build system is deprecated and not maintained |
8 | dnl since AliRoot was converted to cmake | |
9 | dnl 2013-03-06: most of checks for AliRoot features have been removed | |
10 | dnl in order to run the existing doxygen setup until this has been | |
11 | dnl converted to cmake as well | |
12 | dnl | |
b521659f | 13 | dnl ------------------------------------------------------------------ |
408c5899 | 14 | |
15 | dnl Take either the AliRoot tag as version id or the current revision | |
16 | AC_INIT([Alice High Level Trigger] , | |
e0e15ca3 | 17 | [doc], |
408c5899 | 18 | [Matthias.Richter@ift.uib.no], |
19 | [alice-hlt]) | |
b521659f | 20 | |
21 | dnl ------------------------------------------------------------------ | |
22 | dnl the package from CVS contains the old Makefiles as well. In order to | |
23 | dnl prevent them from becoming overwritten, we require a separate build | |
24 | dnl directory | |
25 | if test "`dirname $0`" = "." ; then | |
26 | AC_ERROR([please run the script from a separate build directory]) | |
27 | fi | |
28 | ||
29 | dnl ------------------------------------------------------------------ | |
30 | AC_CANONICAL_SYSTEM | |
31 | AC_PREFIX_DEFAULT(${PWD}) | |
32 | AC_CONFIG_SRCDIR(BASE/AliHLTComponent.cxx) | |
b59c004b | 33 | AM_INIT_AUTOMAKE([-Wno-portability]) |
b521659f | 34 | AC_PROG_CC |
35 | AC_PROG_CXX | |
36 | AC_PROG_LIBTOOL | |
37 | ||
38 | AC_DEBUG | |
5b1c9727 | 39 | AC_PROFILING |
b521659f | 40 | AC_OPTIMIZATION |
dc8f7cb7 | 41 | AM_CONDITIONAL(STANDALONE_SAMPLELIB, test 0 ) |
42 | ||
43 | dnl ------------------------------------------------------------------ | |
44 | dnl A warning posted into the auto-generated files | |
45 | dnl Does NOT concern this file ;-) | |
46 | AUTOGENERATED_WARNING="!!!!!!! DO NOT EDIT THIS FILE !!!!!!" | |
47 | AC_SUBST([AUTOGENERATED_WARNING]) | |
b521659f | 48 | |
49 | dnl ------------------------------------------------------------------ | |
50 | dnl | |
51 | dnl Check for ROOT | |
52 | dnl | |
53 | ROOT_PATH(, [have_root=1], [AC_ERROR([Stop! The HLT package needs ROOT.])]) | |
54 | AM_CONDITIONAL(HAVE_ROOT, test "x$have_root" = "x1" ) | |
53feaef5 | 55 | AC_SUBST([ROOTSYS]) |
dc8f7cb7 | 56 | ROOTBINDIR=`dirname $ROOTEXEC` |
57 | AC_SUBST([ROOTBINDIR]) | |
58 | ||
dfaa582a | 59 | dnl test for additional required root libraries and headers |
60 | LIBS='-ldl' | |
61 | if test "x$have_root" = "x1"; then | |
62 | AC_LANG_PUSH(C++) | |
63 | save_CPPFLAGS=$CPPFLAGS | |
64 | save_LDFLAGS=$LDFLAGS | |
65 | save_LIBS=$LIBS | |
66 | CPPFLAGS=`echo $save_CPPFLAGS; for i in ${ROOTINCDIR}; do echo -n "-I$i " ; done` | |
67 | ||
dc8f7cb7 | 68 | # we check for the libSTEER library which is linked to |
69 | # - the ROOT libs libGeom libMinuit libVMC libEG | |
70 | # - the AliRoot libESD libRAWData (libRAWDatarec from v4-04-Rev-07) | |
71 | # - ROOT libCint needs also libdl | |
72 | # - from Nov 1 2006 TTreeFormula is needed by AliTagAnalysis and requires | |
73 | # libTreePlayer.so | |
74 | # - from Jan 07 libESD also depends on libXMLIO | |
fbf4d793 | 75 | # - libSTEER depends on libProofPlayer since Oct 2007 (after v4-07-Release) |
0776a74c | 76 | # - libCDB.so depends on libXMLParser since Mar 11 2009 r 31411 |
6af7322f | 77 | # - libCDB.so depends on libGui.so since May 14 2010 r 41238 |
78 | ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer XMLParser Gui' | |
dc8f7cb7 | 79 | for CHECKLIB in $ROOT_CHECKLIBS ; do |
dc8f7cb7 | 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"]) | |
83 | done | |
dfaa582a | 84 | |
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) | |
ba4b0dd7 | 87 | AC_CHECK_HEADER([TBufferFile.h], [], [HAVE_NOT_TBUFFERFILE]) |
dfaa582a | 88 | |
0b6c2560 | 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) | |
ba4b0dd7 | 91 | AC_CHECK_HEADER([TView3D.h], [], [HAVE_NOT_TVIEW3D]) |
0b6c2560 | 92 | |
dc8f7cb7 | 93 | CPPFLAGS=$save_CPPFLAGS |
94 | LDFLAGS=$save_LDFLAGS | |
95 | LIBS=$save_LIBS | |
dfaa582a | 96 | AC_LANG_POP(C++) |
dc8f7cb7 | 97 | fi |
b521659f | 98 | |
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) | |
107 | AC_DEFINE(use_root) | |
85869391 | 108 | CPPFLAGS="$CPPFLAGS ${ROOTCFLAGS}" |
7233bc62 | 109 | save_CPPFLAGS=$CPPFLAGS |
110 | save_LDFLAGS=$LDFLAGS | |
111 | save_LIBS=$LIBS | |
85869391 | 112 | |
113 | dnl ------------------------------------------------------------------ | |
74c73e5a | 114 | dnl check for AliRoot features |
115 | AC_LANG_PUSH(C++) | |
74c73e5a | 116 | have_aliroot=no |
2bbbadd1 | 117 | AC_ARG_WITH(aliroot,[ --with-aliroot top of the AliRoot installation], |
118 | [test -d $with_aliroot && ALICE_ROOT=$with_aliroot], | |
119 | []) | |
120 | ||
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' ;; | |
128 | esac | |
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 ]) | |
135 | else | |
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 ]) | |
139 | fi | |
140 | else | |
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]) | |
144 | fi | |
145 | ALICE_TARGET=$alice_target | |
146 | fi | |
dc8f7cb7 | 147 | ALIROOTBINDIR=${ALICE_ROOT}/bin/tgt_${ALICE_TARGET} |
74c73e5a | 148 | ALIROOTLIBDIR=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} |
149 | ALIROOTINCDIR=${ALICE_ROOT}/include | |
dc8f7cb7 | 150 | test -d ${ALIROOTBINDIR} || AC_MSG_WARN([can not find AliRoot binary directory $ALIROOTBINDIR]) |
2bbbadd1 | 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]) | |
74c73e5a | 153 | fi |
2bbbadd1 | 154 | |
155 | AC_MSG_CHECKING([for AliRoot]) | |
74c73e5a | 156 | if test "x$ALICE_ROOT" != "x" \ |
dc8f7cb7 | 157 | && test -d ${ALIROOTBINDIR} \ |
74c73e5a | 158 | && test -d ${ALIROOTLIBDIR} \ |
159 | && test -d ${ALIROOTINCDIR}; then | |
160 | have_aliroot=$ALICE_ROOT | |
161 | else | |
dc8f7cb7 | 162 | ALIROOTBINDIR= |
74c73e5a | 163 | ALIROOTLIBDIR= |
164 | ALIROOTINCDIR= | |
165 | fi | |
166 | AC_MSG_RESULT([$have_aliroot]) | |
167 | ||
74c73e5a | 168 | AC_LANG_POP(C++) |
5f5b708b | 169 | AC_SUBST([ALICE_ROOT]) |
74c73e5a | 170 | AC_SUBST([ALIROOT_CPPFLAGS]) |
171 | AC_SUBST([ALIROOT_LDFLAGS]) | |
dc8f7cb7 | 172 | AC_SUBST([ALIROOTBINDIR]) |
53feaef5 | 173 | AC_SUBST([ALIROOTLIBDIR]) |
593a08ea | 174 | |
175 | ALIROOT_LIBS="$ALIROOT_LIBS $ADD_ROOTLIBS" | |
74c73e5a | 176 | AC_SUBST([ALIROOT_LIBS]) |
0f51f5b8 | 177 | AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes) |
85869391 | 178 | |
6c1a9d9e | 179 | HLTBASE_CPPFLAGS='-I${top_srcdir}/BASE' |
180 | HLTBASE_LDFLAGS= | |
181 | AC_SUBST([HLTBASE_CPPFLAGS]) | |
182 | AC_SUBST([HLTBASE_LDFLAGS]) | |
183 | ||
7233bc62 | 184 | dnl ------------------------------------------------------------------ |
185 | AC_ARG_ENABLE(all, | |
186 | [AC_HELP_STRING([--disable-all], | |
187 | [disable all detector modules, individual modules can be switched on by --enable-det])], | |
188 | [disable_all=yes],[]) | |
189 | ||
85869391 | 190 | dnl ------------------------------------------------------------------ |
191 | AC_MSG_CHECKING([whether to impose strict coding conventions]) | |
192 | AC_ARG_ENABLE(strict, | |
2028353f | 193 | [AC_HELP_STRING([--disable-strict], |
194 | [disable coding convention checks ])], | |
195 | [],[enable_strict=yes]) | |
85869391 | 196 | if test "x$enable_strict" = "xyes" ; then |
f7561f8d | 197 | CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall -Wshadow" |
85869391 | 198 | fi |
199 | AC_MSG_RESULT([$enable_strict]) | |
b521659f | 200 | |
5b6ab198 | 201 | dnl ------------------------------------------------------------------ |
202 | AC_MSG_CHECKING([whether to enable component statistics]) | |
203 | AC_ARG_ENABLE(component-stat, | |
204 | [AC_HELP_STRING([--enable-component-stat], | |
205 | [enable component statistics ])], | |
24dc45d8 | 206 | [],[]) |
207 | ||
208 | dnl enable component statistics if not explicitely disabled | |
209 | if test "x$enable_component_stat" != "xno" && | |
210 | test "x$enable_debug" = "xyes" ; then | |
211 | enable_component_stat=yes.debug | |
212 | fi | |
213 | ||
214 | if test "x$enable_component_stat" = "x" ; then | |
215 | enable_component_stat=no | |
216 | fi | |
217 | ||
218 | if test "x$enable_component_stat" != "xno" ; then | |
5b6ab198 | 219 | AC_DEFINE(HLT_COMPONENT_STATISTICS) |
220 | fi | |
221 | AC_MSG_RESULT([$enable_component_stat]) | |
222 | ||
cad2d06c | 223 | dnl ------------------------------------------------------------------ |
224 | dnl ---- module checks | |
225 | dnl ------------------------------------------------------------------ | |
226 | save_CPPFLAGS=$CPPFLAGS | |
227 | save_LDFLAGS=$LDFLAGS | |
228 | save_LIBS=$LIBS | |
229 | ||
c8500eef | 230 | dnl ------------------------------------------------------------------ |
231 | AC_MSG_NOTICE([-------------------------------------------------]) | |
232 | AC_MSG_NOTICE([checking dependencies for HLTbase library]) | |
233 | HLTBASE_CHECKLIBS='XMLParser' | |
234 | for CHECKLIB in $HLTBASE_CHECKLIBS ; do | |
235 | LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}" | |
236 | LIBS="$save_LIBS $ROOTLIBS $ALIHLTBASE_LIBS" | |
237 | AC_CHECK_LIB([$CHECKLIB],[_init], [ALIHLTBASE_LIBS="$ALIHLTBASE_LIBS -l$CHECKLIB"]) | |
238 | done | |
239 | AC_SUBST([ALIHLTBASE_LIBS]) | |
240 | ||
b521659f | 241 | dnl ------------------------------------------------------------------ |
242 | AC_MSG_CHECKING([whether to compile sample library]) | |
243 | AH_TEMPLATE([HLT_SAMPLE],[hlt sample library]) | |
244 | AC_ARG_ENABLE(sample, | |
c018a1bd | 245 | [AC_HELP_STRING([--disable-sample], |
b521659f | 246 | [compile the sample library ])], |
2e742d30 | 247 | [], |
248 | [if test "x$have_aliroot" = "xno" ; then | |
249 | enable_sample="no...requires.AliRoot" | |
250 | else | |
251 | enable_sample=yes | |
252 | fi | |
253 | ]) | |
254 | ||
b521659f | 255 | if test "x$enable_sample" = "xyes" ; then |
256 | AC_DEFINE(HLT_SAMPLE) | |
257 | fi | |
258 | AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes) | |
259 | AC_MSG_RESULT([$enable_sample]) | |
260 | ||
c018a1bd | 261 | dnl ------------------------------------------------------------------ |
c018a1bd | 262 | AH_TEMPLATE([HLT_UTIL],[HLT utility library]) |
b59c004b | 263 | ALIUTIL_LIBS= |
264 | CHECK_HLTMODULE([util], | |
265 | [], | |
48bb48b6 | 266 | [], |
267 | [], [], [], | |
268 | [], [], | |
269 | []) | |
b59c004b | 270 | |
271 | if test "x$enable_module" = "xmissheader"; then | |
272 | enable_module="no...missing.headers" | |
273 | enable_util=$enable_module | |
274 | elif test "x$enable_module" = "xforce"; then | |
275 | enable_util="yes" | |
276 | else | |
277 | enable_util=$enable_module | |
278 | fi | |
c018a1bd | 279 | if test "x$enable_util" = "xyes" ; then |
280 | AC_DEFINE(HLT_UTIL) | |
b59c004b | 281 | ALIUTIL_LIBS=$ALIHLTMODULE_LIBS |
c018a1bd | 282 | fi |
283 | AM_CONDITIONAL(EN_HLT_UTIL, test x$enable_util = xyes) | |
b59c004b | 284 | AC_MSG_CHECKING([whether to compile Util library]) |
285 | AC_MSG_RESULT([$enable_module]) | |
286 | AC_SUBST([ALIUTIL_LIBS]) | |
c018a1bd | 287 | |
b521659f | 288 | dnl ------------------------------------------------------------------ |
b521659f | 289 | AH_TEMPLATE([HLT_TPC],[hlt tpc library]) |
f59fee6d | 290 | |
e642ae99 | 291 | ALITPC_LIBS= |
f59fee6d | 292 | CHECK_HLTMODULE([tpc], |
48bb48b6 | 293 | [], |
294 | [], | |
295 | [], [], [], | |
296 | [], [], | |
297 | []) | |
f59fee6d | 298 | |
c6b46c3f | 299 | if test "x$enable_module" = "xmissheader"; then |
300 | enable_module="no...missing.headers" | |
50a3793d | 301 | enable_tpc=$enable_module |
c6b46c3f | 302 | elif test "x$enable_module" = "xforce"; then |
303 | enable_tpc="yes" | |
f59fee6d | 304 | else |
305 | enable_tpc=$enable_module | |
306 | fi | |
2e742d30 | 307 | |
b521659f | 308 | if test "x$enable_tpc" = "xyes" ; then |
e642ae99 | 309 | AC_LANG_PUSH(C++) |
b521659f | 310 | AC_DEFINE(HLT_TPC) |
e642ae99 | 311 | ALITPC_LIBS=$ALIHLTMODULE_LIBS |
312 | dnl | |
313 | dnl Check for functionality in the TPC reconstruction required for online | |
314 | dnl processing | |
315 | dnl | |
316 | have_tpc_hltoffline_rec=no | |
317 | AC_MSG_CHECKING(for on-line features of TPC offline reconstruction) | |
318 | CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC" | |
319 | LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" | |
320 | LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS" | |
321 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliTPCtrackerMI.h> | |
322 | #include <AliTPCclustererMI.h> | |
323 | #include <TObjArray.h>], | |
324 | [AliTPCtrackerMI tracker; | |
325 | TObjArray* array=NULL; | |
326 | tracker.LoadClusters(array); | |
327 | AliTPCclustererMI cl(NULL, NULL); | |
89c2e505 | 328 | cl.GetOutputClonesArray();])], |
e642ae99 | 329 | [have_tpc_hltoffline_rec=yes], |
330 | [AC_DEFINE(HAVE_NOT_TPCOFFLINE_REC)]) | |
331 | AC_MSG_RESULT([$have_tpc_hltoffline_rec]) | |
332 | ||
0f058f3e | 333 | have_alitpcclusterparam_r40128=no |
334 | AC_MSG_CHECKING([checking for AliTPCClusterParam r40128]) | |
335 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliTPCClusterParam.h>], | |
336 | [AliTPCClusterParam param; | |
337 | float test=param.ParamS0Par(0,0,0)]);], | |
338 | [have_alitpcclusterparam_r40128=yes], | |
339 | [AC_DEFINE(HAVE_NOT_ALITPCCLUSTERPARAM_r40128)]) | |
340 | AC_MSG_RESULT([$have_alitpcclusterparam_r40128]) | |
341 | ||
342 | LIBS=$save_LIBS | |
343 | ||
344 | ||
e642ae99 | 345 | AC_CHECK_HEADER([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)]) |
346 | AC_CHECK_HEADER([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)]) | |
a553c904 | 347 | AC_CHECK_HEADER([AliAltroRawStreamV3.h], [], [AC_DEFINE(HAVE_NOT_ALTRORAWSTREAMV3)]) |
e642ae99 | 348 | |
349 | have_tpc_mapping=no | |
350 | if test ! "x$have_aliroot" = "xno" ; then | |
351 | # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC | |
352 | # which is stored in the TPC/mapping/Patchx.data files from | |
353 | # AliRoot version v4-04-Release (May 2006) | |
354 | AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available]) | |
355 | TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping | |
356 | AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data], | |
357 | [have_tpc_mapping=yes | |
358 | AC_SUBST(TPC_PAD_MAPPING_PATH) | |
359 | AC_DEFINE(HAVE_TPC_MAPPING)], | |
360 | []) | |
361 | ||
362 | fi | |
363 | AC_MSG_CHECKING([for TPC mapping layout]) | |
364 | AC_MSG_RESULT([$have_tpc_mapping]) | |
365 | AC_LANG_POP(C++) | |
366 | ||
adec4ad4 | 367 | else |
368 | enable_module=$enable_tpc | |
b521659f | 369 | fi |
370 | AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes) | |
d6e2c707 | 371 | AC_MSG_CHECKING([whether to compile TPC library]) |
c6b46c3f | 372 | AC_MSG_RESULT([$enable_module]) |
f59fee6d | 373 | AC_SUBST([ALITPC_LIBS]) |
b521659f | 374 | |
5e3820e2 | 375 | dnl ------------------------------------------------------------------ |
376 | AH_TEMPLATE([HLT_RCU],[hlt rcu library]) | |
377 | ||
378 | CHECK_HLTMODULE([rcu], | |
48bb48b6 | 379 | [], |
380 | [], | |
381 | [], [], [], | |
382 | [], [], | |
383 | []) | |
5e3820e2 | 384 | |
385 | if test "x$enable_module" = "xmissheader"; then | |
386 | enable_module="no...missing.headers" | |
50a3793d | 387 | enable_rcu=$enable_module |
5e3820e2 | 388 | elif test "x$enable_module" = "xforce"; then |
389 | enable_rcu="yes" | |
390 | else | |
48bb48b6 | 391 | enable_rcu=$enable_module |
5e3820e2 | 392 | fi |
393 | ||
394 | if test "x$enable_rcu" = "xyes" ; then | |
395 | AC_DEFINE(HLT_RCU) | |
adec4ad4 | 396 | else |
397 | enable_module=$enable_rcu | |
5e3820e2 | 398 | fi |
399 | AM_CONDITIONAL(EN_HLT_RCU, test x$enable_rcu = xyes) | |
d6e2c707 | 400 | AC_MSG_CHECKING([whether to compile RCU library]) |
5e3820e2 | 401 | AC_MSG_RESULT([$enable_module]) |
402 | AC_SUBST([ALIRCU_LIBS]) | |
403 | ||
fe8738cf | 404 | dnl ------------------------------------------------------------------ |
405 | AH_TEMPLATE([HLT_CALO],[hlt calo(rimeter) library]) | |
406 | ||
407 | ALICALO_LIBS= | |
408 | CHECK_HLTMODULE([calo], | |
48bb48b6 | 409 | [], [], |
410 | [], [], [], | |
411 | [], [], | |
412 | []) | |
fe8738cf | 413 | |
414 | if test "x$enable_module" = "xmissheader"; then | |
415 | enable_module="no...missing.headers" | |
416 | enable_calo=$enable_module | |
417 | elif test "x$enable_module" = "xforce"; then | |
418 | enable_calo="yes" | |
419 | else | |
fe8738cf | 420 | enable_calo=$enable_module |
fe8738cf | 421 | fi |
422 | ||
423 | if test "x$enable_calo" = "xyes" ; then | |
424 | AC_DEFINE(HLT_CALO) | |
425 | ALICALO_LIBS=$ALIHLTMODULE_LIBS | |
426 | else | |
427 | enable_module=$enable_calo | |
428 | fi | |
429 | AM_CONDITIONAL(EN_HLT_CALO, test x$enable_calo = xyes) | |
430 | AC_MSG_CHECKING([whether to compile CALO library]) | |
431 | AC_MSG_RESULT([$enable_module]) | |
432 | AC_SUBST([ALICALO_LIBS]) | |
433 | ||
c160eda8 | 434 | dnl ------------------------------------------------------------------ |
c160eda8 | 435 | AH_TEMPLATE([HLT_PHOS],[hlt phos library]) |
f59fee6d | 436 | |
437 | ALIPHOS_LIBS= | |
438 | CHECK_HLTMODULE([phos], | |
48bb48b6 | 439 | [], [], |
440 | [], [], [], | |
441 | [], [], | |
442 | []) | |
f59fee6d | 443 | |
c6b46c3f | 444 | if test "x$enable_module" = "xmissheader"; then |
445 | enable_module="no...requires.AliRoot>v4-05-07" | |
50a3793d | 446 | enable_phos=$enable_module |
c6b46c3f | 447 | elif test "x$enable_module" = "xforce"; then |
448 | enable_phos="yes" | |
f59fee6d | 449 | else |
f59fee6d | 450 | enable_phos=$enable_module |
f59fee6d | 451 | fi |
2e742d30 | 452 | |
c160eda8 | 453 | if test "x$enable_phos" = "xyes" ; then |
454 | AC_DEFINE(HLT_PHOS) | |
f59fee6d | 455 | ALIPHOS_LIBS=$ALIHLTMODULE_LIBS |
adec4ad4 | 456 | else |
457 | enable_module=$enable_phos | |
c160eda8 | 458 | fi |
459 | AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes) | |
d6e2c707 | 460 | AC_MSG_CHECKING([whether to compile PHOS library]) |
c6b46c3f | 461 | AC_MSG_RESULT([$enable_module]) |
f59fee6d | 462 | AC_SUBST([ALIPHOS_LIBS]) |
c160eda8 | 463 | |
fe8738cf | 464 | dnl ------------------------------------------------------------------ |
465 | AH_TEMPLATE([HLT_EMCAL],[hlt emcal library]) | |
466 | ||
467 | ALIEMCAL_LIBS= | |
468 | CHECK_HLTMODULE([emcal], | |
48bb48b6 | 469 | [], [], |
470 | [], [], [], | |
471 | [], [], | |
472 | []) | |
fe8738cf | 473 | |
474 | if test "x$enable_module" = "xmissheader"; then | |
475 | enable_module="no...header.missing" | |
476 | enable_emcal=$enable_module | |
477 | elif test "x$enable_module" = "xforce"; then | |
478 | enable_emcal="yes" | |
479 | else | |
480 | enable_emcal=$enable_module | |
481 | fi | |
482 | ||
483 | if test "x$enable_emcal" = "xyes" ; then | |
484 | AC_DEFINE(HLT_EMCAL) | |
485 | ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS | |
486 | else | |
487 | enable_module=$enable_emcal | |
488 | fi | |
489 | AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes) | |
490 | AC_MSG_CHECKING([whether to compile EMCAL library]) | |
491 | AC_MSG_RESULT([$enable_module]) | |
492 | AC_SUBST([ALIEMCAL_LIBS]) | |
493 | ||
c6b46c3f | 494 | dnl ------------------------------------------------------------------ |
495 | AH_TEMPLATE([HLT_TRD],[hlt trd library]) | |
496 | ||
f59fee6d | 497 | ALITRD_LIBS= |
498 | CHECK_HLTMODULE([trd], | |
499 | [], [], | |
48bb48b6 | 500 | [], [], [], |
501 | [], [], | |
502 | []) | |
f59fee6d | 503 | |
c6b46c3f | 504 | if test "x$enable_module" = "xmissheader"; then |
505 | enable_module="no...requires.AliRoot>v4-07-Release" | |
50a3793d | 506 | enable_trd=$enable_module |
c6b46c3f | 507 | elif test "x$enable_module" = "xforce"; then |
508 | enable_trd="yes" | |
f59fee6d | 509 | else |
510 | enable_trd=$enable_module | |
f59fee6d | 511 | fi |
2e742d30 | 512 | |
0f51f5b8 | 513 | if test "x$enable_trd" = "xyes" ; then |
514 | AC_DEFINE(HLT_TRD) | |
f59fee6d | 515 | ALITRD_LIBS=$ALIHLTMODULE_LIBS |
adec4ad4 | 516 | else |
517 | enable_module=$enable_trd | |
0f51f5b8 | 518 | fi |
519 | AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes) | |
d6e2c707 | 520 | AC_MSG_CHECKING([whether to compile TRD library]) |
c6b46c3f | 521 | AC_MSG_RESULT([$enable_module]) |
f59fee6d | 522 | AC_SUBST([ALITRD_LIBS]) |
0f51f5b8 | 523 | |
629266d1 | 524 | dnl ------------------------------------------------------------------ |
525 | AH_TEMPLATE([HLT_FMD],[hlt fmd library]) | |
526 | ||
527 | ALIFMD_LIBS=$ALIHLTMODULE_LIBS | |
528 | CHECK_HLTMODULE([fmd], | |
529 | [], [], | |
48bb48b6 | 530 | [], [], [], |
531 | [], [], | |
532 | []) | |
629266d1 | 533 | |
534 | if test "x$enable_module" = "xmissheader"; then | |
50a3793d | 535 | enable_module="no...missing.headers" |
536 | enable_fmd=$enable_module | |
629266d1 | 537 | elif test "x$enable_module" = "xforce"; then |
538 | enable_fmd="yes" | |
539 | else | |
540 | enable_fmd=$enable_module | |
629266d1 | 541 | fi |
542 | ||
543 | if test "x$enable_fmd" = "xyes" ; then | |
544 | AC_DEFINE(HLT_FMD) | |
545 | ALIFMD_LIBS=$ALIHLTMODULE_LIBS | |
546 | else | |
547 | enable_module=$enable_fmd | |
548 | fi | |
549 | AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes) | |
550 | AC_MSG_CHECKING([whether to compile FMD library]) | |
551 | AC_MSG_RESULT([$enable_module]) | |
552 | AC_SUBST([ALIFMD_LIBS]) | |
553 | ||
57cd80a1 | 554 | dnl ------------------------------------------------------------------ |
555 | AH_TEMPLATE([HLT_ZDC],[hlt zdc library]) | |
556 | ||
557 | ALIZDC_LIBS=$ALIHLTMODULE_LIBS | |
558 | CHECK_HLTMODULE([zdc], | |
48bb48b6 | 559 | [], [], |
560 | [], [], [], | |
561 | [], [], | |
562 | []) | |
57cd80a1 | 563 | |
564 | if test "x$enable_module" = "xmissheader"; then | |
565 | enable_module="no...missing.headers" | |
566 | enable_zdc=$enable_module | |
567 | elif test "x$enable_module" = "xforce"; then | |
568 | enable_zdc="yes" | |
569 | else | |
570 | enable_zdc=$enable_module | |
571 | fi | |
572 | ||
573 | if test "x$enable_zdc" = "xyes" ; then | |
574 | AC_DEFINE(HLT_ZDC) | |
575 | ALIZDC_LIBS=$ALIHLTMODULE_LIBS | |
576 | else | |
577 | enable_module=$enable_zdc | |
578 | fi | |
579 | AM_CONDITIONAL(EN_HLT_ZDC, test x$enable_zdc = xyes) | |
580 | AC_MSG_CHECKING([whether to compile ZDC library]) | |
581 | AC_MSG_RESULT([$enable_module]) | |
582 | AC_SUBST([ALIZDC_LIBS]) | |
583 | ||
94cc9aab | 584 | dnl ------------------------------------------------------------------ |
94cc9aab | 585 | AH_TEMPLATE([HLT_MUON],[hlt dimuon library]) |
2e742d30 | 586 | |
f59fee6d | 587 | ALIMUON_LIBS= |
e89e6b23 | 588 | CHECK_HLTMODULE([dimuon], |
48bb48b6 | 589 | [], |
590 | [], | |
591 | [], [], [], | |
592 | [], [], | |
593 | []) | |
f59fee6d | 594 | |
595 | if test "x$enable_module" = "xmissheader"; then | |
a853a794 | 596 | enable_module="no...requires.AliRoot>=v4-08-Release" |
50a3793d | 597 | enable_muon=$enable_module |
c6b46c3f | 598 | elif test "x$enable_module" = "xforce"; then |
599 | enable_muon="yes" | |
f59fee6d | 600 | else |
601 | enable_muon=$enable_module | |
602 | fi | |
603 | ||
604 | if test "x$enable_muon" = "xyes" ; then | |
94cc9aab | 605 | AC_DEFINE(HLT_MUON) |
f59fee6d | 606 | ALIMUON_LIBS=$ALIHLTMODULE_LIBS |
6ed1b948 | 607 | AC_LANG_PUSH(C++) |
accd4c8f | 608 | save_CPPFLAGS="$CPPFLAGS" |
609 | ||
6ed1b948 | 610 | dnl |
611 | dnl Check for functionality GetRawStream AliMUONDigitMaker.h | |
612 | dnl | |
613 | have_muon_digitmaker_getrawstream=no | |
614 | AC_MSG_CHECKING(for GetRawStream methods of AliMUONDigitMaker) | |
615 | CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON" | |
616 | LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" | |
617 | LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS" | |
618 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMUONDigitMaker.h>], | |
619 | [AliMUONDigitMaker dm; | |
620 | dm.GetRawStreamTracker();])], | |
621 | [have_muon_digitmaker_getrawstream=yes], | |
622 | [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)]) | |
623 | LIBS=$save_LIBS | |
624 | AC_MSG_RESULT([$have_muon_digitmaker_getrawstream]) | |
53eb3786 | 625 | |
626 | dnl | |
627 | dnl Check for AliMpPad::GetPositionX/Y | |
628 | dnl change of implementation in MUON code | |
629 | dnl revision 31769, Wed Apr 1 2009 | |
630 | dnl | |
631 | have_muon_alimppad_getposition=no | |
632 | AC_MSG_CHECKING(for GetPosition methods of AliMpPad) | |
633 | CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON/mapping" | |
634 | LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" | |
635 | LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS" | |
636 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMpPad.h>], | |
637 | [AliMpPad pad; | |
638 | pad.GetPositionX();])], | |
639 | [have_muon_alimppad_getposition=yes], | |
640 | [AC_DEFINE(HAVE_NOT_MUON_ALIMPPAD_GETPOSITION)]) | |
641 | LIBS=$save_LIBS | |
642 | AC_MSG_RESULT([$have_muon_alimppad_getposition]) | |
643 | ||
accd4c8f | 644 | CPPFLAGS="$save_CPPFLAGS" |
6ed1b948 | 645 | |
646 | AC_LANG_POP(C++) | |
adec4ad4 | 647 | else |
648 | enable_module=$enable_muon | |
94cc9aab | 649 | fi |
f59fee6d | 650 | AM_CONDITIONAL(EN_HLT_MUON, test x$enable_muon = xyes) |
d6e2c707 | 651 | AC_MSG_CHECKING([whether to compile MUON library]) |
c6b46c3f | 652 | AC_MSG_RESULT([$enable_module]) |
f59fee6d | 653 | AC_SUBST([ALIMUON_LIBS]) |
94cc9aab | 654 | |
d6e2c707 | 655 | dnl ------------------------------------------------------------------ |
656 | AH_TEMPLATE([HLT_TRIGGER],[hlt trigger library]) | |
657 | ||
658 | ALITRIGGER_LIBS= | |
659 | CHECK_HLTMODULE([trigger], | |
48bb48b6 | 660 | [], [], |
661 | [], [], [], | |
662 | [], [], | |
663 | []) | |
d6e2c707 | 664 | |
665 | if test "x$enable_module" = "xmissheader"; then | |
666 | enable_module="no...header.missing" | |
50a3793d | 667 | enable_trigger=$enable_module |
d6e2c707 | 668 | elif test "x$enable_module" = "xforce"; then |
669 | enable_trigger="yes" | |
670 | else | |
671 | enable_trigger=$enable_module | |
672 | fi | |
673 | ||
674 | if test "x$enable_trigger" = "xyes" ; then | |
675 | AC_DEFINE(HLT_TRIGGER) | |
676 | ALITRIGGER_LIBS=$ALIHLTMODULE_LIBS | |
adec4ad4 | 677 | else |
678 | enable_module=$enable_trigger | |
d6e2c707 | 679 | fi |
680 | AM_CONDITIONAL(EN_HLT_TRIGGER, test x$enable_trigger = xyes) | |
681 | AC_MSG_CHECKING([whether to compile Trigger library]) | |
682 | AC_MSG_RESULT([$enable_module]) | |
683 | AC_SUBST([ALITRIGGER_LIBS]) | |
684 | ||
ec6160d5 | 685 | dnl ------------------------------------------------------------------ |
686 | AH_TEMPLATE([HLT_GLOBAL],[hlt global library]) | |
687 | ||
688 | ALIGLOBAL_LIBS= | |
689 | CHECK_HLTMODULE([global], | |
48bb48b6 | 690 | [], [], |
691 | [], [], [], | |
692 | [], [], | |
693 | []) | |
ec6160d5 | 694 | |
695 | if test "x$enable_module" = "xmissheader"; then | |
696 | enable_module="no...header.missing" | |
697 | enable_global=$enable_module | |
698 | elif test "x$enable_module" = "xforce"; then | |
699 | enable_global="yes" | |
700 | else | |
701 | enable_global=$enable_module | |
ec6160d5 | 702 | fi |
703 | ||
704 | if test "x$enable_global" = "xyes" ; then | |
705 | AC_DEFINE(HLT_GLOBAL) | |
706 | ALIGLOBAL_LIBS=$ALIHLTMODULE_LIBS | |
707 | else | |
708 | enable_module=$enable_global | |
709 | fi | |
710 | AM_CONDITIONAL(EN_HLT_GLOBAL, test x$enable_global = xyes) | |
711 | AC_MSG_CHECKING([whether to compile Global library]) | |
712 | AC_MSG_RESULT([$enable_module]) | |
713 | AC_SUBST([ALIGLOBAL_LIBS]) | |
714 | ||
33daad3d | 715 | dnl ------------------------------------------------------------------ |
716 | AH_TEMPLATE([HLT_JET],[hlt jet library]) | |
717 | ||
04cbe3ac | 718 | ALIFASTJET_HEADER= |
719 | ALIFASTJET_INCFLAGS= | |
720 | ALIFASTJET_LIBS= | |
721 | ALIFASTJET_LDFLAGS= | |
722 | AC_ARG_WITH(fastjet, [installation path of the FASTJET package], | |
723 | [ test "x$with_fastjet" != "xno" && export FASTJET=$with_fastjet], | |
724 | [ test -n $FASTJET && with_fastjet=$FASTJET ]) | |
725 | ||
726 | if test "x$with_fastjet" != "x" && test "x$with_fastjet" != "xno" ; then | |
727 | ALIFASTJET_INCFLAGS="-I${with_fastjet}/include" | |
3665c6c3 | 728 | ALIFASTJET_HEADER="fastjet/PseudoJet.hh" |
04cbe3ac | 729 | ALIFASTJET_LDFLAGS="-L${with_fastjet}/lib" |
730 | ALIFASTJET_LIBS="CGAL fastjet" | |
33daad3d | 731 | else |
04cbe3ac | 732 | with_fastjet=no |
33daad3d | 733 | fi |
734 | ||
04cbe3ac | 735 | CHECK_HLTMODULE([jet], |
48bb48b6 | 736 | [], [], |
737 | [], [], [], | |
738 | [], | |
739 | [], | |
740 | []) | |
33daad3d | 741 | |
742 | if test "x$enable_module" = "xmissheader"; then | |
743 | enable_module="no...header.missing" | |
744 | enable_jet=$enable_module | |
745 | elif test "x$enable_module" = "xforce"; then | |
746 | enable_jet="yes" | |
747 | else | |
748 | enable_jet=$enable_module | |
749 | fi | |
750 | ||
04cbe3ac | 751 | if test "x$enable_jet" = "xyes" ; then |
33daad3d | 752 | AC_DEFINE(HLT_JET) |
753 | ALIJET_LIBS="$ALIHLTMODULE_LIBS" | |
04cbe3ac | 754 | |
755 | if test "x$with_fastjet" != "xno"; then | |
756 | AC_DEFINE(HAVE_FASTJET) | |
757 | AC_DEFINE(WITHFASTJET) | |
02bfa57b | 758 | ALIJET_LIBS="$ALIJET_LIBS $FASTJET_LDFLAGS" |
04cbe3ac | 759 | fi |
760 | AC_MSG_CHECKING([compilation with FASTJET package]) | |
761 | AC_MSG_RESULT($with_fastjet) | |
762 | ||
33daad3d | 763 | else |
764 | enable_module=$enable_jet | |
765 | fi | |
766 | ||
33daad3d | 767 | AM_CONDITIONAL(EN_HLT_JET, test x$enable_jet = xyes) |
768 | AC_MSG_CHECKING([whether to compile Jet library]) | |
769 | AC_MSG_RESULT([$enable_module]) | |
770 | AC_SUBST([ALIJET_LIBS]) | |
771 | ||
aed3e6fc | 772 | dnl ------------------------------------------------------------------ |
773 | AH_TEMPLATE([HLT_VZERO],[hlt vzero library]) | |
774 | ||
775 | ALIVZERO_LIBS= | |
776 | CHECK_HLTMODULE([vzero], | |
48bb48b6 | 777 | [], [], |
778 | [], [], [], | |
779 | [], [], | |
780 | []) | |
aed3e6fc | 781 | |
782 | if test "x$enable_module" = "xmissheader"; then | |
783 | enable_module="no...header.missing" | |
784 | enable_vzero=$enable_module | |
785 | elif test "x$enable_module" = "xforce"; then | |
786 | enable_vzero="yes" | |
787 | else | |
788 | enable_vzero=$enable_module | |
789 | fi | |
790 | ||
791 | if test "x$enable_vzero" = "xyes" ; then | |
792 | AC_DEFINE(HLT_VZERO) | |
793 | ALIVZERO_LIBS=$ALIHLTMODULE_LIBS | |
794 | else | |
795 | enable_module=$enable_vzero | |
796 | fi | |
797 | AM_CONDITIONAL(EN_HLT_VZERO, test x$enable_vzero = xyes) | |
798 | AC_MSG_CHECKING([whether to compile VZERO library]) | |
799 | AC_MSG_RESULT([$enable_module]) | |
800 | AC_SUBST([ALIVZERO_LIBS]) | |
801 | ||
d6e2c707 | 802 | dnl ------------------------------------------------------------------ |
803 | AH_TEMPLATE([HLT_ITS],[hlt its library]) | |
804 | ||
805 | ALIITS_LIBS= | |
806 | CHECK_HLTMODULE([its], | |
48bb48b6 | 807 | [], [], |
808 | [], [], [], | |
809 | [], [], | |
810 | []) | |
d6e2c707 | 811 | |
812 | if test "x$enable_module" = "xmissheader"; then | |
813 | enable_module="no...header.missing" | |
50a3793d | 814 | enable_its=$enable_module |
d6e2c707 | 815 | elif test "x$enable_module" = "xforce"; then |
816 | enable_its="yes" | |
817 | else | |
818 | enable_its=$enable_module | |
819 | fi | |
820 | ||
821 | if test "x$enable_its" = "xyes" ; then | |
822 | AC_DEFINE(HLT_ITS) | |
823 | ALIITS_LIBS=$ALIHLTMODULE_LIBS | |
adec4ad4 | 824 | else |
825 | enable_module=$enable_its | |
d6e2c707 | 826 | fi |
827 | AM_CONDITIONAL(EN_HLT_ITS, test x$enable_its = xyes) | |
828 | AC_MSG_CHECKING([whether to compile ITS library]) | |
829 | AC_MSG_RESULT([$enable_module]) | |
830 | AC_SUBST([ALIITS_LIBS]) | |
831 | ||
e89e6b23 | 832 | dnl ------------------------------------------------------------------ |
833 | AH_TEMPLATE([HLT_COMP],[hlt comp library]) | |
834 | ||
835 | ALICOMP_LIBS= | |
836 | CHECK_HLTMODULE([comp], | |
48bb48b6 | 837 | [], [], |
838 | [], [], [], | |
839 | [], [], | |
840 | []) | |
e89e6b23 | 841 | |
842 | if test "x$enable_module" = "xmissheader"; then | |
c6b46c3f | 843 | enable_module="no...header.missing" |
50a3793d | 844 | enable_comp=$enable_module |
c6b46c3f | 845 | elif test "x$enable_module" = "xforce"; then |
846 | enable_comp="yes" | |
e89e6b23 | 847 | else |
848 | enable_comp=$enable_module | |
849 | fi | |
850 | ||
851 | if test "x$enable_comp" = "xyes" ; then | |
852 | AC_DEFINE(HLT_COMP) | |
853 | ALICOMP_LIBS=$ALIHLTMODULE_LIBS | |
adec4ad4 | 854 | else |
855 | enable_module=$enable_comp | |
e89e6b23 | 856 | fi |
857 | AM_CONDITIONAL(EN_HLT_COMP, test x$enable_comp = xyes) | |
858 | AC_MSG_CHECKING([whether to compile comp library]) | |
c6b46c3f | 859 | AC_MSG_RESULT([$enable_module]) |
e89e6b23 | 860 | AC_SUBST([ALICOMP_LIBS]) |
861 | ||
b521659f | 862 | dnl ------------------------------------------------------------------ |
fc455fba | 863 | AC_MSG_CHECKING([whether to disable AliRoot logging]) |
864 | AH_TEMPLATE([NOALIROOT_LOGGING],[disable AliRoot logging]) | |
865 | AC_ARG_ENABLE(aliroot-logging, | |
866 | [AC_HELP_STRING([--disable-aliroot-logging], | |
867 | [disable logging through AliRoot logging methods])], | |
868 | [],[enable_aliroot_logging=no]) | |
c018a1bd | 869 | if test "x$have_aliroot" = "xno" ; then |
870 | enable_aliroot_logging=yes # this means 'disable' | |
871 | fi | |
fc455fba | 872 | if test "x$enable_aliroot_logging" != "xno" ; then |
873 | AC_DEFINE(NOALIROOT_LOGGING) | |
b521659f | 874 | fi |
fc455fba | 875 | AM_CONDITIONAL(NOALIROOT_LOGGING, test x$enable_aliroot_logging != no) |
876 | AC_MSG_RESULT([$enable_aliroot_logging]) | |
b521659f | 877 | |
878 | dnl ------------------------------------------------------------------ | |
879 | AC_MSG_CHECKING([whether to enable saving MC data through the chain]) | |
880 | AH_TEMPLATE([DOMC],[MC saving]) | |
881 | AC_ARG_ENABLE(mc-saving, | |
882 | [AC_HELP_STRING([--enable-mc-saving], | |
883 | [enable saving MC data through the chain])], | |
884 | [],[enable_mc_saving=no]) | |
885 | if test "x$enable_mc_saving" = "xyes" ; then | |
886 | AC_DEFINE(DOMC) | |
887 | fi | |
888 | AC_MSG_RESULT([$enable_mc_saving]) | |
889 | ||
b521659f | 890 | dnl ------------------------------------------------------------------ |
b521659f | 891 | dnl certainly something old, but we keep the define |
892 | AC_MSG_CHECKING([whether to use ROWHOUGH]) | |
893 | AH_TEMPLATE([USEROWHOUGH],[HLT ROWHOUGH]) | |
894 | AC_ARG_ENABLE(rowhough, | |
895 | [AC_HELP_STRING([--enable-rowhough], | |
896 | [use ROWHOUGH ])], | |
897 | [],[enable_rowhough=no]) | |
898 | if test "x$enable_rowhough" = "xyes" ; then | |
899 | AC_DEFINE(USEROWHOUGH) | |
900 | fi | |
901 | AC_MSG_RESULT([$enable_rowhough]) | |
902 | ||
53feaef5 | 903 | dnl ------------------------------------------------------------------ |
904 | dnl The ROOTVERSION and ALIROOTVERSION defines were used by the old | |
905 | dnl stand-alone build system. This is most likely something old we can | |
906 | dnl get rid off later, or do something more reasonable. Since the define | |
907 | dnl needs the quotes they have to be escaped. This works well for the | |
908 | dnl Makefile but not for the configure script. So we have to add the | |
909 | dnl defines after all the other checks. | |
910 | CPPFLAGS="$CPPFLAGS -DROOTVERSION=\\\"`${ROOTCONF} --version`\\\"" | |
911 | if test ! "x$have_aliroot" = "xno" ; then | |
912 | CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=\\\"Unknown\\\"" | |
913 | fi | |
914 | ||
b521659f | 915 | dnl ------------------------------------------------------------------ |
916 | dnl | |
917 | dnl Documentation | |
918 | dnl | |
919 | AC_ARG_VAR(DOXYGEN, The Documentation Generator) | |
920 | AC_PATH_PROG(PERL, perl) | |
921 | AC_PATH_PROG(DOXYGEN, doxygen) | |
5894eaa5 | 922 | AC_ARG_ENABLE(dot, |
923 | [AC_HELP_STRING([--enable-dot], | |
924 | [enable dot documentation generator])], | |
925 | [],[enable_dot=no]) | |
b521659f | 926 | HAVE_DOT=NO |
927 | DOT_PATH= | |
928 | AC_PATH_PROG(DOT, dot) | |
5894eaa5 | 929 | if test "x$DOT" != "x" && test "x$enable_dot" = "xyes" ; then |
b521659f | 930 | HAVE_DOT=YES |
931 | DOT_PATH=`dirname $DOT` | |
932 | fi | |
ae1c1854 | 933 | |
934 | AC_MSG_CHECKING([for documentation mode]) | |
935 | AC_ARG_ENABLE(doc, | |
936 | [AC_HELP_STRING([--disable-doc], | |
937 | [disable documentation build; monolithic build --enable-doc=mono ])], | |
938 | [],[enable_doc=modules]) | |
fb345ed7 | 939 | |
ae1c1854 | 940 | if test "x$DOXYGEN" = "x" ; then |
941 | enable_doc=no.doxygen | |
fb345ed7 | 942 | elif test "x$enable_doc" = "xyes" ; then |
943 | enable_doc=yes | |
ae1c1854 | 944 | elif test ! "x$enable_doc" = "xmono" && \ |
945 | test ! "x$enable_doc" = "xmodules" && \ | |
946 | test ! "x$enable_doc" = "xno"; then | |
947 | enable_doc=no | |
948 | AC_MSG_WARN([unknown option]) | |
949 | fi | |
950 | if test "x$enable_doc" = "xno" ; then | |
951 | enable_doc=off | |
952 | DOXYGEN= | |
953 | fi | |
954 | ||
955 | AC_MSG_RESULT([$enable_doc]) | |
956 | AM_CONDITIONAL(MONOLITHIC_DOC, test "x$enable_doc" = "xmono") | |
53e94895 | 957 | AM_CONDITIONAL(BUILD_DOC, test ! "x$DOXYGEN" = "x") |
b521659f | 958 | AC_SUBST([HAVE_DOT]) |
959 | AC_SUBST([DOT_PATH]) | |
960 | ||
90ebac25 | 961 | dnl HAVE_SRC_SUBDIR=${abs_top_srcdir}/src |
962 | dnl echo $HAVE_SRC_SUBDIR | |
963 | dnl if ! test -d $HAVE_SRC_SUBDIR; then | |
964 | dnl HAVE_SRC_SUBDIR= | |
965 | dnl fi | |
966 | dnl AC_SUBST([HAVE_SRC_SUBDIR]) | |
967 | ||
2bbbadd1 | 968 | dnl ------------------------------------------------------------------ |
7233bc62 | 969 | AC_MSG_NOTICE([---------------------------------------------- ]) |
970 | AC_MSG_NOTICE([ build summary ]) | |
971 | AC_MSG_NOTICE([---------------------------------------------- ]) | |
972 | ||
b521659f | 973 | AC_CONFIG_FILES([Makefile |
974 | BASE/Makefile | |
53feaef5 | 975 | BASE/setenv.sh |
976 | BASE/setenv.csh | |
2be16a33 | 977 | BASE/HOMER/Makefile |
242bb794 | 978 | BASE/util/Makefile |
4b31e06b | 979 | BASE/util/test/Makefile |
d098ebd4 | 980 | BASE/interface/Makefile |
853121af | 981 | BASE/test/Makefile |
1a21074a | 982 | BASE/interface/test/Makefile |
b521659f | 983 | doc/Makefile |
2efb85be | 984 | doc/doxygen.conf |
985 | doc/doxymodule.conf]) | |
b521659f | 986 | |
7233bc62 | 987 | dnl AliRoot and installation directory for libraries |
988 | dnl | |
989 | AC_MSG_NOTICE([AliRoot: $have_aliroot]) | |
990 | AM_CONDITIONAL(HAVE_ALIROOT, test "x$have_aliroot" != "xno" ) | |
991 | if test "x$have_aliroot" != "xno"; then | |
992 | AC_CONFIG_FILES([sim/Makefile | |
993 | rec/Makefile | |
652cf9d2 | 994 | rec/test/Makefile |
436c2d0c | 995 | rec/startAliEVE-barrel-tracks.sh |
7233bc62 | 996 | shuttle/Makefile |
ff4edcee | 997 | pendolino/Makefile |
ce5f90bf | 998 | benchmark/Makefile |
ed292d06 | 999 | QA/Makefile |
7233bc62 | 1000 | ]) |
1001 | fi | |
1002 | if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then | |
1003 | libdir=\${exec_prefix}/lib/tgt_$ALICE_TARGET | |
1004 | AC_MSG_NOTICE([libdir set to $libdir]) | |
1005 | fi | |
1006 | ||
1007 | AC_MSG_NOTICE([compile sample library: $enable_sample]) | |
1008 | if test "x$enable_sample" = "xyes"; then | |
1009 | AC_CONFIG_FILES([SampleLib/Makefile]) | |
1010 | fi | |
1011 | ||
652cf9d2 | 1012 | AC_MSG_NOTICE([compile RCU library: $enable_rcu]) |
1013 | if test "x$enable_rcu" = "xyes"; then | |
1014 | AC_CONFIG_FILES([RCU/Makefile | |
1015 | RCU/test/Makefile | |
1016 | ]) | |
1017 | fi | |
1018 | ||
7233bc62 | 1019 | AC_MSG_NOTICE([compile TPC library: $enable_tpc]) |
1020 | if test "x$enable_tpc" = "xyes"; then | |
1021 | AC_CONFIG_FILES([TPCLib/Makefile | |
1022 | TPCLib/test/Makefile | |
1023 | TPCLib/mapping2array.cxx | |
b658d7e4 | 1024 | TPCLib/EVE/Makefile |
32e0c022 | 1025 | TPCLib/calibration/Makefile |
7233bc62 | 1026 | ]) |
1027 | fi | |
1028 | ||
fe8738cf | 1029 | AC_MSG_NOTICE([compile CALO library: $enable_calo]) |
1030 | if test "x$enable_calo" = "xyes"; then | |
1031 | AC_CONFIG_FILES([CALO/Makefile | |
1032 | CALO/test/Makefile]) | |
1033 | fi | |
1034 | ||
7233bc62 | 1035 | AC_MSG_NOTICE([compile PHOS library: $enable_phos]) |
1036 | if test "x$enable_phos" = "xyes"; then | |
1037 | AC_CONFIG_FILES([PHOS/Makefile]) | |
1038 | fi | |
1039 | ||
fe8738cf | 1040 | AC_MSG_NOTICE([compile EMCAL library: $enable_emcal]) |
1041 | if test "x$enable_emcal" = "xyes"; then | |
1042 | AC_CONFIG_FILES([EMCAL/Makefile]) | |
1043 | fi | |
1044 | ||
7233bc62 | 1045 | AC_MSG_NOTICE([compile TRD library: $enable_trd]) |
1046 | if test "x$enable_trd" = "xyes"; then | |
1047 | AC_CONFIG_FILES([TRD/Makefile]) | |
1048 | fi | |
1049 | ||
50a3793d | 1050 | AC_MSG_NOTICE([compile FMD library: $enable_fmd]) |
1051 | if test "x$enable_fmd" = "xyes"; then | |
1052 | AC_CONFIG_FILES([FMD/Makefile]) | |
1053 | fi | |
1054 | ||
57cd80a1 | 1055 | AC_MSG_NOTICE([compile ZDC library: $enable_zdc]) |
1056 | if test "x$enable_zdc" = "xyes"; then | |
1057 | AC_CONFIG_FILES([ZDC/Makefile]) | |
1058 | fi | |
1059 | ||
7233bc62 | 1060 | AC_MSG_NOTICE([compile MUON library: $enable_muon]) |
1061 | if test "x$enable_muon" = "xyes"; then | |
1062 | AC_CONFIG_FILES([MUON/Makefile]) | |
1063 | fi | |
1064 | ||
1065 | AC_MSG_NOTICE([compile ITS library: $enable_its]) | |
1066 | if test "x$enable_its" = "xyes"; then | |
1067 | AC_CONFIG_FILES([ITS/Makefile]) | |
1068 | fi | |
1069 | ||
1070 | AC_MSG_NOTICE([compile trigger library: $enable_trigger]) | |
1071 | if test "x$enable_trigger" = "xyes"; then | |
0a76630e | 1072 | AC_CONFIG_FILES([trigger/Makefile |
1073 | trigger/test/Makefile]) | |
7233bc62 | 1074 | fi |
1075 | ||
ec6160d5 | 1076 | AC_MSG_NOTICE([compile global library: $enable_global]) |
1077 | if test "x$enable_global" = "xyes"; then | |
1078 | AC_CONFIG_FILES([global/Makefile]) | |
1079 | fi | |
1080 | ||
33daad3d | 1081 | AC_MSG_NOTICE([compile jet library: $enable_jet]) |
1082 | if test "x$enable_jet" = "xyes"; then | |
1083 | AC_CONFIG_FILES([JET/Makefile]) | |
1084 | fi | |
1085 | ||
aed3e6fc | 1086 | AC_MSG_NOTICE([compile vzero library: $enable_vzero]) |
1087 | if test "x$enable_vzero" = "xyes"; then | |
1088 | AC_CONFIG_FILES([VZERO/Makefile]) | |
1089 | fi | |
1090 | ||
7233bc62 | 1091 | AC_MSG_NOTICE([compile comp library: $enable_comp]) |
1092 | if test "x$enable_comp" = "xyes"; then | |
1093 | AC_CONFIG_FILES([comp/Makefile]) | |
1094 | fi | |
b521659f | 1095 | |
1096 | AC_OUTPUT | |
1097 | dnl | |
1098 | dnl EOF | |
1099 | dnl | |
1100 |