From 35b96f914e98096a9a5983101b3b92c293a534aa Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 7 Nov 1998 19:06:59 +0000 Subject: [PATCH] Enable release builds using the --without-logging option to the configure script. Also a couple log message cleanups, plus some C to C++ comment conversion. --- acconfig.h | 4 ++++ configure.in | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/acconfig.h b/acconfig.h index c566aaa98..3ea6700b7 100644 --- a/acconfig.h +++ b/acconfig.h @@ -45,6 +45,10 @@ /* Define if you have . */ #undef DIRENT +/* Define to eliminate all trace of debugging messages such as for a + release build */ +#undef FG_NDEBUG + /* Define to the type of elements in the array set by `getgroups'. Usually this is either `int' or `gid_t'. */ #undef GETGROUPS_T diff --git a/configure.in b/configure.in index ae3d2d1c9..d442da4fb 100644 --- a/configure.in +++ b/configure.in @@ -28,6 +28,15 @@ dnl AC_ISC_POSIX dnl Check to see if this `configure' is being run in the `Cygwin32' environment dnl AM_CYGWIN32 +dnl Specify if we want logging (testing build) or not (release build) +# set logging default value +# with_logging=yes +AC_ARG_WITH(logging, [ --with-logging Include logging output (default)]) +if test "x$with_logging" = "xno" ; then + AC_DEFINE(FG_NDEBUG) +fi + + dnl specify if we are building with "checker" AC_ARG_WITH(efence, [ --with-efence Specify if we are building with "electric-fence"])