From a2004ec4a923d20e3438d6ef7a90ff1d6e5c3643 Mon Sep 17 00:00:00 2001 From: ccremers Date: Mon, 24 May 2004 09:23:08 +0000 Subject: [PATCH] - Debugging mode can now be enabled. --- configure.in | 10 +++++++--- src/debug.h | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 42b73c5..8caf990 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ AC_INIT(src/main.c) AM_INIT_AUTOMAKE(Scyther, 0.2, ccremers@win.tue.nl) -AM_CONFIG_HEADER(config.h) +AM_CONFIG_HEADER(src/config.h) AC_CONFIG_SRCDIR(src) AC_PROG_LIBTOOL @@ -32,9 +32,13 @@ LD_LIBRARY_PATH correctly.)) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable debugging mode]), - AC_DEFINE(DEBUG,1," compile with debugging support")) + echo debugOn + AC_DEFINE(DEBUG,[1],[Defined if debugging mode is + enabled.]), + echo debugOff + ) -VERSION="0.0.1" +VERSION="0.1.0" SUBDIRS=src dnl read Makefile.in's and write Makefiles diff --git a/src/debug.h b/src/debug.h index 2e3253d..c0f5278 100644 --- a/src/debug.h +++ b/src/debug.h @@ -1,6 +1,8 @@ #ifndef DEBUG_H #define DEBUG_H +#include "config.h" + void debugSet (int level); int debugCond (int level); void debug (int level, char *string);