public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* patch for configure problem with bash 2
@ 1998-03-14 15:51 Dave Love
  1998-03-16 20:25 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Love @ 1998-03-14 15:51 UTC (permalink / raw)
  To: egcs

Here's a way of fixing the problem with configure under bash 2
sourcing /dev/null.  Using a non-existent file seems a bit better to
me than creating an empty one, but there may be reason to do
otherwise.  

If the problem is fixed in the next release of autoconf, this should
probably be reverted and AC_PREREQ used in configure.in.

1998-03-09  Dave Love  <d.love@dl.ac.uk>

	* Makefile.in ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a
	non-existent file since /dev/null loses with bash 2.0/autoconf 2.12.

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/Makefile.in,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile.in
--- Makefile.in 1998/02/18 00:18:26     1.16
+++ Makefile./14 19:03:50
@@ -1167,11 +1167,13 @@ $(CONFIGURE_TARGET_MODULES):
              libsrcdir="$$s/$${dir}"; \
            fi; \
            if [ -f $${libsrcdir}/configure ] ; then \
-             CONFIG_SITE=/dev/null $(SHELL) $${libsrcdir}/configure \
+             rm -f no-such-file; \
    CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
                $(CONFIG_ARGUMENTS) $${srcdiroption} \
                --with-target-subdir="$(TARGET_SUBDIR)"; \
            else \
-             CONFIG_SITE=/dev/null $(SHELL) $$s/configure \
+             rm -f no-such-file; \
+             CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
                $(CONFIG_ARGUMENTS) $${srcdiroption} \
                --with-target-subdir="$(TARGET_SUBDIR)"; \
            fi; \

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

* Re: patch for configure problem with bash 2
  1998-03-14 15:51 patch for configure problem with bash 2 Dave Love
@ 1998-03-16 20:25 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 1998-03-16 20:25 UTC (permalink / raw)
  To: Dave Love; +Cc: egcs

This patch looks OK.

The version I got was accidentally corrupted though.  One of the lines is
missing characters at the beginning.  Presumably you still have the
uncorrupted version of the patch.

Jim

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

end of thread, other threads:[~1998-03-16 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-14 15:51 patch for configure problem with bash 2 Dave Love
1998-03-16 20:25 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).