#undef LOG_TAG
#define LOG_TAG "TDM"
+#if ENABLE_DLOG
static unsigned int dlog_enable = 1;
+#else
+static unsigned int dlog_enable = 0;
+#endif
static unsigned int color_enable = 1;
static unsigned int assert_level = TDM_LOG_LEVEL_NONE;
AM_CONDITIONAL(HAVE_HALTESTS, test "x$haltests" = "xyes")
+AC_ARG_WITH(default-dlog, AS_HELP_STRING([--with-default-dlog=yes/no], [whether use dlog as a default log or not]),
+ [ use_dlog="$withval" ],
+ [ use_dlog="yes" ])
+
+AM_CONDITIONAL(ENABLE_DLOG, test "x$use_dlog" = "xyes")
+
+if test "x$use_dlog" = "xyes"; then
+ AC_DEFINE([ENABLE_DLOG], 1, "Use dlog as a default log")
+fi
+
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
if test x$wayland_scanner = x; then
AC_MSG_ERROR([wayland-scanner is needed to compile])
%endif
%reconfigure --disable-static --with-haltests=${HALTESTS} --bindir=%{_bindir}/hal \
+ --with-default-dlog=yes \
--with-tdm-data-path=%{TZ_SYS_RO_SHARE}/tdm \
CFLAGS="${CFLAGS} -Wall -Werror" \
CXXFLAGS="${CXXFLAGS} -Wall -Werror" \