Added --enable-packetlog to allow easy use of built-in packet logger.

Note: EXPERIMENTAL - meant for bug hunting.
This commit is contained in:
Dabb 2001-01-15 16:55:09 +00:00
parent 6eb79d233e
commit 219a684fd0
2 changed files with 18 additions and 0 deletions

View file

@ -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_

View file

@ -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)],