(Syntax of the shell scripts): Don't.
* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
bother with $force since...
* lib/Autom4te/General.pm: does.
+2001-10-08 Akim Demaille <akim@epita.fr>
+
+ * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
+ (Syntax of the shell scripts): Don't.
+ * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
+ bother with $force since...
+ * lib/Autom4te/General.pm: does.
+
+
2001-10-08 Akim Demaille <akim@epita.fr>
* bin/autoreconf.in: Rewrite in Perl.
local $config_h;
my $config_h_in;
my $localdir = '.';
-my $force = 0;
my @include;
my @warning;
# m4.
my $srcdir;
getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include,
- 'f|force' => \$force,
'W|warning' => \@warning);
if (! @ARGV)
# 0 for EXIT_SUCCESS.
my $exit_status = 0;
-# If true, don't rely on the cache (but still update it).
-my $force = 0;
-
# $M4.
my $m4 = $ENV{"M4"} || '@M4@';
# Some non-GNU m4's don't reject the --help option, so give them /dev/null.
# Operation modes:
"o|output=s" => \$output,
"normalize" => \$normalize,
- "f|force" => \$force,
"W|warnings=s" => \@warning,
"m|mode=s" => \$mode,
"M|melt" => \$melt,
my $status = 0;
# symlink -- when --install, use symlinks instead.
my $symlink = 0;
-# $force -- update up to date files.
-my $force = 0;
## ---------- ##
getopt ('l|localdir=s' => \$localdir,
'A|autoconf-dir|m|macrodir=s' => \$autoconf_dir,
'M|m4dir=s' => \$m4dir,
- 'f|force' => \$force,
'i|install' => \$install,
's|symlink' => \$symlink);
# ----------------- #
if (-f "$localdir/aclocal.m4" &&
- ($force ||
- !up_to_date_p ("$localdir/aclocal.m4", "$localdir/acinclude.m4")))
+ !up_to_date_p ("$localdir/aclocal.m4", "$localdir/acinclude.m4"))
{
# If there are flags for aclocal in Makefile.am, use them.
my $aclocal_flags;
@ISA = qw (Exporter);
@EXPORT = qw (&debug &find_configure_ac &find_file &getopt &mktmpdir &mtime
&uniq &update_file &up_to_date_p &verbose &xsystem
- $debug $help $me $tmp $verbose $version);
+ $debug $force $help $me $tmp $verbose $version);
# Variable we share with the main package. Be sure to have a single
# copy of them: using `my' together with multiple inclusion of this
use vars qw ($debug);
$debug = 0;
+# Recreate all the files, or consider all the output files are obsolete.
+use vars qw ($force);
+$force = undef;
+
use vars qw ($help);
$help = undef;
"v|verbose" => \$verbose,
"d|debug" => \$debug,
+ 'f|force' => \$force,
);
Getopt::Long::Configure ("bundling");
GetOptions (%option)
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH AUTOCONF "1" "September 2001" "GNU Autoconf 2.52e" FSF
+.TH AUTOCONF "1" "October 2001" "GNU Autoconf 2.52e" FSF
.SH NAME
autoconf \- Generate configuration scripts
.SH SYNOPSIS
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH AUTOHEADER "1" "September 2001" "GNU Autoconf 2.52e" FSF
+.TH AUTOHEADER "1" "October 2001" "GNU Autoconf 2.52e" FSF
.SH NAME
autoheader \- Create a template header for configure
.SH SYNOPSIS
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH AUTOM4TE "1" "September 2001" "GNU Autoconf 2.52e" FSF
+.TH AUTOM4TE "1" "October 2001" "GNU Autoconf 2.52e" FSF
.SH NAME
autom4te \- Generate files and scripts thanks to M4
.SH SYNOPSIS
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH AUTORECONF "1" "September 2001" "GNU Autoconf 2.52e" FSF
+.TH AUTORECONF "1" "October 2001" "GNU Autoconf 2.52e" FSF
.SH NAME
autoreconf \- Update generated configuration files
.SH SYNOPSIS
.PP
Unless specified, heuristics try to compute `M4DIR' from the `Makefile.am',
or defaults to `m4' if it exists.
-.SS "The following options are passed to `automake':"
-.TP
-\fB\-\-cygnus\fR
-assume program is part of Cygnus-style tree
-.TP
-\fB\-\-foreign\fR
-set strictness to foreign
-.TP
-\fB\-\-gnits\fR
-set strictness to gnits
-.TP
-\fB\-\-gnu\fR
-set strictness to gnu
-.TP
-\fB\-\-include\-deps\fR
-include generated dependencies in Makefile.in
.PP
The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
are honored.
.SH AUTHOR
-Written by David J. MacKenzie.
+Written by David J. MacKenzie and Akim Demaille.
.PP
-Copyright 1994, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1994, 1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.SH "REPORTING BUGS"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH AUTOSCAN "1" "September 2001" "GNU Autoconf 2.52e" FSF
+.TH AUTOSCAN "1" "October 2001" "GNU Autoconf 2.52e" FSF
.SH NAME
autoscan \- Generate a preliminary configure.in
.SH SYNOPSIS
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH AUTOUPDATE "1" "September 2001" "GNU Autoconf 2.52e" FSF
+.TH AUTOUPDATE "1" "October 2001" "GNU Autoconf 2.52e" FSF
.SH NAME
autoupdate \- Update a configure.in to a newer Autoconf
.SH SYNOPSIS
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
-.TH IFNAMES "1" "September 2001" "ifnames " FSF
+.TH IFNAMES "1" "October 2001" "ifnames " FSF
.SH NAME
ifnames \- Extract CPP conditionals from a set of files
.SH SYNOPSIS
CONFIG_CLEAN_FILES = autoconf autoheader autom4te autoreconf autoscan \
autoupdate ifnames
DIST_SOURCES =
-DIST_COMMON = README Makefile.am Makefile.in autom4te.in autoreconf.in \
- autoupdate.in wrappl.in wrapsh.in
+DIST_COMMON = Makefile.am Makefile.in autom4te.in autoupdate.in \
+ wrappl.in wrapsh.in
all: all-am
.SUFFIXES:
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrappl.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
autom4te: $(top_builddir)/config.status autom4te.in
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
-autoreconf: $(top_builddir)/config.status autoreconf.in
- cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+autoreconf: $(top_builddir)/config.status wrappl.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrappl.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
autoscan: $(top_builddir)/config.status wrappl.in
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrappl.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
autoupdate: $(top_builddir)/config.status autoupdate.in
# running `sh PROG'.
AT_CHECK([/bin/sh -n ../bin/autoconf], 0)
-AT_CHECK([/bin/sh -n ../bin/autoreconf], 0)
# These are not built, they are in the src tree.
AT_CHECK([/bin/sh -n $top_srcdir/config/install-sh], 0)
AT_CHECK_PERL_SYNTAX([autoheader])
AT_CHECK_PERL_SYNTAX([autom4te])
+AT_CHECK_PERL_SYNTAX([autoreconf])
AT_CHECK_PERL_SYNTAX([autoscan])
AT_CHECK_PERL_SYNTAX([autoupdate])
AT_CHECK_PERL_SYNTAX([ifnames])