/[autoconf]/autoconf/bin/autoheader.in
ViewVC logotype

Diff of /autoconf/bin/autoheader.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.123 by akim, Sat Sep 28 16:39:22 2002 UTC revision 1.124 by akim, Wed Oct 16 06:38:50 2002 UTC
# Line 104  sub parse_args () Line 104  sub parse_args ()
104  {  {
105    my $srcdir;    my $srcdir;
106    
107    getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include,    getopt ('I|include=s' => \@include,
108            'B|prepend-include=s' => \@prepend_include,            'B|prepend-include=s' => \@prepend_include,
109            'W|warnings=s' => \@warning);            'W|warnings=s' => \@warning);
110    
# Line 127  parse_args; Line 127  parse_args;
127    
128  # Preach.  # Preach.
129  my $config_h_top = find_file ("config.h.top?",  my $config_h_top = find_file ("config.h.top?",
130                                reverse(@prepend_include), @include);                                reverse (@prepend_include), @include);
131  my $config_h_bot = find_file ("config.h.bot?",  my $config_h_bot = find_file ("config.h.bot?",
132                                reverse(@prepend_include), @include);                                reverse (@prepend_include), @include);
133  my $acconfig_h = find_file ("acconfig.h?",  my $acconfig_h = find_file ("acconfig.h?",
134                              reverse(@prepend_include), @include);                              reverse (@prepend_include), @include);
135  if ($config_h_top || $config_h_bot || $acconfig_h)  if ($config_h_top || $config_h_bot || $acconfig_h)
136    {    {
137      my $msg = << "END";      my $msg = << "END";
# Line 252  $out->close; Line 252  $out->close;
252  # Check that all the symbols have a template.  # Check that all the symbols have a template.
253  {  {
254    my $in = new Autom4te::XFile ("$tmp/config.hin");    my $in = new Autom4te::XFile ("$tmp/config.hin");
255      my $suggest_ac_define = 1;
256    while ($_ = $in->getline)    while ($_ = $in->getline)
257      {      {
258        my ($symbol) = /^\#\s*\w+\s+(\w+)/        my ($symbol) = /^\#\s*\w+\s+(\w+)/
# Line 261  $out->close; Line 262  $out->close;
262    foreach (sort keys %symbol)    foreach (sort keys %symbol)
263      {      {
264        print STDERR "$me: missing template: $_\n";        print STDERR "$me: missing template: $_\n";
265          if ($suggest_ac_define)
266            {
267              print STDERR "Use AC_DEFINE([$_], [], [Description])";
268              $suggest_ac_define = 0;
269            }
270    
271      }      }
272    exit 1    exit 1
273      if keys %symbol;      if keys %symbol;

Legend:
Removed from v.1.123  
changed lines
  Added in v.1.124

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26