sim: rewrite SIM_AC_OPTION_HARDWARE a bit to simplify things
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Mar 2013 18:00:04 +0000 (18:00 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Mar 2013 18:00:04 +0000 (18:00 +0000)
commit1517bd274290e06af498ef7e496519e4bbc4d5e6
treed946b54ed6d438ea64f47b15e44c56f0a8bd55fe
parent1fb2e2b56901690331720448836755a4eee944c7
sim: rewrite SIM_AC_OPTION_HARDWARE a bit to simplify things

There's no need to put the majority of the logic into the 3rd arg of the
AC_ARG_ENABLE.  Coupled with the lack of indentation, it makes it hard to
follow, error prone to update, and duplicates code (with the 4th arg).

So pull the logic out of the 3rd arg and outside of the AC_ARG_ENABLE
macro.  This allows us to gut the 4th arg entirely, merge with the code
that followed the macro, and fix bugs related to the new dv-sockser in
the process.

Hopefully building the various sims with the default sim-hardware
settings, as well as with explicit --{dis,en}able-sim-hardware flags,
should all just work now.
23 files changed:
sim/bfin/ChangeLog
sim/bfin/aclocal.m4
sim/bfin/configure
sim/common/ChangeLog
sim/common/acinclude.m4
sim/cris/ChangeLog
sim/cris/configure
sim/frv/ChangeLog
sim/frv/configure
sim/iq2000/ChangeLog
sim/iq2000/configure
sim/lm32/ChangeLog
sim/lm32/configure
sim/m32r/ChangeLog
sim/m32r/configure
sim/m68hc11/ChangeLog
sim/m68hc11/configure
sim/mips/ChangeLog
sim/mips/configure
sim/mn10300/ChangeLog
sim/mn10300/configure
sim/sh64/ChangeLog
sim/sh64/configure