This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch for IFS in configure
- To: gcc-patches at gcc dot gnu dot org
- Subject: patch for IFS in configure
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Mon, 20 Mar 2000 11:08:08 -0800
configure was failing on solaris 2.6 when --enable-checking was used
because IFS was not being set by the shell. This works around it
in the approved autoconf way.
I may have sent this patch in before, I forget.
--
- 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
============================================================