diff options
| author | deva <deva> | 2006-08-12 14:28:28 +0000 | 
|---|---|---|
| committer | deva <deva> | 2006-08-12 14:28:28 +0000 | 
| commit | 1abb2b072dbab88691f314bcdebf6dc681aae6ba (patch) | |
| tree | 77f09aeb4ac927910a2365ffe4fe32a708ce3ece | |
| parent | 39cc65268b1a30c49423ade7f802b6b0d8815e59 (diff) | |
Added the debug flag option (for use when developing)
| -rw-r--r-- | configure.in | 5 | 
1 files changed, 4 insertions, 1 deletions
| 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  | 
