2 dnl Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
3 dnl This file is part of the CCUnit Library.
5 dnl The CCUnit Library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public License
7 dnl as published by the Free Software Foundation; either version 2.1 of
8 dnl the License, or (at your option) any later version.
10 dnl The CCUnit Library is distributed in the hope that it will be
11 dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 dnl of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU Lesser General Public License for more details.
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with the CCUnit Library; see the file COPYING.LESSER.
17 dnl If not, write to the Free Software Foundation, Inc., 59 Temple
18 dnl Place - Suite 330, Boston, MA 02111-1307, USA.
22 AC_DEFUN([ARG_ENABLE_COVERAGE],
24 AC_ARG_ENABLE(coverage,
25 AC_HELP_STRING([--enable-coverage],[enable coverage testing]),
26 [ if test ${enableval-yes} = yes; then
27 COVERAGEFLAGS="-fprofile-arcs -ftest-coverage"
29 AC_SUBST(COVERAGEFLAGS)])