Changeset 7729 in orxonox.OLD for trunk/configure.ac
- Timestamp:
- May 19, 2006, 3:07:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r7669 r7729 86 86 # DEBUG-statement # 87 87 #-----------------# 88 DEBUG =no88 DEBUG_LEVEL=no 89 89 AC_MSG_CHECKING([if DEBUG-mode should be enabled]) 90 90 AC_ARG_ENABLE([debug], 91 91 AS_HELP_STRING(--enable-debug,compiles in debug mode. Lots of debug info about the game.), 92 DEBUG =$enableval)93 94 if test x$DEBUG = xno; then92 DEBUG_LEVEL=$enableval) 93 94 if test x$DEBUG_LEVEL = xno; then 95 95 echo "no" 96 96 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 97 DEBUG =498 elif test x$DEBUG = xyes; then97 DEBUG_LEVEL=4 98 elif test x$DEBUG_LEVEL = xyes; then 99 99 echo "yes" 100 100 echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." 101 DEBUG =4101 DEBUG_LEVEL=4 102 102 else 103 if test x$DEBUG = x0 || test x$DEBUG = x1 || test x$DEBUG = x2 || test x$DEBUG = x3 || test x$DEBUG = x4 || test x$DEBUG= x5 ; then104 echo "yes: setting debuglevel to to $DEBUG "103 if test x$DEBUG_LEVEL = x0 || test x$DEBUG_LEVEL = x1 || test x$DEBUG_LEVEL = x2 || test x$DEBUG_LEVEL = x3 || test x$DEBUG_LEVEL = x4 || test x$DEBUG_LEVEL = x5 ; then 104 echo "yes: setting debuglevel to to $DEBUG_LEVEL" 105 105 else 106 echo "yes: invalid Value for Debug ($DEBUG ). setting to 4(DEBUG)"107 DEBUG =4106 echo "yes: invalid Value for Debug ($DEBUG_LEVEL). setting to 4(DEBUG)" 107 DEBUG_LEVEL=4 108 108 fi 109 109 fi 110 110 111 if test $DEBUD > 3 ; then111 if test $DEBUD_LEVEL > 3 ; then 112 112 CPPFLAGS="${CPPFLAGS} -g" 113 113 fi 114 AC_DEFINE_UNQUOTED(DEBUG , $DEBUG, [in which debug mode we are])115 AC_SUBST(DEBUG )114 AC_DEFINE_UNQUOTED(DEBUG_LEVEL, ${DEBUG_LEVEL}, [in which debug mode we are]) 115 AC_SUBST(DEBUG_LEVEL) 116 116 117 117 #---------------#
Note: See TracChangeset
for help on using the changeset viewer.