From 1abb2b072dbab88691f314bcdebf6dc681aae6ba Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 12 Aug 2006 14:28:28 +0000 Subject: Added the debug flag option (for use when developing) --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3c77551..8645aaa 100644 --- a/configure.in +++ b/configure.in @@ -18,16 +18,19 @@ AC_OUTPUT(lib/Makefile) AC_DEFINE_UNQUOTED(ETC, "$prefix/etc/miav", [The path to the config files]) AC_DEFINE_UNQUOTED(PIXMAPS, "$prefix/share/pixmaps", [The path to the pixmap files]) -AC_ARG_WITH(debug, [ --with-debug Build with debugging (-g -Wall -Werror and -lefence)]) +AC_ARG_WITH(debug, [ --with-debug Build with debugging (-g -Wall -Werror)]) if test x$with_debug != xno && test -z "$DEBUG"; then CXXFLAGS="$CXXFLAGS -g -Wall -Werror" dnl ===================== dnl Check for efence library dnl ===================== +# AC_CHECK_HEADER(efencepp.h, , AC_MSG_ERROR([*** The electric fence include file not found!])) # AC_CHECK_LIB(efence, malloc, , AC_MSG_ERROR([*** The electric fence library (libefence.a) was not found!])) # LDFLAGS="$LDFLAGS -lefence" + AC_MSG_WARN([*** Building DEBUG support]) + dnl Make code aware of debug AC_DEFINE([USE_DEBUG], [], [Is defined if the project is configured to compile with debugging]) fi -- cgit v1.2.3