From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1156 invoked by alias); 19 Jun 2002 17:48:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32664 invoked from network); 19 Jun 2002 17:46:54 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 19 Jun 2002 17:46:54 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 17KjWf-0006Uf-00; Wed, 19 Jun 2002 13:45:49 -0400 Date: Wed, 19 Jun 2002 10:48:00 -0000 To: gcc-patches@gcc.gnu.org Cc: gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: [patch] rearrange configure.in for my benefit. :-) Message-ID: <20020619174549.GA24953@doctormoo.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Nathanael Nerode X-SW-Source: 2002-06/txt/msg00372.txt.bz2 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 * 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