This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/config] Correct use of AC_CONFIG_SUBDIRS
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 07 Jan 2005 10:17:48 -0500
- Subject: [commit/config] Correct use of AC_CONFIG_SUBDIRS
FYI, AC_CONFIG_SUBDIRS shouldn't be passed a shell variable. This fixes it.
committed,
Andrew
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.in: Replace configdirs with multiple references to
AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: doc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.in: Replace configdirs with multiple references to
AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.178
diff -p -u -r1.178 configure.in
--- configure.in 9 Nov 2004 00:59:03 -0000 1.178
+++ configure.in 7 Jan 2005 15:15:09 -0000
@@ -118,7 +118,6 @@ AC_DEFINE_DIR(DEBUGDIR, debugdir,
#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
AC_CONFIG_SUBDIRS(doc testsuite)
-configdirs=
. $srcdir/configure.host
@@ -1328,7 +1327,7 @@ if test "${enable_gdbtk}" = "yes"; then
fi
fi
- configdirs="${configdirs} gdbtk"
+ AC_CONFIG_SUBDIRS(gdbtk)
fi
AC_SUBST(X_CFLAGS)
@@ -1475,22 +1474,20 @@ AC_ARG_ENABLE(multi-ice,
*) AC_MSG_ERROR([bad value $enableval for --enable-multi-ice]) ;;
esac])
if test "x$enable_multi_ice" = xyes; then
- configdirs="$configdirs multi-ice"
+ AC_CONFIG_SUBDIRS(multi-ice)
fi
# We only build gdbserver automatically if host and target are the same.
if test "x$target" = "x$host"; then
AC_MSG_CHECKING(whether gdbserver is supported on this host)
if test "x$build_gdbserver" = xyes; then
- configdirs="$configdirs gdbserver"
AC_MSG_RESULT(yes)
+ AC_CONFIG_SUBDIRS(gdbserver)
else
AC_MSG_RESULT(no)
fi
fi
-AC_CONFIG_SUBDIRS($configdirs)
-
# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
# to an empty version.
Index: testsuite/configure.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/configure.in,v
retrieving revision 1.17
diff -p -u -r1.17 configure.in
--- testsuite/configure.in 12 Oct 2004 14:41:42 -0000 1.17
+++ testsuite/configure.in 7 Jan 2005 15:15:10 -0000
@@ -32,13 +32,10 @@ AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
-# Directories that need to be configured in all configurations.
-configdirs=
-
# Add HP-specific tests when appropriate.
case $target in
hppa*-*-hpux*)
- configdirs="$configdirs gdb.hp" ;;
+ AC_CONFIG_SUBDIRS(gdb.hp) ;;
esac
# With stabs.
@@ -63,7 +60,7 @@ esac])
# Add stabs tests when appropriate.
if test $with_stabs = yes; then
- configdirs="$configdirs gdb.stabs"
+ AC_CONFIG_SUBDIRS(gdb.stabs)
fi
# Enable gdbtk.
@@ -82,7 +79,7 @@ esac
# Add gdbtk tests when appropriate.
if test $enable_gdbtk = yes; then
- configdirs="$configdirs gdb.gdbtk"
+ AC_CONFIG_SUBDIRS(gdb.gdbtk)
fi
# Enable shared libraries.
@@ -117,7 +114,6 @@ AC_CHECK_HEADERS(pthread.h)
AC_EXEEXT
-AC_CONFIG_SUBDIRS($configdirs)
AC_OUTPUT([Makefile \
gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \