/[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.119 by adl, Tue Jul 2 20:31:22 2002 UTC revision 1.120 by eggert, Wed Jul 17 08:30:43 2002 UTC
# Line 44  use vars qw ($config_h %verbatim %symbol Line 44  use vars qw ($config_h %verbatim %symbol
44  my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';  my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
45  local $config_h;  local $config_h;
46  my $config_h_in;  my $config_h_in;
47    my @prepend_include;
48  my @include;  my @include;
49  my @warning;  my @warning;
50    
# Line 72  Warning categories include: Line 73  Warning categories include:
73    \`error\'         warnings are error    \`error\'         warnings are error
74    
75  Library directories:  Library directories:
76    -I, --include=DIR  look for files in DIR (cumulative)    -B, --prepend-include=DIR  prepend directory DIR to search path
77      -I, --include=DIR          append directory DIR to search path
78    
79  Report bugs to <bug-autoconf\@gnu.org>.  Report bugs to <bug-autoconf\@gnu.org>.
80  END  END
# Line 103  sub parse_args () Line 105  sub parse_args ()
105    my $srcdir;    my $srcdir;
106    
107    getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include,    getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include,
108              'B|prepend-include=s' => \@prepend_include,
109            'W|warning=s' => \@warning);            'W|warning=s' => \@warning);
110    
111    if (! @ARGV)    if (! @ARGV)
# Line 123  mktmpdir ('ah'); Line 126  mktmpdir ('ah');
126  parse_args;  parse_args;
127    
128  # Preach.  # Preach.
129  my $config_h_top = find_file ("config.h.top?", @include);  my $config_h_top = find_file ("config.h.top?",
130  my $config_h_bot = find_file ("config.h.bot?", @include);                                reverse(@prepend_include), @include);
131  my $acconfig_h = find_file ("acconfig.h?", @include);  my $config_h_bot = find_file ("config.h.bot?",
132                                  reverse(@prepend_include), @include);
133    my $acconfig_h = find_file ("acconfig.h?",
134                                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 150  END Line 156  END
156  # Set up autoconf.  # Set up autoconf.
157  my $autoconf = "$autom4te --language=autoconf ";  my $autoconf = "$autom4te --language=autoconf ";
158  $autoconf .= join (' ', map { "--include=$_" } @include);  $autoconf .= join (' ', map { "--include=$_" } @include);
159    $autoconf .= join (' ', map { "--prepend-include=$_" } @prepend_include);
160  $autoconf .= ' --debug' if $debug;  $autoconf .= ' --debug' if $debug;
161  $autoconf .= ' --force' if $force;  $autoconf .= ' --force' if $force;
162  $autoconf .= ' --verbose' if $verbose;  $autoconf .= ' --verbose' if $verbose;

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120

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