gdb/copyright.py: Remove testsuite/gdb.base/step-line.{c,inp} special handling
[deliverable/binutils-gdb.git] / sim / rx / configure.ac
CommitLineData
4f8d4a38
DD
1dnl Process this file with autoconf to produce a configure script.
2
61baf725 3dnl Copyright (C) 2005-2017 Free Software Foundation, Inc.
4f8d4a38
DD
4dnl Contributed by Red Hat, Inc.
5dnl
6dnl This file is part of the GNU simulators.
7dnl
8dnl This program is free software; you can redistribute it and/or modify
9dnl it under the terms of the GNU General Public License as published by
10dnl the Free Software Foundation; either version 3 of the License, or
11dnl (at your option) any later version.
12dnl
13dnl This program is distributed in the hope that it will be useful,
14dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16dnl GNU General Public License for more details.
17dnl
18dnl You should have received a copy of the GNU General Public License
19dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
20dnl
6ffe910a 21AC_PREREQ(2.64)dnl
4f8d4a38 22AC_INIT(Makefile.in)
9c082ca8 23sinclude(../common/acinclude.m4)
4f8d4a38 24
6ffe910a
MF
25SIM_AC_COMMON
26
27AC_CHECK_HEADERS(getopt.h)
28
93378652 29AC_ARG_ENABLE(cycle-accurate,
8d0978fb
MF
30[AS_HELP_STRING([--disable-cycle-accurate],
31 [Disable cycle accurate simulation (faster runtime)])],
93378652
DD
32[case "${enableval}" in
33yes | no) ;;
34*) AC_MSG_ERROR(bad value ${enableval} given for --enable-cycle-accurate option) ;;
35esac])
36
37AC_ARG_ENABLE(cycle-stats,
8d0978fb
MF
38[AS_HELP_STRING([--disable-cycle-stats],
39 [Disable cycle statistics (faster runtime)])],
93378652
DD
40[case "${enableval}" in
41yes | no) ;;
42*) AC_MSG_ERROR(bad value ${enableval} given for --enable-cycle-stats option) ;;
43esac])
44
45echo enable_cycle_accurate is $enable_cycle_accurate
46echo enable_cycle_stats is $enable_cycle_stats
47
48if test "x${enable_cycle_accurate}" != xno; then
abcee8fd 49 AC_DEFINE([CYCLE_ACCURATE], 1, [--enable-cycle-accurate])
93378652
DD
50
51 if test "x${enable_cycle_stats}" != xno; then
abcee8fd 52 AC_DEFINE([CYCLE_STATS], 1, [--enable-cycle-stats])
93378652
DD
53 fi
54else
55 if test "x${enable_cycle_stats}" != xno; then
abcee8fd 56 AC_ERROR([cycle-stats not available without cycle-accurate])
93378652
DD
57 fi
58fi
59
4f8d4a38 60SIM_AC_OUTPUT
This page took 0.39552 seconds and 4 git commands to generate.