autoconf-patches
[Top][All Lists]
Advanced

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

FYI: Autoreconf uses Channels


From: Akim Demaille
Subject: FYI: Autoreconf uses Channels
Date: Thu, 21 Aug 2003 18:19:22 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
        Use them.

Index: bin/autoreconf.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autoreconf.in,v
retrieving revision 1.116
diff -u -u -r1.116 autoreconf.in
--- bin/autoreconf.in 21 Aug 2003 06:55:42 -0000 1.116
+++ bin/autoreconf.in 21 Aug 2003 16:16:55 -0000
@@ -39,6 +39,8 @@
   $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
 }
 
+use Autom4te::ChannelDefs;
+use Autom4te::Channels;
 use Autom4te::Configure_ac;
 use Autom4te::FileUtils;
 use Autom4te::General;
@@ -76,15 +78,7 @@
   -m, --make               when applicable, re-run ./configure && make
   -W, --warnings=CATEGORY  report the warnings falling in CATEGORY [syntax]
 
-Warning categories include:
-  \`cross\'         cross compilation issues
-  \`obsolete\'      obsolete constructs
-  \`portability\'   portability issues
-  \`syntax\'        dubious syntactic constructs
-  \`all\'           all the warnings
-  \`no-CATEGORY\'   turn off the warnings on CATEGORY
-  \`none\'          turn off all the warnings
-  \`error\'         warnings are error
+" . Autom4te::ChannelDefs::usage . "
 
 The environment variable \`WARNINGS\' is honored.  Some subtools might
 support other warning types, using \`all' is encouraged.
@@ -127,7 +121,7 @@
 my @prepend_include;
 my @include;
 
-# List of warnings.
+# List of command line warning requests.
 my @warning;
 
 # Rerun `./configure && make'?
@@ -155,6 +149,8 @@
   # Split the warnings as a list of elements instead of a list of
   # lists.
   @warning = map { split /,/ } @warning;
+  parse_WARNINGS;
+  parse_warnings '--warnings', @warning;
 
   # Even if the user specified a configure.ac, trim to get the
   # directory, and look for configure.ac again.  Because (i) the code
@@ -218,9 +214,10 @@
   # --warnings;
   if (@warning)
     {
-      $autoconf   .= ' --warnings=' . join (',', @warning);
-      $autoheader .= ' --warnings=' . join (',', @warning);
-      $automake   .= ' --warnings=' . join (',', @warning)
+      my $warn = ' --warnings=' . join (',', @warning);
+      $autoconf   .= $warn;
+      $autoheader .= $warn;
+      $automake   .= $warn
        if `$automake --help` =~ /--warnings/;
     }
 }
Index: man/autoreconf.1
===================================================================
RCS file: /cvsroot/autoconf/autoconf/man/autoreconf.1,v
retrieving revision 1.88
diff -u -u -r1.88 autoreconf.1
--- man/autoreconf.1 20 Aug 2003 07:02:32 -0000 1.88
+++ man/autoreconf.1 21 Aug 2003 16:16:55 -0000
@@ -48,26 +48,35 @@
 `cross'
 cross compilation issues
 .TP
+`gnu'
+GNU coding standards (default in gnu and gnits modes)
+.TP
 `obsolete'
-obsolete constructs
+obsolete features or constructions
+.TP
+`override'
+user redefinitions of Automake rules or variables
 .TP
 `portability'
 portability issues
 .TP
 `syntax'
-dubious syntactic constructs
+dubious syntactic constructs (default)
+.TP
+`unsupported'
+unsupported or incomplete features (default)
 .TP
 `all'
 all the warnings
 .TP
 `no-CATEGORY'
-turn off the warnings on CATEGORY
+turn off warnings in CATEGORY
 .TP
 `none'
 turn off all the warnings
 .TP
 `error'
-warnings are error
+treat warnings as errors
 .PP
 The environment variable `WARNINGS' is honored.  Some subtools might
 support other warning types, using `all' is encouraged.




reply via email to

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