# -----
$help = "Usage: $0 [OPTION] ... [TEMPLATE-FILE]
-Run `autoconf' (and `autoheader', `aclocal', `automake' and
-`gettextize', where appropriate) repeatedly to remake the GNU Build
+Run `autoconf' (and `autoheader', `aclocal', `automake', `gettextize',
+and `libtoolize' where appropriate) repeatedly to remake the GNU Build
System files in the directory tree rooted at the current directory.
By default, it only remakes those files that are older than their
-predecessors. If you install a new version of GNU Build System
-components, running `autoreconf' remakes all of the files by giving it
-the `--force' option.
+predecessors. If you install new versions of the GNU Build System,
+running `autoreconf' remakes all of the files by giving it the
+`--force' option.
Operation modes:
-h, --help print this help, then exit
Unless specified, heuristics try to compute `M4DIR' from the `Makefile.am',
or defaults to `m4' if it exists.
-The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
-are honored.
+The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, ACLOCAL,
+GETTEXTIZE, LIBTOOLIZE are honored.
Report bugs to <bug-autoconf\@gnu.org>.
";
my $autoheader = $ENV{'AUTOHEADER'} || '@autoheader-name@';
my $automake = $ENV{'AUTOMAKE'} || 'automake';
my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
-my $gettextize = $ENV{'GETTEXTIZE'} || 'gettexize';
+my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
+my $gettextize = $ENV{'GETTEXTIZE'} || 'gettextize';
# --install -- as --add-missing in other tools.
print STDERR "\n";
xsystem ("$aclocal --version | sed 1q >&2");
print STDERR "\n";
+ xsystem ("$gettextize --version | sed 1q >&2");
+ print STDERR "\n";
+ xsystem ("$libtoolize --version | sed 1q >&2");
+ print STDERR "\n";
}
# Dispatch autoreconf's option to the tools.
$autoconf .= ' --force';
$autoheader .= ' --force';
$gettextize .= ' --force';
+ $libtoolize .= ' --force';
}
else
{
{
$autoconf .= ' --verbose';
$autoheader .= ' --verbose';
- $automake .= ' --verbose';
$aclocal .= ' --verbose';
}
# --debug;
$autoconf .= ' --debug';
$autoheader .= ' --debug';
$automake .= ' --verbose';
+ $libtoolize .= ' --debug';
}
# --install and --symlink;
if ($install)
unless $symlink;
$gettextize .= ' --copy'
unless $symlink;
+ $libtoolize .= ' --copy'
+ unless $symlink;
}
}
}
if (!$uses_autoconf)
{
- verbose "$configure_ac: not Autoconf";
+ verbose "$configure_ac: not using Autoconf";
return;
}
+
# -------------------- #
# Running gettexitze. #
# -------------------- #
}
if (!$uses_gettext)
{
- verbose "$configure_ac: not Gettext";
+ verbose "$configure_ac: not using Gettext";
}
else
{
}
+ # -------------------- #
+ # Running libtoolize. #
+ # -------------------- #
+
+ my $uses_libtool = 0;
+ my $traces = new Autom4te::XFile "$autoconf --trace=AM_PROG_LIBTOOL |";
+ while ($_ = $traces->getline)
+ {
+ $uses_libtool = 1
+ if /AM_PROG_LIBTOOL/;
+ }
+ if (!$uses_libtool)
+ {
+ verbose "$configure_ac: not using Libtool";
+ }
+ else
+ {
+ xsystem ($libtoolize);
+ }
+
+
# ----------------- #
# Running aclocal. #
# ----------------- #
# ------------------ #
# Assumes that there is a Makefile.am in the topmost directory.
- if (-f 'Makefile.am')
+ if (!-f 'Makefile.am')
+ {
+ verbose "$configure_ac: not using Automake";
+ }
+ else
{
# We should always run automake, and let it decide whether it shall
# update the file or not. In fact, the effect of `$force' is already
}
if (!$uses_autoheader)
{
- verbose "$configure_ac: not Autoheader";
+ verbose "$configure_ac: not using Autoheader";
}
else
{
.B autoreconf
[\fIOPTION\fR] ... [\fITEMPLATE-FILE\fR]
.SH DESCRIPTION
-Run `autoconf' (and `autoheader', `aclocal', `automake' and
-`gettextize', where appropriate) repeatedly to remake the GNU Build
+Run `autoconf' (and `autoheader', `aclocal', `automake', `gettextize',
+and `libtoolize' where appropriate) repeatedly to remake the GNU Build
System files in the directory tree rooted at the current directory.
By default, it only remakes those files that are older than their
-predecessors. If you install a new version of GNU Build System
-components, running `autoreconf' remakes all of the files by giving it
-the `--force' option.
+predecessors. If you install new versions of the GNU Build System,
+running `autoreconf' remakes all of the files by giving it the
+`--force' option.
.SS "Operation modes:"
.TP
\fB\-h\fR, \fB\-\-help\fR
Unless specified, heuristics try to compute `M4DIR' from the `Makefile.am',
or defaults to `m4' if it exists.
.PP
-The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
-are honored.
+The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, ACLOCAL,
+GETTEXTIZE, LIBTOOLIZE are honored.
.SH AUTHOR
Written by David J. MacKenzie and Akim Demaille.
.PP