File: debug.m4

package info (click to toggle)
glibmm2.68 2.86.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,964 kB
  • sloc: xml: 119,029; cpp: 15,886; perl: 5,667; python: 2,241; makefile: 366; sh: 260
file content (36 lines) | stat: -rw-r--r-- 1,492 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## Copyright (c) 2009, 2011  Openismus GmbH  <http://www.openismus.com/>
##
## This file is part of glibmm.
##
## glibmm is free software: you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as published
## by the Free Software Foundation, either version 2.1 of the License,
## or (at your option) any later version.
##
## glibmm is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library.  If not, see <http://www.gnu.org/licenses/>.

#serial 20110910

## GLIBMM_ARG_ENABLE_DEBUG_REFCOUNTING()
##
## Provide the --enable-debug-refcounting configure argument, disabled
## by default.  If enabled, #define GTKMM_DEBUG_REFCOUNTING.
##
AC_DEFUN([GLIBMM_ARG_ENABLE_DEBUG_REFCOUNTING],
[
  AC_ARG_ENABLE([debug-refcounting],
      [AS_HELP_STRING([--enable-debug-refcounting],
                      [Print a debug message on every ref/unref.@<:@default=no@:>@])],
      [glibmm_debug_refcounting="$enableval"],
      [glibmm_debug_refcounting='no'])

  AS_VAR_IF([glibmm_debug_refcounting], ['yes'],
            [AC_DEFINE([GLIBMM_DEBUG_REFCOUNTING], [1],
                       [Defined when the --enable-debug-refcounting configure argument was given])])[]dnl
])