This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/sim] Fix use of AC_CONFIG_SUBDIRS in sim/testsuite/
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 07 Jan 2005 18:37:53 -0500
- Subject: [commit/sim] Fix use of AC_CONFIG_SUBDIRS in sim/testsuite/
(I hope, I've none of these systems to test with)
committed,
Andrew
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.in: Pass literal subdirectories to AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/sim/testsuite/configure.in,v
retrieving revision 1.1.1.1
diff -p -u -r1.1.1.1 configure.in
--- configure.in 16 Apr 1999 01:35:14 -0000 1.1.1.1
+++ configure.in 7 Jan 2005 23:35:51 -0000
@@ -12,18 +12,17 @@ AC_SUBST(CC)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
AC_CANONICAL_SYSTEM
-# Directories to use in all configurations.
-configdirs=""
-
-# add test sub-directory for appropriate targets
-testdir=`echo ${target} | sed -e 's/-.*-/-/'`
-if test -r ${srcdir}/${testdir}/configure ; then
- configdirs="${configdirs} $testdir"
-fi
-
-# add any extra subdirectories
-case $target in
- *) ;;
+# Configure sub-directory for appropriate targets
+case ${target} in
+ frv-*-elf )
+ AC_CONFIG_SUBDIRS(frv-elf)
+ ;;
+ m32r-*-elf )
+ AC_CONFIG_SUBDIRS(m32r-elf)
+ ;;
+ mips64el-*-elf )
+ AC_CONFIG_SUBDIRS(mips64el-elf)
+ ;;
esac
# Compute the target architecture.
@@ -34,7 +33,4 @@ case $target in
esac
AC_SUBST(arch)
-# configure the subdirectories too
-AC_CONFIG_SUBDIRS($configdirs)
-
AC_OUTPUT(Makefile)