aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/configure.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-02-17 20:54:50 +0000
committerDoug Evans <dje@google.com>1998-02-17 20:54:50 +0000
commited063d525f9a8ad0b3672983650d33056b3e5e36 (patch)
treefdcab03b000d4e7aece11e821555a5110b0ad7fa /sim/testsuite/configure.in
parent9902213101350fc9ad9386879e28aee7895feae8 (diff)
downloadgdb-ed063d525f9a8ad0b3672983650d33056b3e5e36.zip
gdb-ed063d525f9a8ad0b3672983650d33056b3e5e36.tar.gz
gdb-ed063d525f9a8ad0b3672983650d33056b3e5e36.tar.bz2
* Makefile.in (build_alias): Define.
(arch): Define. (RUNTEST_FOR_TARGET): Delete. (RUNTEST): Fix. (SCHEME,SCHEMEFLAGS,CGENDIR,CGENFLAGS,CGENFILES): Define. (check): Depend on site.exp. (site.exp): New target. (cgen): New target. * configure.in: Call AC_CHECK_PROG(SCHEME) if using cgen. (arch): Define from target_cpu. * configure: Regenerate.
Diffstat (limited to 'sim/testsuite/configure.in')
-rw-r--r--sim/testsuite/configure.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/sim/testsuite/configure.in b/sim/testsuite/configure.in
index 7c1b73e..28e9fef 100644
--- a/sim/testsuite/configure.in
+++ b/sim/testsuite/configure.in
@@ -21,6 +21,22 @@ if test -r ${srcdir}/${testdir}/configure ; then
configdirs="${configdirs} $testdir"
fi
+case $target in
+ m32r-*-*) use_cgen=yes ;;
+ *) use_cgen=no ;;
+esac
+if test $use_cgen = yes ; then
+ AC_CHECK_PROG(SCHEME, guile, guile, guile)
+fi
+
+# Compute the target architecture.
+# FIXME: Will need to canonicalize some values.
+# FIXME: Should be in generally accessable place.
+case $target in
+ *) arch=${target_cpu} ;;
+esac
+AC_SUBST(arch)
+
# configure the subdirectories too
AC_CONFIG_SUBDIRS($configdirs)