bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: m4-1.4.x fails to build git Autoconf for some x


From: Ralf Wildenhues
Subject: Re: m4-1.4.x fails to build git Autoconf for some x
Date: Tue, 25 Mar 2008 23:16:13 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* Eric Blake wrote on Tue, Mar 25, 2008 at 01:55:56PM CET:

> | just killing \r in autom4te.in leads to
> |
> | C:\msys\1.0\home\ralf\local\bin\m4.exe: premature end of frozen file
>
> Where did you kill \r?  From the frozen file itself (if so, how did it get
> there in the first place, if m4 is reading input in O_TEXT)?

I merely did something like this without thinking much myself.

Cheers,
Ralf

diff --git a/bin/autom4te.in b/bin/autom4te.in
index 8efe537..50d9c23 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -926,6 +926,7 @@ sub freeze ($)
                    . " " . files_to_options (@ARGV)
                    . ' </dev/null');
   $result =~ s/#.*\n//g;
+  $result =~ s/^\r//mg;
   $result =~ s/^\n//mg;
 
   fatal "freezing produced output:\n$result"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]