* configure.in (--enable-sim-powerpc): Delete.
(--enable-sim): Add. * configure: Regenerated.
This commit is contained in:
parent
d9c0593f2a
commit
6cc77b01e7
|
@ -26,17 +26,18 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(CC_FOR_BUILD)
|
AC_SUBST(CC_FOR_BUILD)
|
||||||
|
|
||||||
# The PowerPC simulator uses the GCC extension long long as well as
|
# If a cpu ever has more than one simulator to choose from, use
|
||||||
# ANSI prototypes, so don't enable it for random host compilers
|
# --enable-sim=... to choose.
|
||||||
# unless asked to.
|
AC_ARG_ENABLE(sim,
|
||||||
|
[ --enable-sim ],
|
||||||
AC_ARG_ENABLE(sim-powerpc,
|
|
||||||
[ --enable-sim-powerpc ],
|
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes) powerpc_sim=yes ;;
|
yes | no) ;;
|
||||||
no) powerpc_sim=no ;;
|
*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;;
|
esac])
|
||||||
esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
|
|
||||||
|
# Assume simulator can be built with cc.
|
||||||
|
# If the user passes --enable-sim built it regardless of $(CC).
|
||||||
|
only_if_gcc=no
|
||||||
|
|
||||||
# WHEN ADDING ENTRIES TO THIS MATRIX:
|
# WHEN ADDING ENTRIES TO THIS MATRIX:
|
||||||
# Make sure that the left side always has two dashes. Otherwise you
|
# Make sure that the left side always has two dashes. Otherwise you
|
||||||
|
@ -51,41 +52,54 @@ case "${target}" in
|
||||||
h8300*-*-*) sim_target=h8300 ;;
|
h8300*-*-*) sim_target=h8300 ;;
|
||||||
h8500-*-*) sim_target=h8500 ;;
|
h8500-*-*) sim_target=h8500 ;;
|
||||||
mips*-*-*)
|
mips*-*-*)
|
||||||
# The MIPS simulator can only be compiled
|
# The MIPS simulator can only be compiled by gcc.
|
||||||
# by gcc.
|
sim_target=mips
|
||||||
if test "${GCC}" = "yes"; then
|
only_if_gcc=yes
|
||||||
sim_target=mips
|
;;
|
||||||
else
|
|
||||||
sim_target=none
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
sh*-*-*) sim_target=sh ;;
|
sh*-*-*) sim_target=sh ;;
|
||||||
powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* )
|
powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* )
|
||||||
if test x"$powerpc_sim" = x"yes"; then sim_target=ppc; fi ;;
|
# The PowerPC simulator uses the GCC extension long long as well as
|
||||||
|
# ANSI prototypes, so don't enable it for random host compilers
|
||||||
|
# unless asked to.
|
||||||
|
sim_target=ppc
|
||||||
|
only_if_gcc=yes
|
||||||
|
;;
|
||||||
# start-sanitize-v850
|
# start-sanitize-v850
|
||||||
v850-*-*)
|
v850-*-*)
|
||||||
# The V850 simulator can only be compiled
|
# The V850 simulator can only be compiled by gcc.
|
||||||
# by gcc.
|
sim_target=v850
|
||||||
if test "${GCC}" = "yes"; then
|
only_if_gcc=yes
|
||||||
sim_target=v850
|
;;
|
||||||
else
|
|
||||||
sim_target=none
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
# end-sanitize-v850
|
# end-sanitize-v850
|
||||||
w65-*-*) sim_target=w65 ;;
|
w65-*-*) sim_target=w65 ;;
|
||||||
z8k*-*-*) sim_target=z8k ;;
|
z8k*-*-*) sim_target=z8k ;;
|
||||||
sparc*-*-*) # The SPARC simulator can only be compiled
|
sparc*-*-*)
|
||||||
# by gcc.
|
# The SPARC simulator can only be compiled by gcc.
|
||||||
if test "${GCC}" = "yes"; then
|
sim_target=erc32
|
||||||
sim_target=erc32
|
only_if_gcc=yes
|
||||||
else
|
;;
|
||||||
sim_target=none
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*) sim_target=none ;;
|
*) sim_target=none ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case "${enable_sim}" in
|
||||||
|
no) sim_target=none ;;
|
||||||
|
yes)
|
||||||
|
if test ${only_if_gcc} = yes ; then
|
||||||
|
if test "${GCC}" != yes ; then
|
||||||
|
echo "Can't enable simulator since not compiling with GCC."
|
||||||
|
sim_target=none
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if test ${only_if_gcc} = yes ; then
|
||||||
|
if test "${GCC}" != yes ; then
|
||||||
|
sim_target=none
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
configdirs=${sim_target}
|
configdirs=${sim_target}
|
||||||
AC_CONFIG_SUBDIRS($configdirs)
|
AC_CONFIG_SUBDIRS($configdirs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue