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

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

 



* 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"


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux