bug-autoconf
[Top][All Lists]
Advanced

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

Re: [BUG] CR handling related autoconf problem


From: Andris Pavenis
Subject: Re: [BUG] CR handling related autoconf problem
Date: Sat, 21 Mar 2009 15:21:36 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Ralf Wildenhues wrote:
Hello Andris,

* Andris Pavenis wrote on Fri, Mar 20, 2009 at 07:28:50PM CET:
Current handling CR in config.status breaks for DJGPP all
packeges which configure script has been updated with new
autoconf versions (like 2.63).

The awk script subs.awk generated by config.status contains
\r at end of each line instead of real CR (see attachment
for an example). As result awk fails with an error message:

configure: creating ./config.status
config.status: creating Makefile
gawk: ./conf6531-11753/subs.awk:1: BEGIN {\r
gawk: ./conf6531-11753/subs.awk:1:        ^ backslash not last character on line

Thanks for the bug report and patch.  Could you please run the Autoconf
testsuite on this system, with your patch applied, and report the
result?  Which awk version is this?  Do you mind being added to THANKS?

About testsuite:
The last autoconf version which I was able to build for i586-pc-msdosdjgpp
was 2.61 if I remember correctly and then I had rather large number of
test failures. I have however run tests of autoconf-2.63 on x86_64-gnu-linux
both with patch applied and without them. No regressions found (no unexpected
failures in both runs).

I wanted to compare test results for mingw32, unfortunately building
autocond-2.63 for it does not work (at least not immediately immediately).
I suspect that the problems may be similar as with building latest
autoconf versions for DJGPP.

AWK version:
GNU Awk 3.16.

About thanks:
It's OK.


Thanks,
Ralf

--- status.m4.orig      2009-03-20 20:01:18.000000000 +0000
+++ status.m4   2009-03-20 20:02:26.000000000 +0000
@@ -373,7 +373,7 @@
 ac_cr=''
 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
-  ac_cs_awk_cr='\\r'
+  ac_cs_awk_cr='\r'
 else
   ac_cs_awk_cr=$ac_cr
 fi





reply via email to

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