Commit | Line | Data |
---|---|---|
e0709f50 | 1 | dnl Process this file with autoconf to produce a configure script. |
b7026657 | 2 | AC_PREREQ(2.59)dnl |
e0709f50 | 3 | AC_INIT(Makefile.in) |
35695fd6 | 4 | AC_CONFIG_HEADER(config.h:config.in) |
e0709f50 | 5 | |
f0569246 | 6 | sinclude(../common/aclocal.m4) |
e0709f50 | 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 | ||
e0709f50 AC |
12 | dnl Options available in this module |
13 | SIM_AC_OPTION_INLINE() | |
14 | SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT) | |
15 | SIM_AC_OPTION_HOSTENDIAN | |
16 | SIM_AC_OPTION_WARNINGS | |
17 | ||
18 | # | |
19 | # Add simulated hardware devices | |
20 | # | |
21 | hw_enabled=no | |
22 | case "${target}" in | |
23 | m68hc11-*-*|m6811-*-*) | |
24 | hw_enabled=yes | |
25 | hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram" | |
26 | m68hc11_extra_objs="dv-sockser.o" | |
27 | SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1" | |
28 | ;; | |
29 | *) | |
30 | m68hc11_extra_objs="" | |
31 | ;; | |
32 | esac | |
33 | SIM_AC_OPTION_HARDWARE($hw_enabled,$hw_devices,$hw_extra_devices) | |
34 | ||
35 | AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h fcntl.h) | |
36 | ||
37 | AC_SUBST(m68hc11_extra_objs) | |
38 | ||
39 | SIM_AC_OUTPUT |