";
# Lib files.
-my $autoconf = $ENV{'AUTOCONF'} || '@bindir@/@autoconf-name@';
-my $autoheader = $ENV{'AUTOHEADER'} || '@bindir@/@autoheader-name@';
-my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
-my $automake = $ENV{'AUTOMAKE'} || 'automake';
-my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
-my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
-my $gtkdocize = $ENV{'GTKDOCIZE'} || 'gtkdocize';
-my $autopoint = $ENV{'AUTOPOINT'} || 'autopoint';
-my $make = $ENV{'MAKE'} || 'make';
+my $autoconf = $ENV{'AUTOCONF'} || '@bindir@/@autoconf-name@';
+my $autoheader = $ENV{'AUTOHEADER'} || '@bindir@/@autoheader-name@';
+my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
+my $automake = $ENV{'AUTOMAKE'} || 'automake';
+my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
+my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
+my $intltoolize = $ENV{'INTLTOOLIZE'} || 'intltoolize';
+my $gtkdocize = $ENV{'GTKDOCIZE'} || 'gtkdocize';
+my $autopoint = $ENV{'AUTOPOINT'} || 'autopoint';
+my $make = $ENV{'MAKE'} || 'make';
# --install -- as --add-missing in other tools.
my $install = 0;
$automake, $aclocal,
$autopoint,
$libtoolize,
+ $intltoolize,
$gtkdocize)
{
xsystem ("$prog --version | sed 1q >&2");
# --install and --symlink;
if ($install)
{
- $automake .= ' --add-missing';
- $automake .= ' --copy' unless $symlink;
- $libtoolize .= ' --copy' unless $symlink;
- $gtkdocize .= ' --copy' unless $symlink;
+ $automake .= ' --add-missing';
+ $automake .= ' --copy' unless $symlink;
+ $libtoolize .= ' --copy' unless $symlink;
+ $intltoolize .= ' --copy' unless $symlink;
+ $gtkdocize .= ' --copy' unless $symlink;
}
# --force;
if ($force)
{
- $aclocal .= ' --force';
- $autoconf .= ' --force';
- $autoheader .= ' --force';
- $automake .= ' --force-missing';
- $autopoint .= ' --force';
- $libtoolize .= ' --force';
+ $aclocal .= ' --force';
+ $autoconf .= ' --force';
+ $autoheader .= ' --force';
+ $automake .= ' --force-missing';
+ $autopoint .= ' --force';
+ $libtoolize .= ' --force';
+ $intltoolize .= ' --force';
}
else
{
my $aux_dir;
my $uses_gettext_via_traces;
my $uses_libtool;
+ my $uses_intltool;
my $uses_gtkdoc;
my $uses_libltdl;
my $uses_autoheader;
'LT_CONFIG_LTDL_DIR',
'AM_GNU_GETTEXT',
'AM_INIT_AUTOMAKE',
+ 'IT_PROG_INTLTOOL',
'GTK_DOC_CHECK',
)
. ' |');
$uses_libltdl = 1 if $macro eq "LT_CONFIG_LTDL_DIR";
$uses_autoheader = 1 if $macro eq "AC_CONFIG_HEADERS";
$uses_automake = 1 if $macro eq "AM_INIT_AUTOMAKE";
+ $uses_intltool = 1 if $macro eq "IT_PROG_INTLTOOL";
$uses_gtkdoc = 1 if $macro eq "GTK_DOC_CHECK";
push @subdir, split (' ', $args[0])
if $macro eq "AC_CONFIG_SUBDIRS" && $recursive;
}
+ # --------------------- #
+ # Running intltoolize. #
+ # --------------------- #
+
+ if (!$uses_intltool)
+ {
+ verb "$configure_ac: not using Intltool";
+ }
+ elsif ($install)
+ {
+ xsystem_hint ("intltoolize is needed because this package uses Intltool", $intltoolize);
+ xsystem ($intltoolize)
+ }
+ else
+ {
+ verb "$configure_ac: not running intltool: --install not given";
+ }
+
+
# ------------------- #
# Running gtkdocize. #
# ------------------- #
System in a fresh tree.
@command{autoreconf} runs @command{autoconf}, @command{autoheader},
-@command{aclocal}, @command{automake}, @command{libtoolize},
+@command{aclocal}, @command{automake}, @command{libtoolize}, @command{intltoolize},
@command{gtkdocize}, and @command{autopoint} (when appropriate) repeatedly
to update the GNU Build System in the specified directories and their
subdirectories (@pxref{Subdirectories}). By default, it only remakes
those files that are older than their sources. The environment variables
-@env{AUTOM4TE}, @env{AUTOCONF}, @env{AUTOHEADER}, @env{AUTOMAKE},
-@env{ACLOCAL}, @env{AUTOPOINT}, @env{LIBTOOLIZE}, @env{GTKDOCIZE}, @env{M4},
+@env{AUTOM4TE}, @env{AUTOCONF}, @env{AUTOHEADER}, @env{AUTOMAKE}, @env{ACLOCAL},
+@env{AUTOPOINT}, @env{LIBTOOLIZE}, @env{INTLTOOLIZE}, @env{GTKDOCIZE}, @env{M4},
and @env{MAKE} may be used to override the invocation of the respective tools.
If you install a new version of some tool, you can make