[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH CVS] OS/2 test 3
From: |
Akim Demaille |
Subject: |
Re: [PATCH CVS] OS/2 test 3 |
Date: |
Sat, 01 Mar 2003 12:26:15 +0100 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 |
Richard> Hello.
Richard> Ilya Zakharevich wrote:
>>
>> Test 3 shows wrong expectations about m4 error message (on OS/2):
>>
>> --- - Thu Jan 1 00:00:00 1970
>> +++ K:/get/autoconf/autoconf.my/tests/testsuite.dir/at-stdout Fri Feb 14
>> 20:05:30 2003
>> @@ -1,3 +1,3 @@
>> -m4: script.4s: 1: Cannot open foo: No such file or directory
>> +script.4s:1: i:/emx.add/bin/m4: Cannot open foo: No such file or directory
>> autom4te: m4 failed with exit status: 1
>>
>> I do not know how to best fix this.
Richard> [snip]
Richard> FWIW I also had to patch this for the DJGPP port of autoconf 2.57.
Richard> Bye, Rich =]
You should dig in the guts of
# AT_CHECK_AUTOM4TE(FLAGS, [EXIT-STATUS = 0], STDOUT, STDERR)
# -----------------------------------------------------------
# If stderr is specified, normalize the observed stderr. E.g. (GNU M4 1.5):
#
# /usr/local/bin/m4: script.4s: 1: Cannot open foo: No such file or directory
# autom4te: /usr/local/bin/m4 failed with exit status: 1
#
# or (using gm4 as GNU M4 1.4):
#
# script.4s:1: /usr/local/bin/gm4: Cannot open foo: No such file or directory
# autom4te: /usr/local/bin/m4 failed with exit status: 1
#
# becomes
#
# m4: script.4s: 1: Cannot open foo: No such file or directory
# autom4te: m4 failed with exit status: 1
#
# We use the following sed patterns:
#
# (file): (line): (m4):
# or (m4): (file): (line):
# to m4: (file): (line):
#
# and
# autom4te: [^ ]m4
# to autom4te: m4
m4_define([AT_CHECK_AUTOM4TE],
[AT_CHECK([autom4te $1], [$2], [$3], m4_ifval([$4], [stderr]))
m4_ifval([$4],
[AT_CHECK([[sed -e 's,^\([^:]*\): *\([0-9][0-9]*\): *[^:]*m4: ,m4: \1: \2: ,' \
-e 's,^[^:]*m4: *\([^:]*\): *\([0-9][0-9]*\): ,m4: \1: \2: ,' \
-e 's/^autom4te: [^ ]*m4 /autom4te: m4 /' \
stderr]], [0],[$4])])
])
in tests/atspecific.m4.