File: debug.m4

package info (click to toggle)
libfixbuf 2.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,988 kB
  • sloc: xml: 16,971; ansic: 14,447; perl: 338; makefile: 152; sh: 10
file content (20 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# AC_DEBUG()
#
# Check for commandline options requesting DEBUG feature.
# Might define DEBUG, NODEBUG, or NDEBUG, depending on flags given.
AC_DEFUN([AC_DEBUG],[dnl
  AC_ARG_ENABLE([debug], 
    AC_HELP_STRING([--enable-debug], [include debugging code (default=no)]),
    [ case "${enableval}" in
      yes) debug=true ;;
      no) debug=false ;;
      *) AC_MSG_ERROR(bad value ${enableval} for debug option) ;;
    esac],
    [debug=false])
  if test "$debug" = true; then
    AC_SUBST([DEBUG_CFLAGS],["-DDEBUG -ggdb -O0"])
  else
    AC_SUBST([DEBUG_CFLAGS],["-DNDEBUG -DG_DISABLE_ASSERT"])
  fi
])