This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Cleanup configure.in (11/n)


Bleh!  That message went out too early.  This is what I actually did
check in.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
	* configure.in: Cleanup section that sources GDB and BFD configure
	subscripts.  Remove evil changequotes here.
	* config.in, configure: Regenerated.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.107
diff -u -p -r1.107 configure.in
--- configure.in 2 Jan 2003 20:29:15 -0000 1.107
+++ configure.in 2 Jan 2003 22:43:34 -0000
@@ -76,31 +76,24 @@ if test "${enable_multi_ice}" = "yes"; t
   configdirs="${configdirs} multi-ice"
 fi
 
-dnl
-changequote(,)dnl
+. $srcdir/configure.host
 
-. ${srcdir}/configure.host
+. $srcdir/configure.tgt
 
-. ${srcdir}/configure.tgt
+# Fetch the default architecture and default target vector from BFD.
+targ=$target; . $srcdir/../bfd/config.bfd
 
-targ=${target} ; . ${srcdir}/../bfd/config.bfd
+# We only want the first architecture, so strip off the others if
+# there is more than one.
+targ_archs=`echo $targ_archs | sed 's/ .*//'`
 
-dnl
-changequote([,])dnl
-
-dnl use BFD to determine the default architecture and byte order
-dnl (bfd_vec->byteorder provides the latter).
-targ=${target}
-. ${srcdir}/../bfd/config.bfd
-
-dnl We only want the first arch, if there is more than one.
-targ_archs=`echo ${targ_archs} | sed -e 's/ .*//;'`
-
-if test x"${targ_archs}" != x ; then
-    AC_DEFINE_UNQUOTED(DEFAULT_BFD_ARCH, ${targ_archs})
+if test "x$targ_archs" != x; then
+  AC_DEFINE_UNQUOTED(DEFAULT_BFD_ARCH, $targ_archs,
+    [Define to BFD's default architecture. ])
 fi
-if test x"${targ_defvec}" != x ; then
-    AC_DEFINE_UNQUOTED(DEFAULT_BFD_VEC, ${targ_defvec})
+if test "x$targ_defvec" != x; then
+  AC_DEFINE_UNQUOTED(DEFAULT_BFD_VEC, $targ_defvec,
+    [Define to BFD's default target vector. ])
 fi
 
 AC_ARG_PROGRAM
Index: acconfig.h
===================================================================
RCS file: /cvs/src/src/gdb/acconfig.h,v
retrieving revision 1.21
diff -u -p -r1.21 acconfig.h
--- acconfig.h 2 Jan 2003 19:35:31 -0000 1.21
+++ acconfig.h 2 Jan 2003 22:43:34 -0000
@@ -156,12 +156,6 @@
 /* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request.  */
 #undef HAVE_PT_GETXMMREGS
 
-/* BFD's default architecture. */
-#undef DEFAULT_BFD_ARCH
-
-/* BFD's default target vector. */
-#undef DEFAULT_BFD_VEC
-
 /* Multi-arch enabled. */
 #undef GDB_MULTI_ARCH
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]