File: debug.m4

package info (click to toggle)
heroes 0.21-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,064 kB
  • ctags: 3,158
  • sloc: ansic: 27,964; sh: 4,198; makefile: 732; yacc: 318; sed: 51; lisp: 10; perl: 9
file content (22 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AC_DEFUN([adl_ENABLE_DEBUG],
 [AC_ARG_ENABLE([debug],
  [AC_HELP_STRING([--enable-debug],[enable debugging symbols])])
  case "${enable_debug}" in
    yes)
      AC_DEFINE([DEBUG],1,[Define if you want debugging code.])
      if test -n "$GCC"; then
        CFLAGS="$CFLAGS -ggdb3"
      else
        if test "${ac_cv_prog_cc_g}" = yes; then
          CFLAGS="$CFLAGS -g"
        fi
      fi
      ;;
    no)
      ;;
    *)
      if test "${ac_cv_prog_cc_g}" = yes; then
        CFLAGS="$CFLAGS -g"
      fi
      ;;
  esac])