1995-08-23 21:06:36 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.3)dnl
|
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_ARG_ENABLE(sim-cflags,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-cflags=opts Extra CFLAGS for use in building simulator],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_cflags="-O2 -fomit-frame-pointer";;
|
|
|
|
no) sim_cflags="";;
|
1995-11-03 03:39:27 +00:00
|
|
|
*) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting sim cflags = $sim_cflags" 6>&1
|
|
|
|
fi],[sim_cflags=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
AC_ARG_ENABLE(sim-warnings,
|
1995-11-09 02:35:15 +00:00
|
|
|
[ --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o],
|
1995-11-08 18:57:06 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-13 16:07:30 +00:00
|
|
|
yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes";;
|
1995-11-08 18:57:06 +00:00
|
|
|
no) sim_warnings="-w";;
|
|
|
|
*) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting warning flags = $sim_warnings" 6>&1
|
|
|
|
fi],[sim_warnings=""])dnl
|
1995-11-08 18:57:06 +00:00
|
|
|
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_ARG_ENABLE(sim-config,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-config=file Override default config file],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-config=file");;
|
1995-11-11 01:11:31 +00:00
|
|
|
*) if test -f "${srcdir}/${enableval}"; then
|
1995-11-10 22:49:05 +00:00
|
|
|
sim_config="${enableval}";
|
1995-11-11 01:11:31 +00:00
|
|
|
elif test -f "${srcdir}/${enableval}-config.h"; then
|
1995-11-10 22:49:05 +00:00
|
|
|
sim_config="${enableval}-config.h"
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR("Config file $enableval was not found");
|
|
|
|
sim_config=std-config.h
|
|
|
|
fi;;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting config flags = $sim_config" 6>&1
|
1995-11-10 22:49:05 +00:00
|
|
|
fi],[sim_config="std-config.h"
|
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting config flags = $sim_config" 6>&1
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-opcode,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-opcode=which Override default opcode lookup.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-opcode=file");;
|
1995-11-11 01:11:31 +00:00
|
|
|
*) if test -f "${srcdir}/${enableval}"; then
|
1995-11-10 22:49:05 +00:00
|
|
|
sim_opcode="${enableval}"
|
1995-11-11 01:11:31 +00:00
|
|
|
elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
|
1995-11-10 22:49:05 +00:00
|
|
|
sim_opcode="ppc-opcode-${enableval}"
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR("File $enableval is not an opcode rules file");
|
|
|
|
sim_opcode="ppc-opcode-complex"
|
|
|
|
fi;;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting opcode flags = $sim_opcode" 6>&1
|
1995-11-10 22:49:05 +00:00
|
|
|
fi],[sim_opcode="ppc-opcode-complex"
|
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting opcode flags = $sim_opcode"
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-switch,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-switch Use a switch instead of a table for instruction call.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_switch="-s";;
|
1995-11-10 22:49:05 +00:00
|
|
|
no) sim_switch="";;
|
|
|
|
*) AC_MSG_ERROR("--enable-sim-switch does not take a value"); sim_switch="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting switch flags = $sim_switch" 6>&1
|
1996-01-10 20:42:29 +00:00
|
|
|
fi],[sim_switch="";
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting switch flags = $sim_switch" 6>&1
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-duplicate,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-duplicate Expand (duplicate) semantic functions.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
yes) sim_dup="-e";;
|
|
|
|
no) sim_dup="";;
|
|
|
|
*) AC_MSG_ERROR("--enable-sim-duplicate does not take a value"); sim_dup="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting duplicate flags = $sim_dup" 6>&1
|
1995-11-09 21:38:13 +00:00
|
|
|
fi],[sim_dup="-e"
|
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting duplicate flags = $sim_dup" 6>&1
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-filter,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-filter=rule Specify filter rules.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
yes) AC_MSG_ERROR("--enable-sim-filter must be specified with a rule to filter or no"); sim_filter="";;
|
|
|
|
no) sim_filter="";;
|
|
|
|
*) sim_filter="-f $enableval";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting filter flags = $sim_filter" 6>&1
|
1995-11-09 21:38:13 +00:00
|
|
|
fi],[sim_filter="-f 64"
|
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting filter flags = $sim_filter" 6>&1
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-icache,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-icache=size Specify instruction cache size.],
|
1995-11-12 02:06:11 +00:00
|
|
|
icache=""
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-25 01:35:14 +00:00
|
|
|
yes) sim_icache="-r 1024"; icache="1024";;
|
|
|
|
define) sim_icache="-r 1024 -R"; icache="1024";;
|
|
|
|
no) sim_icache="";;
|
|
|
|
*) sim_icache="-r ${enableval}"; icache="${enableval}";;
|
1995-11-12 02:06:11 +00:00
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes" && test x"$icache" != x""; then
|
|
|
|
echo "Setting instruction cache size to $icache"
|
|
|
|
fi],[sim_icache="-r 1024"
|
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting instruction cache size to 1024"
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-inline,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-inline=inlines Specify which functions should be inlined.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[sim_inline=""
|
|
|
|
case "$enableval" in
|
1995-12-19 16:41:06 +00:00
|
|
|
no) sim_inline="-DDEFAULT_INLINE=0";;
|
1995-11-03 03:55:44 +00:00
|
|
|
0) sim_inline="-DDEFAULT_INLINE=0";;
|
1995-12-15 20:20:13 +00:00
|
|
|
yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
|
|
|
|
1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
|
1995-11-02 20:21:35 +00:00
|
|
|
*) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
|
|
|
|
new_flag=""
|
|
|
|
case "$x" in
|
|
|
|
*_INLINE=*) new_flag="-D$x";;
|
1995-12-15 20:20:13 +00:00
|
|
|
*_INLINE) new_flag="-D$x=ALL_INLINE";;
|
1995-11-12 02:06:11 +00:00
|
|
|
*=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
|
1995-12-15 20:20:13 +00:00
|
|
|
*) new_flag="-D$x""_INLINE=ALL_INLINE";;
|
1995-11-02 20:21:35 +00:00
|
|
|
esac
|
1995-11-12 02:06:11 +00:00
|
|
|
if test x"$sim_inline" = x""; then
|
1995-11-02 20:21:35 +00:00
|
|
|
sim_inline="$new_flag"
|
|
|
|
else
|
1995-11-12 02:06:11 +00:00
|
|
|
sim_inline="$sim_inline $new_flag"
|
1995-11-02 20:21:35 +00:00
|
|
|
fi
|
|
|
|
done;;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting inline flags = $sim_inline" 6>&1
|
|
|
|
fi],[if test x"$GCC" != ""; then
|
1995-12-15 20:20:13 +00:00
|
|
|
sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS"
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting inline flags = $sim_inline" 6>&1
|
|
|
|
fi
|
1995-11-09 19:50:51 +00:00
|
|
|
else
|
|
|
|
sim_inline=""
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-bswap,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_bswap="-DWITH_BSWAP=1";;
|
|
|
|
no) sim_bswap="-DWITH_BSWAP=0";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("--enable-sim-bswap does not take a value"); sim_bswap="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting bswap flags = $sim_bswap" 6>&1
|
|
|
|
fi],[sim_bswap=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-endian,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-endian=endian Specify target byte endian orientation.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) case "$target" in
|
|
|
|
*powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
|
|
|
|
*powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
|
|
|
|
*) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
|
|
|
|
esac;;
|
|
|
|
no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
|
|
|
|
b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
|
|
|
|
l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval for --enable-sim-endian"); sim_endian="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting endian flags = $sim_endian" 6>&1
|
|
|
|
fi],[sim_endian=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-hostendian,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-hostendain=end Specify host byte endian orientation.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
|
|
|
|
b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
|
|
|
|
l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval for --enable-sim-hostendian"); sim_hostendian="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting hostendian flags = $sim_hostendian" 6>&1
|
|
|
|
fi],[sim_hostendian=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-smp,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-smp=n Specify number of processors to configure for.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-13 16:07:30 +00:00
|
|
|
yes) sim_smp="-DWITH_SMP=5";;
|
1995-11-02 20:21:35 +00:00
|
|
|
no) sim_smp="-DWITH_SMP=0";;
|
|
|
|
*) sim_smp="-DWITH_SMP=$enableval";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting smp flags = $sim_smp" 6>&1
|
1996-02-16 15:51:57 +00:00
|
|
|
fi],[sim_smp="-DWITH_SMP=5"
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting smp flags = $sim_smp" 6>&1
|
|
|
|
fi])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
1995-11-13 16:07:30 +00:00
|
|
|
AC_ARG_ENABLE(sim-xor-endian,
|
|
|
|
[ --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
|
|
|
|
no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
|
|
|
|
*) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
|
1996-02-16 15:51:57 +00:00
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
|
|
|
|
echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
|
|
|
|
fi],[sim_xor_endian=""])dnl
|
1995-11-13 16:07:30 +00:00
|
|
|
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_ARG_ENABLE(sim-bitsize,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-bitsize=n Specify target bitsize (32 or 64).],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
|
|
|
|
*) AC_MSG_ERROR("--enable-sim-bitsize was given $enableval, expected 32 or 64"); sim_bitsize="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting bitsize flags = $sim_bitsize" 6>&1
|
|
|
|
fi],[sim_bitsize=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-hostbitsize,
|
1995-11-10 22:49:05 +00:00
|
|
|
[ --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
|
|
|
|
*) AC_MSG_ERROR("--enable-sim-hostbitsize was given $enableval, expected 32 or 64"); sim_hostbitsize="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
|
|
|
|
fi],[sim_hostbitsize=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-env,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-env=env Specify target environment (operating, virtual, user).],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
|
|
|
|
virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
|
|
|
|
user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
|
1995-11-10 22:49:05 +00:00
|
|
|
no) sim_env="-DWITH_ENVIRONMENT=0";;
|
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-env"); sim_env="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting env flags = $sim_env" 6>&1
|
|
|
|
fi],[sim_env=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-timebase,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-timebase Specify whether the PPC timebase is supported.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_timebase="-DWITH_TIME_BASE=1";;
|
|
|
|
no) sim_timebase="-DWITH_TIME_BASE=0";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("--enable-sim-timebase does not take a value"); sim_timebase="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting timebase flags = $sim_timebase" 6>&1
|
|
|
|
fi],[sim_timebase=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-alignment,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-alignment=align Specify strict or nonstrict alignment.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
|
1995-11-09 19:50:51 +00:00
|
|
|
no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-alignment"); sim_alignment="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting alignment flags = $sim_alignment" 6>&1
|
|
|
|
fi],[sim_alignment=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-trace,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-trace Specify whether tracing is supported.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_trace="-DWITH_TRACE=1";;
|
|
|
|
no) sim_trace="-DWITH_TRACE=0";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("--enable-sim-trace does not take a value"); sim_trace="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting trace flags = $sim_trace" 6>&1
|
|
|
|
fi],[sim_trace=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-assert,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-assert Specify whether to perform random assertions.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_assert="-DWITH_ASSERT=1";;
|
|
|
|
no) sim_assert="-DWITH_ASSERT=0";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("--enable-sim-assert does not take a value"); sim_assert="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting assert flags = $sim_assert" 6>&1
|
|
|
|
fi],[sim_assert=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
1995-11-10 22:49:05 +00:00
|
|
|
AC_ARG_ENABLE(sim-reserved-bits,
|
|
|
|
[ --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
|
|
|
|
no) sim_reserved="-DWITH_RESERVED_BITS=0";;
|
|
|
|
*) AC_MSG_ERROR("--enable-sim-reserved-bits does not take a value"); sim_reserved="";;
|
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
|
|
|
|
echo "Setting reserved flags = $sim_reserved" 6>&1
|
|
|
|
fi],[sim_reserved=""])dnl
|
|
|
|
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_ARG_ENABLE(sim-float,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-float Specify whether to use host floating point or simulate.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
|
|
|
|
no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-float"); sim_float="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting float flags = $sim_float" 6>&1
|
|
|
|
fi],[sim_float=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-monitor,
|
1995-11-08 18:57:06 +00:00
|
|
|
[ --enable-sim-monitor=mon Specify whether to enable monitoring events.],
|
1995-11-02 20:21:35 +00:00
|
|
|
[case "${enableval}" in
|
1995-12-19 16:41:06 +00:00
|
|
|
yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
|
|
|
|
no) sim_monitor="-DWITH_MON=0";;
|
|
|
|
instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
|
|
|
|
memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
|
1995-11-10 22:49:05 +00:00
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-mon"); sim_env="";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-12-19 16:41:06 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
|
|
|
|
echo "Setting monitor flags = $sim_monitor" 6>&1
|
|
|
|
fi],[sim_monitor=""])dnl
|
1995-11-02 20:21:35 +00:00
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
AC_ARG_ENABLE(sim-model,
|
|
|
|
[ --enable-sim-model=which Specify PowerPC to model.],
|
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-model=model");;
|
|
|
|
*) sim_model="-DWITH_MODEL=${enableval}";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting model flags = $sim_model" 6>&1
|
|
|
|
fi],[sim_model=""])dnl
|
1995-11-08 18:57:06 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-default-model,
|
|
|
|
[ --enable-sim-default-model=which Specify default PowerPC to model.],
|
|
|
|
[case "${enableval}" in
|
1995-11-10 22:49:05 +00:00
|
|
|
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-default-model=model");;
|
|
|
|
*) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
|
1995-11-09 19:50:51 +00:00
|
|
|
esac
|
1995-11-09 21:38:13 +00:00
|
|
|
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
1995-11-09 19:50:51 +00:00
|
|
|
echo "Setting default-model flags = $sim_default_model" 6>&1
|
|
|
|
fi],[sim_model=""])dnl
|
1995-09-08 23:56:38 +00:00
|
|
|
|
1995-11-16 21:42:27 +00:00
|
|
|
AC_ARG_ENABLE(sim-model-issue,
|
|
|
|
[ --enable-sim-model-issue Specify whether to simulate model specific actions],
|
|
|
|
[case "${enableval}" in
|
1995-11-28 18:47:07 +00:00
|
|
|
yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
|
|
|
|
no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
|
1995-11-16 21:42:27 +00:00
|
|
|
*) AC_MSG_ERROR("--enable-sim-model-issue does not take a value"); sim_model_issue="";;
|
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes"; then
|
|
|
|
echo "Setting model-issue flags = $sim_model_issue" 6>&1
|
|
|
|
fi],[sim_model_issue=""])dnl
|
|
|
|
|
1996-03-29 17:33:56 +00:00
|
|
|
AC_ARG_ENABLE(sim-stdio,
|
|
|
|
[ --enable-sim-stdio Specify whether to use stdio for console input/output.],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
|
|
|
|
no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
|
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-stdio"); sim_stdio="";;
|
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
|
|
|
|
echo "Setting stdio flags = $sim_stdio" 6>&1
|
|
|
|
fi],[sim_stdio=""])dnl
|
|
|
|
|
1995-08-23 21:06:36 +00:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
|
|
|
|
. ${srcdir}/../../bfd/configure.host
|
|
|
|
|
1995-11-09 19:50:51 +00:00
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_PROG_RANLIB
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_SUBST(sim_cflags)
|
1995-11-08 18:57:06 +00:00
|
|
|
AC_SUBST(sim_warnings)
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_SUBST(sim_config)
|
|
|
|
AC_SUBST(sim_opcode)
|
|
|
|
AC_SUBST(sim_switch)
|
|
|
|
AC_SUBST(sim_dup)
|
|
|
|
AC_SUBST(sim_filter)
|
|
|
|
AC_SUBST(sim_icache)
|
|
|
|
AC_SUBST(sim_inline)
|
|
|
|
AC_SUBST(sim_bswap)
|
|
|
|
AC_SUBST(sim_endian)
|
1995-11-13 16:07:30 +00:00
|
|
|
AC_SUBST(sim_xor_endian)
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_SUBST(sim_hostendian)
|
|
|
|
AC_SUBST(sim_smp)
|
|
|
|
AC_SUBST(sim_bitsize)
|
|
|
|
AC_SUBST(sim_hostbitsize)
|
|
|
|
AC_SUBST(sim_env)
|
|
|
|
AC_SUBST(sim_timebase)
|
|
|
|
AC_SUBST(sim_alignment)
|
|
|
|
AC_SUBST(sim_float)
|
|
|
|
AC_SUBST(sim_trace)
|
|
|
|
AC_SUBST(sim_assert)
|
1995-11-10 22:49:05 +00:00
|
|
|
AC_SUBST(sim_reserved)
|
1995-11-02 20:21:35 +00:00
|
|
|
AC_SUBST(sim_monitor)
|
1995-11-08 18:57:06 +00:00
|
|
|
AC_SUBST(sim_model)
|
|
|
|
AC_SUBST(sim_default_model)
|
1995-11-16 21:42:27 +00:00
|
|
|
AC_SUBST(sim_model_issue)
|
1996-03-29 17:33:56 +00:00
|
|
|
AC_SUBST(sim_stdio)
|
1995-11-02 20:21:35 +00:00
|
|
|
|
|
|
|
AC_CHECK_FUNCS(getrusage)
|
1995-09-08 23:56:38 +00:00
|
|
|
|
|
|
|
# Put a plausible default for CC_FOR_BUILD in Makefile.
|
|
|
|
AC_C_CROSS
|
|
|
|
if test "x$cross_compiling" = "xno"; then
|
|
|
|
CC_FOR_BUILD='$(CC)'
|
1995-08-23 21:06:36 +00:00
|
|
|
else
|
1995-09-08 23:56:38 +00:00
|
|
|
CC_FOR_BUILD=gcc
|
1995-08-23 21:06:36 +00:00
|
|
|
fi
|
1995-09-08 23:56:38 +00:00
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-30 11:13:08 +00:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_SUBST(WORDS_BIGENDIAN)
|
|
|
|
|
1996-03-08 01:24:01 +00:00
|
|
|
AC_CHECK_HEADERS(string.h strings.h stdlib.h time.h sys/mount.h sys/types.h sys/time.h sys/times.h unistd.h sys/resource.h)
|
1996-02-14 22:50:23 +00:00
|
|
|
AC_HEADER_DIRENT
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
AC_OUTPUT(Makefile,
|
|
|
|
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|