[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28-fyi-autore-gettextize.patch
From: |
Akim Demaille |
Subject: |
28-fyi-autore-gettextize.patch |
Date: |
Mon, 08 Oct 2001 10:30:17 +0200 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* doc/autoconf.texi (autoreconf Invocation): Adjust.
* bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
Index: NEWS
--- NEWS Fri, 05 Oct 2001 19:29:25 +0200 akim
+++ NEWS Mon, 08 Oct 2001 01:49:54 +0200 akim
@@ -29,16 +29,19 @@
** Emacs
Autoconf and Autotest modes are provided.
-** autom4te
- New executable, used by the Autoconf suite to cache and speed up
- most processing.
-
-** Standardization of the executables interface
+** Executables
+- autom4te
+ New, used by the Autoconf suite to cache and speed up most processing.
- --force, -f
Supported by autom4te, autoconf and autoheader.
- --include, -I
Replaces --autoconf-dir and --localdir in autoconf, autoheader and
autoupdate.
+- autoreconf
+ No longer passes --cygnus, --foreign, --gnits, --gnu, --include-deps:
+ automake options are to be given via AUTOMAKE_OPTIONS.
+- autoreconf
+ Runs gettextize when appropriate.
** Bug fixes
- The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures.
Index: bin/autoreconf.in
--- bin/autoreconf.in Mon, 08 Oct 2001 01:38:43 +0200 akim
+++ bin/autoreconf.in Mon, 08 Oct 2001 01:50:32 +0200 akim
@@ -45,12 +45,12 @@
# -----
$help = "Usage: $0 [OPTION] ... [TEMPLATE-FILE]
-Run `autoconf' (and `autoheader', `aclocal' and `automake', where
-appropriate) repeatedly to remake the Autoconf `configure' scripts
-and configuration header templates 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
-Autoconf, running `autoreconf' remakes all of the files by giving it
+Run `autoconf' (and `autoheader', `aclocal', `automake' and
+`gettextize', 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.
Operation modes:
@@ -94,6 +94,7 @@
my $autoheader = $ENV{'AUTOHEADER'} || '@autoheader-name@';
my $automake = $ENV{'AUTOMAKE'} || 'automake';
my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
+my $gettextize = $ENV{'GETTEXTIZE'} || 'gettexize';
# --install -- as --add-missing in other tools.
@@ -149,6 +150,7 @@ sub parse_args ()
{
$autoconf .= ' --force';
$autoheader .= ' --force';
+ $gettextize .= ' --force';
}
else
{
@@ -167,6 +169,7 @@ sub parse_args ()
{
$autoconf .= ' --debug';
$autoheader .= ' --debug';
+ $automake .= ' --verbose';
}
# --install and --symlink;
if ($install)
@@ -174,6 +177,8 @@ sub parse_args ()
$automake .= ' --add-missing';
$automake .= ' --copy'
unless $symlink;
+ $gettextize .= ' --copy'
+ unless $symlink;
}
}
@@ -195,18 +200,39 @@ sub autoreconf ()
# If there is no AC_INIT, then we are not interested: it looks like
# a Cygnus thingy.
my $configure_ac_file = new Autom4te::XFile $configure_ac;
- my $autoconf_driven;
+ my $uses_autoconf;
while ($_ = $configure_ac_file->getline)
{
- $autoconf_driven = 1
+ $uses_autoconf = 1
if /AC_INIT/;
}
- if (!$autoconf_driven)
+ if (!$uses_autoconf)
{
verbose "$configure_ac: not Autoconf";
return;
}
+ # -------------------- #
+ # Running gettexitze. #
+ # -------------------- #
+
+ my $uses_gettext = 0;
+ my $traces = new Autom4te::XFile "$autoconf --trace=AM_GNU_GETTEXT |";
+ while ($_ = $traces->getline)
+ {
+ $uses_gettext = 1
+ if /AM_GNU_GETTEXT/;
+ }
+ if (!$uses_gettext)
+ {
+ verbose "$configure_ac: not Gettext";
+ }
+ else
+ {
+ xsystem ($gettextize);
+ }
+
+
# ----------------- #
# Running aclocal. #
# ----------------- #
@@ -270,14 +296,14 @@ sub autoreconf ()
# We now consider that if AC_CONFIG_HEADERS is used, then autoheader
# is used too.
# Just as for autoconf, up to date ness is performed by the tool itself.
- my $autoheader_driven = 0;
+ my $uses_autoheader = 0;
my $traces = new Autom4te::XFile "$autoconf --trace=AC_CONFIG_HEADERS |";
while ($_ = $traces->getline)
{
- $autoheader_driven = 1
+ $uses_autoheader = 1
if /AC_CONFIG_HEADERS/;
}
- if (!$autoheader_driven)
+ if (!$uses_autoheader)
{
verbose "$configure_ac: not Autoheader";
}
Index: doc/autoconf.texi
--- doc/autoconf.texi Sun, 07 Oct 2001 19:02:31 +0200 akim
+++ doc/autoconf.texi Mon, 08 Oct 2001 01:47:11 +0200 akim
@@ -1463,26 +1463,6 @@ @node autoreconf Invocation
Specify location of additional macro files (@file{m4} by default).
@end table
-Additionally, the following options are recognized and passed to
address@hidden:
-
address@hidden @option
address@hidden --cygnus
-Assume program is part of Cygnus-style tree.
-
address@hidden --foreign
-Set strictness to foreign.
-
address@hidden --gnits
-Set strictness to gnits.
-
address@hidden --gnu
-Set strictness to gnu.
-
address@hidden --include-deps
-Include generated dependencies in @file{Makefile.in}.
address@hidden table
-
@c ========================================= Initialization and Output Files.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 28-fyi-autore-gettextize.patch,
Akim Demaille <=