From: Akim Demaille Date: Thu, 4 Sep 2003 13:01:09 +0000 (+0000) Subject: * bin/autom4te.in: Use &fatal where more appropriate than &error. X-Git-Tag: AUTOCONF-2.57c~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29be1600df5e0b549a233cf93c096cd7732272e1;p=thirdparty%2Fautoconf.git * bin/autom4te.in: Use &fatal where more appropriate than &error. (freeze): When exiting, use $exit_code. * lib/autoconf/fortran.m4: Comment changes. --- diff --git a/ChangeLog b/ChangeLog index 3e13df63..ea5a47e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-09-04 Akim Demaille + + * bin/autom4te.in: Use &fatal where more appropriate than &error. + (freeze): When exiting, use $exit_code. + * lib/autoconf/fortran.m4: Comment changes. + 2003-09-04 Akim Demaille * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC. diff --git a/bin/autom4te.in b/bin/autom4te.in index 1a20d5a2..fc6f7928 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -89,7 +89,7 @@ my $freeze = 0; # $M4. my $m4 = $ENV{"M4"} || '@M4@'; # Some non-GNU m4's don't reject the --help option, so give them /dev/null. -error "need GNU m4 1.4 or later: $m4" +fatal "need GNU m4 1.4 or later: $m4" if system "$m4 --help &1 | grep reload-state >/dev/null"; # Set some high recursion limit as the default limit, 250, has already @@ -269,7 +269,7 @@ sub load_configuration ($) my $type = shift @words; if ($type eq 'begin-language:') { - error "$file:$.: end-language missing for: $lang" + fatal "$file:$.: end-language missing for: $lang" if defined $lang; $lang = lc $words[0]; } @@ -281,7 +281,7 @@ sub load_configuration ($) } elsif ($type eq 'args:') { - error "$file:$.: no current language" + fatal "$file:$.: no current language" unless defined $lang; push @{$language{$lang}}, @words; } @@ -360,7 +360,7 @@ sub parse_args () "no-cache" => sub { $cache = undef; }, ); - error "too few arguments + fatal "too few arguments Try `$me --help' for more information." unless @ARGV; @@ -369,7 +369,7 @@ Try `$me --help' for more information." # And it implies melting: there is risk not to update properly using # old frozen files, and worse yet: we could load a frozen file and # refreeze it! A sort of caching :) - error "cannot freeze and trace" + fatal "cannot freeze and trace" if $freeze && @trace; $melt = 1 if $freeze; @@ -472,7 +472,7 @@ sub handle_m4 ($@) { use File::Copy; move ("${file}t", "$file") - or error "cannot not rename ${file}t as $file: $!"; + or fatal "cannot not rename ${file}t as $file: $!"; } } @@ -548,7 +548,7 @@ sub handle_output ($$) { $out->open($output, O_CREAT | O_WRONLY | O_TRUNC, oct ($mode)); } - error "cannot create $output: $!" + fatal "cannot create $output: $!" unless $out; my $in = new Autom4te::XFile ($ocache . $req->id); @@ -922,7 +922,7 @@ sub freeze ($) $result =~ s/#.*\n//g; $result =~ s/^\n//mg; - error "freezing produced output:\n$result" + fatal "freezing produced output:\n$result" if $result; # If freezing produces output, something went wrong: a bad `divert', @@ -951,14 +951,14 @@ parse_args; if ($freeze) { freeze ($output); - exit 0; + exit $exit_code; } # We need our cache directory. if (! -d "$cache") { mkdir "$cache", 0755 - or error "cannot create $cache: $!"; + or fatal "cannot create $cache: $!"; } # Open the index for update, and lock it. autom4te handles several diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 50916370..802dd5b8 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -1094,7 +1094,7 @@ AC_LANG_POP(Fortran)dnl # # For ordinary extensions like f90, etcetera, the modified FCFLAGS # are currently needed for IBM's xlf* and Intel's ifc (grrr). Unfortunately, -* xlf* will only take flags to recognize one extension at a time, so if the +# xlf* will only take flags to recognize one extension at a time, so if the # user wants to compile multiple extensions (.f90 and .f95, say), she # will need to use the FCFLAGS_F90 and FCFLAGS_F95 individually rather # than just adding them all to FCFLAGS, for example. diff --git a/man/autom4te.1 b/man/autom4te.1 index 88caa9e8..c4c9950d 100644 --- a/man/autom4te.1 +++ b/man/autom4te.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. -.TH AUTOM4TE "1" "August 2003" "autom4te 2.57c" "User Commands" +.TH AUTOM4TE "1" "September 2003" "autom4te 2.57c" "User Commands" .SH NAME autom4te \- Generate files and scripts thanks to M4 .SH SYNOPSIS