autoconf-patches
[Top][All Lists]
Advanced

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

Re: Autoconf 2.57g is released


From: Akim Demaille
Subject: Re: Autoconf 2.57g is released
Date: Tue, 28 Oct 2003 09:50:13 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

No private messages about public matters.

 > obsolete::configure.ac:5159::back quotes and double quotes must not be
 > escaped in: checking if msync accepts a third \"sync\" argument...
 > ::aclocal.m4:6733: ACE_CACHE_CHECK is expanded from...
 > configure.ac:5159: the top level


 > obsolete::configure.ac:5997::AC_SYS_RESTARTABLE_SYSCALLS:
 > AC_SYS_RESTARTABLE_SYSCALLS is useful only when supporting very
 > old systems that lack `sigaction' and `SA_RESTART'.  Don't bother with
 > this macro unless you need to support very old systems like 4.2BSD and
 > SVR3.::autoconf/specific.m4:312: AC_SYS_RESTARTABLE_SYSCALLS is
 > expanded from...
 > configure.ac:5997: the top level


 > cross::configure.ac:5997::AC_RUN_IFELSE called without default to
 > allow cross compiling::autoconf/general.m4:2281: AC_RUN_IFELSE is
 > expanded from...
 > autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
 > autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
 > autoconf/specific.m4:312: AC_SYS_RESTARTABLE_SYSCALLS is expanded
 > from...
 > configure.ac:5997: the top level


 > obsolete::configure.ac:7127::back quotes and double quotes must not be
 > escaped in: $as_me:$LINENO: error: 
 > The generated configuration appears to be unusable.  Please verify
 > that your system path and environment variables are correct.  If they
 > appear to be correct then please send the maintainer of this configure
 > script $ACE_CONFIGURE_MAINTAINER the *COMPRESSED* 'config.log' file
 > and the following information:

 >   ACE 'configure' Script Information
 >   ==================================
 >   [RCS] translit([$Id: configure.ac,v 4.5 2003/07/30 02:18:27 dhinton
 > Exp $], [$\"])


 >   ACE Version:        $ACE_VERSION
 >   C++ Compiler:       $CXX
 >   C++ Preprocessor:   $CXXCPP
 >   C++ Flags:          $CXXFLAGS
 >   Preprocessor Flags: $CPPFLAGS
 >   Linker:             $LD
 >   Linker Flags:       $LDFLAGS
 >   Libraries:          $LIBS
 >   System type information:
 >     Build: $build  Host: $host

 > In the meantime, please use the stock ACE build procedure detailed in
 > the file 'ACE-INSTALL.html'.
 >      ::aclocal.m4:6733: ACE_CACHE_CHECK is expanded from...
 > configure.ac:7127: the top level

The problem is right there: autom4te separates the batches of warnings
with \n\n\n, but your message already uses \n\n\n, so it's confused.



/tmp % cat configure.ac                                          nostromo Err 1
AC_INIT
AC_WARNING([This message

has



embedded


newlines])
/tmp % autoconf -Wall                                             nostromo 9:36
configure.ac:11: warning: This message
Use of uninitialized value in split at /usr/local/bin/autom4te line 1008.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/bin/autom4te line 1007.
unknown channel has at /usr/local/share/autoconf/Autom4te/Channels.pm line 538
        Autom4te::Channels::msg('has','undef','warning: ') called at 
/usr/local/bin/autom4te line 1007



Grumph...

I'm installing this, thanks.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * bin/autom4te.in (&freeze): Use a less likely warning separator
        than `\n\n', so that `\n\n\n' is valid in warnings.
        Reported by Steve Huston.

Index: THANKS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/THANKS,v
retrieving revision 1.121
diff -u -u -r1.121 THANKS
--- THANKS 26 Sep 2003 13:55:04 -0000 1.121
+++ THANKS 28 Oct 2003 08:46:40 -0000
@@ -181,8 +181,9 @@
 Simon Leinen                address@hidden
 Stephen Gildea              address@hidden
 Steve Chamberlain           address@hidden
-Steven G. Johnson           address@hidden
+Steve Huston                address@hidden
 Steve Robbins               address@hidden
+Steven G. Johnson           address@hidden
 Stu Grossman                address@hidden
 Syd Polk                    address@hidden
 T.E. Dickey                 address@hidden
Index: bin/autom4te.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autom4te.in,v
retrieving revision 1.91
diff -u -u -r1.91 autom4te.in
--- bin/autom4te.in 9 Sep 2003 15:44:56 -0000 1.91
+++ bin/autom4te.in 28 Oct 2003 08:46:40 -0000
@@ -992,10 +992,11 @@
   if $force || ! $req->valid;
 
 # Issue the warnings each time autom4te was run.
+my $separator = "\n" . ('-' x 25) . " END OF WARNING " . ('-' x 25) . "\n\n";
 handle_traces ($req, "$tmp/warnings",
-              ('_m4_warn' => "\$1::\$f:\$l::\$2::\$3\n\n"));
-# Warnings are separated by 2 \n.
-for (split (/\n{2,}/, contents ("$tmp/warnings")))
+              ('_m4_warn' => "\$1::\$f:\$l::\$2::\$3$separator"));
+# Swallow excessive newlines.
+for (split (/\n*$separator\n*/o, contents ("$tmp/warnings")))
 {
   # The message looks like:
   # | syntax::input.as:5::ouch




reply via email to

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