File: debug.m4

package info (click to toggle)
libfixbuf 2.2.0%2Bds-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,696 kB
  • sloc: ansic: 12,707; xml: 12,599; perl: 245; makefile: 84; sh: 10
file content (20 lines) | stat: -rw-r--r-- 585 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"])
  fi
])