# $Id: debugmode.m4,v 1.1.1.1 2002/10/10 16:36:23 aquamaniac Exp $ # (c) 2002 Martin Preuss # This function checks for the debugmode AC_DEFUN(AQ_DEBUGMODE,[ dnl IN: dnl nothing dnl OUT: dnl Variables: dnl DEBUGMODE: number of the debug level (subst) dnl Defines: dnl DEBUGMODE: number of the debug level (subst) dnl check for debugmode AC_MSG_CHECKING(for debug mode) AC_ARG_WITH(debug-mode, [ --with-debug-mode=MODE debug mode], [DEBUGMODE="$withval"], [DEBUGMODE="0"]) AC_SUBST(DEBUGMODE) AC_DEFINE_UNQUOTED(DEBUGMODE,$DEBUGMODE) AC_MSG_RESULT($DEBUGMODE) ])