Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] rearrange configure.in for my benefit. :-)
@ 2002-06-19 10:48 Nathanael Nerode
  2002-06-19 16:48 ` DJ Delorie
  0 siblings, 1 reply; 2+ messages in thread
From: Nathanael Nerode @ 2002-06-19 10:48 UTC (permalink / raw)
  To: gcc-patches; +Cc: gdb-patches, binutils, dj

Move things so that copydirs is handled right after it's set, rather than
with intervening stuff.  Also convert some 'test's to a case statement,
for speed and clarity.
Tested on i686-pc-linux-gnu, no output changes.

2002-06-19  Nathanael Nerode  <neroden@twcny.rr.com>
	* configure.in: Rearrange.

Index: configure.in
===================================================================
RCS file: /cvsroot/gcc/gcc/configure.in,v
retrieving revision 1.154
diff -u -r1.154 configure.in
--- configure.in	18 Jun 2002 21:58:44 -0000	1.154
+++ configure.in	19 Jun 2002 17:40:34 -0000
@@ -497,33 +497,6 @@
   done
 fi
 
-# If both --with-headers and --with-libs are specified, default to
-# --without-newlib.
-if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
-  if test x"${with_newlib}" = x ; then
-    with_newlib=no
-  fi
-fi
-
-# Recognize --with-newlib/--without-newlib.
-if test x${with_newlib} = xno ; then
-  skipdirs="${skipdirs} target-newlib"
-elif test x${with_newlib} = xyes ; then
-  skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
-fi
-
-# Default to using --with-stabs for certain targets.
-if test x${with_stabs} = x ; then
-  case "${target}" in
-  mips*-*-irix6*)
-    ;;
-  mips*-*-* | alpha*-*-osf*)
-    with_stabs=yes;
-    withoptions="${withoptions} --with-stabs"
-    ;;
-  esac
-fi
-
 # Handle ${copy_dirs}
 set fnord ${copy_dirs}
 shift
@@ -554,6 +527,32 @@
   fi
   shift; shift
 done
+
+# If both --with-headers and --with-libs are specified, default to
+# --without-newlib.
+if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
+  if test x"${with_newlib}" = x ; then
+    with_newlib=no
+  fi
+fi
+
+# Recognize --with-newlib/--without-newlib.
+case ${with_newlib} in
+  no) skipdirs="${skipdirs} target-newlib" ;;
+  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
+esac
+
+# Default to using --with-stabs for certain targets.
+if test x${with_stabs} = x ; then
+  case "${target}" in
+  mips*-*-irix6*)
+    ;;
+  mips*-*-* | alpha*-*-osf*)
+    with_stabs=yes;
+    withoptions="${withoptions} --with-stabs"
+    ;;
+  esac
+fi
 
 # Configure extra directories which are host specific
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] rearrange configure.in for my benefit. :-)
  2002-06-19 10:48 [patch] rearrange configure.in for my benefit. :-) Nathanael Nerode
@ 2002-06-19 16:48 ` DJ Delorie
  0 siblings, 0 replies; 2+ messages in thread
From: DJ Delorie @ 2002-06-19 16:48 UTC (permalink / raw)
  To: neroden; +Cc: gcc-patches, gdb-patches, binutils


> Move things so that copydirs is handled right after it's set, rather than
> with intervening stuff.  Also convert some 'test's to a case statement,
> for speed and clarity.
> Tested on i686-pc-linux-gnu, no output changes.
> 
> 2002-06-19  Nathanael Nerode  <neroden@twcny.rr.com>
> 	* configure.in: Rearrange.

Approved and applied, but I shared the ChangeLog entry from your
"Rearranged a little." patch ;)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-19 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-19 10:48 [patch] rearrange configure.in for my benefit. :-) Nathanael Nerode
2002-06-19 16:48 ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox