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