Commit | Line | Data |
---|---|---|
b34f6357 | 1 | dnl Process this file with autoconf to produce a configure script. |
b7026657 | 2 | AC_PREREQ(2.59)dnl |
b34f6357 | 3 | AC_INIT(Makefile.in) |
35695fd6 | 4 | AC_CONFIG_HEADER(config.h:config.in) |
b34f6357 | 5 | |
f0569246 | 6 | sinclude(../common/aclocal.m4) |
b34f6357 | 7 | |
35695fd6 AC |
8 | # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around |
9 | # it by inlining the macro's contents. | |
10 | sinclude(../common/common.m4) | |
11 | ||
b34f6357 DB |
12 | SIM_AC_OPTION_ENDIAN(BIG_ENDIAN) |
13 | SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT) | |
14 | SIM_AC_OPTION_HOSTENDIAN | |
15 | SIM_AC_OPTION_SCACHE(16384) | |
16 | SIM_AC_OPTION_DEFAULT_MODEL(fr500) | |
17 | SIM_AC_OPTION_ENVIRONMENT | |
18 | SIM_AC_OPTION_CGEN_MAINT | |
19 | ||
20 | # | |
21 | # Enable making unknown traps dump out registers | |
22 | # | |
23 | AC_ARG_ENABLE(sim-trapdump, | |
24 | [ --enable-sim-trapdump Make unknown traps dump the registers], | |
25 | [case "${enableval}" in | |
26 | yes) sim_trapdump="-DTRAPDUMP=1";; | |
27 | no) sim_trapdump="-DTRAPDUMP=0";; | |
28 | *) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-trapdump"); sim_trapdump="";; | |
29 | esac | |
30 | if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then | |
31 | echo "Setting sim_trapdump = $sim_trapdump" 6>&1 | |
32 | fi],[sim_trapdump=""])dnl | |
33 | AC_SUBST(sim_trapdump) | |
34 | ||
35 | SIM_AC_OUTPUT |