]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m4/sim_ac_option_stdio.m4
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / sim / m4 / sim_ac_option_stdio.m4
CommitLineData
1d506c26 1dnl Copyright (C) 1997-2024 Free Software Foundation, Inc.
497a20bd
MF
2dnl
3dnl This program is free software; you can redistribute it and/or modify
4dnl it under the terms of the GNU General Public License as published by
5dnl the Free Software Foundation; either version 3 of the License, or
6dnl (at your option) any later version.
7dnl
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11dnl GNU General Public License for more details.
12dnl
13dnl You should have received a copy of the GNU General Public License
14dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
15dnl
16dnl --enable-sim-stdio is for users of the simulator
17dnl It determines if IO from the program is routed through STDIO (buffered)
18AC_DEFUN([SIM_AC_OPTION_STDIO],
19[dnl
20AC_MSG_CHECKING([for sim stdio debug behavior])
21sim_stdio="0"
22AC_ARG_ENABLE(sim-stdio,
23[AS_HELP_STRING([--enable-sim-stdio],
24 [Specify whether to use stdio for console input/output])],
25[case "${enableval}" in
26 yes) sim_stdio="DO_USE_STDIO";;
27 no) sim_stdio="DONT_USE_STDIO";;
28 *) AC_MSG_ERROR([Unknown value $enableval passed to --enable-sim-stdio]);;
29esac])dnl
30AC_DEFINE_UNQUOTED([WITH_STDIO], [$sim_stdio], [How to route I/O])
31AC_MSG_RESULT($sim_stdio)
32])