1 dnl Process this file with autoconf to produce a configure script.
2 sinclude(../common/aclocal.m4)
3 dnl 2.12 botches SHELL substitution
9 SIM_AC_OPTION_ENDIAN(LITTLE_ENDIAN)
10 SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
11 SIM_AC_OPTION_HOSTENDIAN
12 SIM_AC_OPTION_WARNINGS
13 SIM_AC_OPTION_RESERVED_BITS
14 SIM_AC_OPTION_BITSIZE(32,31)
15 SIM_AC_OPTION_INLINE()
17 SIM_AC_OPTION_HARDWARE(yes,,mn103cpu mn103int mn103tim mn103ser mn103iop)
20 AC_CHECK_FUNCS(time chmod utime fork execve execv chown)
21 AC_CHECK_HEADERS(unistd.h stdlib.h string.h strings.h utime.h time.h)
26 AC_ARG_ENABLE(sim-common,
27 [ --enable-sim-common Enable common simulator],
28 [case "${enableval}" in
29 yes) sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH";;
30 no) sim_gen="-DWITH_COMMON=0"; mn10300_common="WITHOUT";;
31 *) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-common"); sim_gen="";;
33 if test x"$silent" != x"yes" && test x"$sim_gen" != x""; then
34 echo "Setting sim_common = $sim_common" 6>&1
35 fi],[sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH"])dnl
37 AC_SUBST(mn10300_common)