1 AC_DEFUN([GST_DEBUGINFO], [
3 AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
4 [case "${enableval}" in
7 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
9 [USE_DEBUG=yes]) dnl Default value
12 AC_HELP_STRING([--disable-DEBUG],[disables compilation of debugging messages]),
13 [case "${enableval}" in
14 yes) ENABLE_DEBUG=yes ;;
15 no) ENABLE_DEBUG=no ;;
16 *) AC_MSG_ERROR(bad value ${enableval} for --enable-DEBUG) ;;
18 [ENABLE_DEBUG=yes]) dnl Default value
19 if test x$ENABLE_DEBUG = xyes; then
20 AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in])
24 AC_HELP_STRING([--disable-INFO],[disables compilation of informational messages]),
25 [case "${enableval}" in
26 yes) ENABLE_INFO=yes ;;
28 *) AC_MSG_ERROR(bad value ${enableval} for --enable-INFO) ;;
30 [ENABLE_INFO=yes]) dnl Default value
31 if test x$ENABLE_INFO = xyes; then
32 AC_DEFINE(GST_INFO_ENABLED, 1, [Define if INFO statements should be compiled in])
35 AC_ARG_ENABLE(debug-color,
36 AC_HELP_STRING([--disable-debug-color],[disables color output of DEBUG and INFO output]),
37 [case "${enableval}" in
38 yes) ENABLE_DEBUG_COLOR=yes ;;
39 no) ENABLE_DEBUG_COLOR=no ;;
40 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-color) ;;
42 [ENABLE_DEBUG_COLOR=yes]) dnl Default value
43 if test "x$ENABLE_DEBUG_COLOR" = xyes; then
44 AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorized])