From: Hans-Peter Nilsson Date: Wed, 29 Mar 2006 03:40:25 +0000 (+0000) Subject: * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate- X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea696909f349632e1a3ce3294047166b86af2a4a;p=binutils-gdb.git * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate- option-contents test. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 2db4937be7e..dcadcd6fbfb 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2006-03-29 Hans-Peter Nilsson + + * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate- + option-contents test. + 2005-11-28 Mark Mitchell * sim-signal.c (sim_signal_to_target): Fix typos. diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4 index 056bebacb97..d94b1e6ade2 100644 --- a/sim/common/aclocal.m4 +++ b/sim/common/aclocal.m4 @@ -593,9 +593,8 @@ else # remove duplicates sim_hw="" sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" - for i in x $hardware ; do - case " $f " in - x) ;; + for i in $hardware ; do + case " $sim_hw " in *" $i "*) ;; *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; esac