Skip to content

Commit 105054b

Browse files
Anthony Desnosplusvic
authored andcommitted
Add debug flag for dex module + add some checks (VirusTotal#828)
1 parent 9a9c40e commit 105054b

File tree

2 files changed

+235
-54
lines changed

2 files changed

+235
-54
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ AC_ARG_ENABLE([dex],
165165
CFLAGS="$CFLAGS -DDEX_MODULE"
166166
fi])
167167

168+
AC_ARG_ENABLE([debug-dex],
169+
[AS_HELP_STRING([--enable-debug-dex], [enable dex module debugging])],
170+
[if test x$enableval = xyes; then
171+
debug_dex_module=true
172+
CFLAGS="$CFLAGS -DDEBUG_DEX_MODULE"
173+
fi])
174+
168175
AS_IF([test "x$with_crypto" != "xno"],
169176
[
170177
AC_CHECK_HEADERS([openssl/md5.h],, [have_crypto=no])
@@ -256,6 +263,7 @@ AM_CONDITIONAL([DOTNET_MODULE], [test x$build_dotnet_module = xtrue])
256263
AM_CONDITIONAL([MACHO_MODULE], [test x$build_macho_module = xtrue])
257264
AM_CONDITIONAL([GCC], [test "x$GCC" = xyes])
258265
AM_CONDITIONAL([DEX_MODULE], [test x$build_dex_module = xtrue])
266+
AM_CONDITIONAL([DEBUG_DEX_MODULE], [test x$debug_dex_module = xtrue])
259267

260268
AM_CONDITIONAL([USE_WINDOWS_PROC], [test x$proc_interface = xwindows ])
261269
AM_CONDITIONAL([USE_LINUX_PROC], [test x$proc_interface = xlinux ])

0 commit comments

Comments
 (0)