sim: ft32: correct simulation of MEMCPY and MEMSET
[deliverable/binutils-gdb.git] / gdb / libmcheck.m4
CommitLineData
32d0add0 1dnl Copyright (C) 2012-2015 Free Software Foundation, Inc.
17ef446e
PA
2dnl
3dnl This file is part of GDB.
4dnl
5dnl This program is free software; you can redistribute it and/or modify
6dnl it under the terms of the GNU General Public License as published by
7dnl the Free Software Foundation; either version 3 of the License, or
8dnl (at your option) any later version.
9dnl
10dnl This program is distributed in the hope that it will be useful,
11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13dnl GNU General Public License for more details.
14dnl
15dnl You should have received a copy of the GNU General Public License
16dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18dnl GDB_AC_LIBMCHECK([DEFAULT])
19dnl Provide an --enable-libmcheck/--disable-libmcheck set of options
20dnl allowing a user to enable this option even when building releases,
21dnl or to disable it when building a snapshot.
22dnl DEFAULT (yes/no) is used as default if the user doesn't set
23dnl the option explicitly.
24
25AC_DEFUN([GDB_AC_LIBMCHECK],
26[
27 AC_ARG_ENABLE(libmcheck,
28 AS_HELP_STRING([--enable-libmcheck],
29 [Try linking with -lmcheck if available]),
30 [case "${enableval}" in
31 yes | y) ENABLE_LIBMCHECK="yes" ;;
32 no | n) ENABLE_LIBMCHECK="no" ;;
33 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmcheck) ;;
34 esac])
35
36 if test -z "${ENABLE_LIBMCHECK}"; then
37 ENABLE_LIBMCHECK=[$1]
38 fi
39
40 if test "$ENABLE_LIBMCHECK" = "yes" ; then
41 AC_CHECK_LIB(mcheck, main)
42 fi
43])
This page took 0.228216 seconds and 4 git commands to generate.