2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
authorJoel Sherrill <joel.sherrill@oarcorp.com>
Sat, 23 Mar 2013 15:08:07 +0000 (15:08 +0000)
committerJoel Sherrill <joel.sherrill@oarcorp.com>
Sat, 23 Mar 2013 15:08:07 +0000 (15:08 +0000)
* configure.ac: Use $SIM_DV_SOCKSER_O.
* configure: Regenerated.

sim/bfin/ChangeLog
sim/bfin/configure
sim/bfin/configure.ac
sim/m68hc11/ChangeLog
sim/m68hc11/configure.ac

index 5026a604fd885639769cd1e08d4014784aac40ad..2b653b73f5481db855a85fafabdca2c2b4d50237 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-23  Joel Sherrill  <joel.sherrill@oarcorp.com>
+
+       * configure.ac: Use $SIM_DV_SOCKSER_O.
+       * configure: Regenerated.
+
 2012-12-20  Joel Brobecker  <brobecker@adacore.com>
 
        * aclocal.m4: Revert the previous change changing
index 629e08a5f2b52abf2ac6cd7472637d5b7b51854d..27951c22f907643f42d8988742580e30c85fc7a2 100755 (executable)
@@ -607,6 +607,7 @@ PKG_CONFIG_LIBDIR
 PKG_CONFIG_PATH
 PKG_CONFIG
 BFIN_SIM_EXTRA_OBJS
+SIM_DV_SOCKSER_O
 REPORT_BUGS_TEXI
 REPORT_BUGS_TO
 PKGVERSION
@@ -12294,7 +12295,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12297 "configure"
+#line 12298 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12400,7 +12401,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12403 "configure"
+#line 12404 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13413,7 +13414,7 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
 fi
 
 
-if test x"yes" = x"yes"; then
+if test x"yes" != x"no"; then
   sim_hw_p=yes
 else
   sim_hw_p=no
@@ -13484,6 +13485,19 @@ else
       *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
     esac
   done
+  # mingw does not support sockser
+  SIM_DV_SOCKSER_O=""
+  case ${host} in
+    *mingw*) ;;
+    *) SIM_DV_SOCKSER_O="dv-sockser.o"
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DV_SOCKSER 1
+_ACEOF
+
+       ;;
+  esac
+
 fi
 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
 else
 
 if test "$sim_hw_p" != yes; then
+  if test "yes" = "always"; then
+    as_fn_error "Sorry, but this simulator requires that hardware support
+be enabled. Please configure without --disable-hw-support." "$LINENO" 5
+  fi
   sim_hw_objs=
   sim_hw_cflags="-DWITH_HW=0"
   sim_hw=
 done
 
 
-BFIN_SIM_EXTRA_OBJS=
-
-case ${host} in
-  *mingw32*) ;;
-  *)
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DV_SOCKSER 1
-_ACEOF
-
-    BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o"
-    ;;
-esac
-
+BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} ${SIM_DV_SOCKSER_O}"
 BFIN_SIM_EXTRA_OBJS=${BFIN_SIM_EXTRA_OBJS}
 
 
index edf09bace3424529b28318c7a627cd22a1427ff6..bd7df51e23a0c51a4e8c97256bc2e1c635255111 100644 (file)
@@ -56,17 +56,7 @@ AC_CHECK_HEADERS([ \
        sys/mman.h \
 ])
 
-BFIN_SIM_EXTRA_OBJS=
-
-dnl make sure the dv-sockser code can be supported (i.e. windows)
-case ${host} in
-  *mingw32*) ;;
-  *)
-    AC_DEFINE_UNQUOTED([HAVE_DV_SOCKSER], 1, [Define if dv-sockser is usable.])
-    BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o"
-    ;;
-esac
-
+BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} ${SIM_DV_SOCKSER_O}"
 AC_SUBST([BFIN_SIM_EXTRA_OBJS], ${BFIN_SIM_EXTRA_OBJS})
 
 PKG_PROG_PKG_CONFIG
index 645bd8bc95ad12b56229e4ae51ccdf10bed2a2b7..62ddd699b5b1e449e50fd909ad8a074662d44b05 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-23  Joel Sherrill  <joel.sherrill@oarcorp.com>
+
+       * configure.ac: Use $SIM_DV_SOCKSER_O.
+       * configure: Regenerated.
+
 2012-06-15  Joel Brobecker  <brobecker@adacore.com>
 
        * config.in, configure: Regenerate.
index eef46914a7d710e873fa22861cc593b9a810022a..fe4fb37c6593bf3262ca9b5560a8e26dafb1821d 100644 (file)
@@ -19,7 +19,6 @@ case "${target}" in
   m68hc11-*-*|m6811-*-*)
        hw_enabled=yes
        hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
-       m68hc11_extra_objs="dv-sockser.o"
        SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1"
        ;;
   *)
@@ -30,6 +29,7 @@ SIM_AC_OPTION_HARDWARE($hw_enabled,$hw_devices,$hw_extra_devices)
 
 AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h fcntl.h)
 
+m68hc11_extra_objs="$SIM_DV_SOCKSER_O"
 AC_SUBST(m68hc11_extra_objs)
 
 SIM_AC_OUTPUT