Fix from Cagney so that new common files do not show up when using psim on old gdbs
authorMichael Meissner <gnu@the-meissners.org>
Thu, 30 Jan 1997 00:55:18 +0000 (00:55 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Thu, 30 Jan 1997 00:55:18 +0000 (00:55 +0000)
sim/ppc/ChangeLog
sim/ppc/Makefile.in
sim/ppc/configure
sim/ppc/configure.in

index 02dda8ca665c9a90d1a3e6367fb74fb09527f8e1..df1ca6292dcbf705d22d4af2dfb2ef2a311ab116 100644 (file)
@@ -1,3 +1,11 @@
+Thu Jan 30 11:23:20 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
+
+       * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
+       @sim_targ_vals@
+
+       * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
+       if common callback is present.
+
 Wed Jan 29 12:32:41 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * configure.in (sim_callback): If the gdb is post 4.16, configure
index 2917624fcef379f87de37707a0854478056f97aa..365164e27ce3562afd241827939c2b9be977d40c 100644 (file)
@@ -223,7 +223,7 @@ BUILT_SRC_WO_CONFIG = \
        pk.h \
        hw.h hw.c \
        filter_host.c \
-       targ-vals.h targ-map.c targ-vals.def
+       @sim_targ_vals@
 
 BUILT_SRC = \
        $(BUILT_SRC_WO_CONFIG) \
index 3ca1f5e0313cab66194e452db9cfe2bd115491bc..c960508f62c863df9d3d0c341a47f399a073e0b8 100755 (executable)
@@ -2835,9 +2835,11 @@ echo "configure:2835: checking for common simulator directory" >&5
 if test -e "${srcdir}/../common/callback.c"; then
   echo "$ac_t""yes" 1>&6
   sim_callback="callback.o targ-map.o"
+  sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
 else
   echo "$ac_t""no" 1>&6
   sim_callback=""
+  sim_targ_vals=""
 fi
 
 
@@ -2848,7 +2850,7 @@ AR=${AR-ar}
 # Extract the first word of "ranlib", so it can be a program name with args.
 set dummy ranlib; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2852: checking for $ac_word" >&5
+echo "configure:2854: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2913,6 +2915,7 @@ fi
 
 
 
+
 
 
 trap '' 1 2 15
@@ -3110,6 +3113,7 @@ s%@sim_stdio@%$sim_stdio%g
 s%@sim_termio@%$sim_termio%g
 s%@sim_devzero@%$sim_devzero%g
 s%@sim_callback@%$sim_callback%g
+s%@sim_targ_vals@%$sim_targ_vals%g
 
 CEOF
 EOF
index daef6e2432c1431244ee0d3b889253be76d11370..d6a319f9580f226661d9ec2b5b1ac5b91801b5f0 100644 (file)
@@ -661,9 +661,11 @@ AC_MSG_CHECKING(for common simulator directory)
 if test -e "${srcdir}/../common/callback.c"; then
   AC_MSG_RESULT(yes)
   sim_callback="callback.o targ-map.o"
+  sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
 else
   AC_MSG_RESULT(no)
   sim_callback=""
+  sim_targ_vals=""
 fi
 
 AC_SUBST(CC_FOR_BUILD)
@@ -712,6 +714,7 @@ AC_SUBST(sim_stdio)
 AC_SUBST(sim_termio)
 AC_SUBST(sim_devzero)
 AC_SUBST(sim_callback)
+AC_SUBST(sim_targ_vals)
 
 AC_OUTPUT(Makefile,
 [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])