[Enable secure log (default: disabled)]),
[SECURELOG=$enableval], [SECURELOG=no])
+AC_ARG_ENABLE(normal-log,
+ AS_HELP_STRING([--enable-normal-log],
+ [Enable normal log instead of secure log (default: disabled)]),
+ [NORMALLOG=$enableval], [NORMALLOG=no])
+
# Checks for pkg-config packages
PKG_CHECK_MODULES(XDBG, dlog xorg-server x11 xdamage xext dbus-1 bigreqsproto compositeproto damageproto dri2proto fixesproto fontsproto gestureproto inputproto kbproto randrproto recordproto renderproto resourceproto videoproto xcmiscproto xextproto xf86vidmodeproto xproto libdrm xcomposite libdri2 xgesture xtst xrandr xi xv)
AC_SUBST([TIZEN_ENGINEER_MODE])
fi
+if test "x$NORMALLOG" = xyes; then
+ AC_DEFINE(USE_NORMAL_LOG, 1, [Use normal log])
+fi
+
AC_OUTPUT([Makefile
common/Makefile
bin/Makefile
echo "CFLAGS : $CFLAGS"
echo "LDFLAGS : $LDFLAGS"
+echo "LOG : secure($SECURELOG) normal($NORMALLOG)"
echo "XDBG_CFLAGS: $XDBG_CFLAGS"
echo "XDBG_LIBS : $XDBG_LIBS"
echo "XDBG_CLIENT_CFLAGS: $XDBG_CLIENT_CFLAGS"
#if TIZEN_ENGINEER_MODE
#define XDBG_SECURE(mod, fmt, ARG...) XLOG_SECURE(mod, "[%s] "fmt, __FUNCTION__, ##ARG)
#else
+#if USE_NORMAL_LOG
+#define XDBG_SECURE(mod, fmt, ARG...) XLOG_INFO(mod, "[%s] "fmt, __FUNCTION__, ##ARG)
+#else
#define XDBG_SECURE(mod, fmt, ARG...) do { } while(0)
#endif
+#endif
#define XDBG_NEVER_GET_HERE(mod) XLOG_ERROR(mod, "[%s:%d] ** NEVER GET HERE **\n", __FUNCTION__,__LINE__)
%setup -q
%build
-%reconfigure --disable-static --prefix=/usr \
+%reconfigure --disable-static --prefix=/usr --enable-normal-log \
CFLAGS="$CFLAGS -Wall -Werror" \
LDFLAGS="$LDFLAGS -Wl,--hash-style=both -Wl,--as-needed"
make %{?jobs:-j%jobs}