-AC_MSG_CHECKING([whether to enable HLT logging])
-AH_TEMPLATE([NOLOGGING],[disable hlt logging])
-AC_ARG_ENABLE(logging,
- [AC_HELP_STRING([--enable-logging],
- [enable logging])],
- [],[enable_logging=yes])
-if test "x$enable_logging" != "xyes" ; then
- AC_DEFINE(NOLOGGING)
+AC_MSG_CHECKING([whether to compile trd library])
+AH_TEMPLATE([HLT_TRD],[hlt trd library])
+AC_ARG_ENABLE(trd,
+ [AC_HELP_STRING([--enable-trd],
+ [compile the trd library ])],
+ [],[enable_trd=yes])
+if test "x$have_aliroot" = "xno" ; then
+ enable_trd="no...requires.AliRoot"
+fi
+if test "x$enable_trd" = "xyes" ; then
+ AC_DEFINE(HLT_TRD)
+fi
+AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes)
+AC_MSG_RESULT([$enable_trd])
+
+dnl ------------------------------------------------------------------
+AC_MSG_CHECKING([whether to disable AliRoot logging])
+AH_TEMPLATE([NOALIROOT_LOGGING],[disable AliRoot logging])
+AC_ARG_ENABLE(aliroot-logging,
+ [AC_HELP_STRING([--disable-aliroot-logging],
+ [disable logging through AliRoot logging methods])],
+ [],[enable_aliroot_logging=no])
+if test "x$enable_aliroot_logging" != "xno" ; then
+ AC_DEFINE(NOALIROOT_LOGGING)