This is the mail archive of the autoconf@gnu.org mailing list for the autoconf project.


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

[cygnus.egcs.patches] Patch for IFS


Maybe configure should set IFS by default?

Tom
------- Start of forwarded message -------
From: Geoff Keating <geoffk@cygnus.com>
Newsgroups: cygnus.egcs.patches
Subject: Patch for IFS
Date: Wed, 15 Mar 2000 19:35:12 -0800
Organization: None provided
Message-ID: <200003160335.TAA32195@localhost.cygnus.com>
To: gcc-patches@gcc.gnu.org


GCC wasn't configuring properly with --enable-checking on Solaris 2.6
with the default shell.  It turns out that shell doesn't set IFS by
default, and it ends up with being ',', which is not good.  Silly
shell.

Is this patch OK?

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/egcs-ifs.patch=====================
2000-03-15  Geoff Keating  <geoffk@cygnus.com>

	* configure.in: Set $IFS to a value if it doesn't already have one
	in the --enable-checking handling.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.346
diff -p -u -u -p -r1.346 configure.in
--- configure.in	2000/03/16 03:16:40	1.346
+++ configure.in	2000/03/16 03:33:02
@@ -186,7 +186,7 @@ yes)	AC_DEFINE(ENABLE_CHECKING)
 	AC_DEFINE(ENABLE_TREE_CHECKING)
 	AC_DEFINE(ENABLE_RTL_CHECKING)	;;
 no)	;;
-*)	ac_save_IFS="$IFS" IFS="$IFS,"
+*)	IFS="${IFS= 	}"; ac_save_IFS="$IFS" IFS="$IFS,"
 	set fnord $enableval; shift
 	IFS="$ac_save_IFS"
 	for check
============================================================
------- End of forwarded message -------


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