automake-patches
[Top][All Lists]
Advanced

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

Better error message for aclocal.m4 mismatch


From: Ralf Wildenhues
Subject: Better error message for aclocal.m4 mismatch
Date: Sat, 14 Oct 2006 06:21:41 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

I'm pretty sure users will be confused about this error message --
I even was.  I think the one below would be a bit better.

One open issue with this is that the multiline warning isn't nicely
prefixed with everywhere:
| aclocal.m4:17: error: this file was generated for autoconf 2.60.
| To regenerate, remove `aclocal.m4' and rerun `aclocal';
| make sure the `autom4te' from the right Autoconf package is found.
| aclocal.m4:17: the top level

But IMVHO it's still better to accept that than to wait for
m4_fatal_multiline and get a flood of bug reports.

OK?

Cheers,
Ralf

2006-10-14  Ralf Wildenhues  <address@hidden>

        * aclocal.in (write_aclocal): Improve warning for mismatched
        Autoconf version.

Index: aclocal.in
===================================================================
RCS file: /cvs/automake/automake/aclocal.in,v
retrieving revision 1.139
diff -u -r1.139 aclocal.in
--- aclocal.in  4 Aug 2006 08:42:54 -0000       1.139
+++ aclocal.in  14 Oct 2006 04:21:11 -0000
@@ -783,7 +783,9 @@
       # use it in the header below.  autom4te will output the name of
       # the file in the diagnostic anyway.
       $output = "m4_if(m4_PACKAGE_VERSION, [$ac_version],,
-[m4_fatal([this file was generated for autoconf $ac_version], [63])])
+[m4_fatal([this file was generated for autoconf $ac_version.
+To regenerate, remove `aclocal.m4' and rerun `aclocal';
+make sure the `autom4te' from the right Autoconf package is found.], [63])])
 
 $output";
     }




reply via email to

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