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_DEFINE(BUFMGR_MODULE_DIR, "${BUFMGR_MODULE_PATH}", [Directory for the modules of tbm_bufmgr])
AC_DEFINE_UNQUOTED(BUFMGR_MODULE_DIR, "${BUFMGR_MODULE_PATH}", [Directory for the modules of tbm_bufmgr])
%if %{with wayland}
%reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-haltests=${HALTESTS} --bindir=%{_bindir}/hal \
+ --with-default-dlog=yes \
CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
%else
%reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-haltests=${HALTESTS} --bindir=%{_bindir}/hal \
#undef LOG_TAG
#define LOG_TAG "TBM"
+#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 = TBM_LOG_LEVEL_NONE;