mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +00:00
Added --enable-packetlog to allow easy use of built-in packet logger.
Note: EXPERIMENTAL - meant for bug hunting.
This commit is contained in:
parent
6eb79d233e
commit
219a684fd0
2 changed files with 18 additions and 0 deletions
|
@ -100,5 +100,8 @@
|
|||
/* Define this to something appropriate for declaring 0 length arrays */
|
||||
#undef ZERO_LENGTH_ARRAY
|
||||
|
||||
/* Define this if you want to have packet logging */
|
||||
#undef PACKET_LOGGING
|
||||
|
||||
@BOTTOM@
|
||||
#endif // __config_h_
|
||||
|
|
15
configure.in
15
configure.in
|
@ -1001,6 +1001,11 @@ else
|
|||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(packetlog,
|
||||
[ --enable-packetlog compile with packet logger (for development)],
|
||||
packetlog=$enable_packetlog
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(optimize,
|
||||
[ --disable-optimize compile without optimizations (for development)],
|
||||
optimize=$disable_optimize,
|
||||
|
@ -1044,6 +1049,16 @@ else
|
|||
CFLAGS="$CFLAGS -O"
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for packet logging)
|
||||
if test "x$packetlog" = xyes; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(PACKET_LOGGING)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(PACKETLOG, test "x$packetlog" = "xyes")
|
||||
|
||||
dnl CFLAGS for release and devel versions
|
||||
AC_ARG_ENABLE(profile,
|
||||
[ --enable-profile compile with profiling (for development)],
|
||||
|
|
Loading…
Reference in a new issue