]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_dist): Do not define %GETTEXT% if the user
authorAlexandre Duret-Lutz <adl@gnu.org>
Thu, 5 Dec 2002 11:05:38 +0000 (11:05 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Thu, 5 Dec 2002 11:05:38 +0000 (11:05 +0000)
is using $seen_gettext_external, this distcheck won't run
`./configure' with a meaningless `--with-included-gettext'.
* tests/gettext.test: Make sure distcheck uses --with-included-gettext.
* tests/gettext2.test: Make sure distcheck does not use
--with-included-gettext.

ChangeLog
automake.in
tests/gettext.test
tests/gettext2.test

index eedc424f2961966820cc1ee15650ff2975f52b70..35a0c12d4750a6781758b61139832044f49cc196 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2002-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * automake.in (handle_dist): Do not define %GETTEXT% if the user
+       is using $seen_gettext_external, this distcheck won't run
+       `./configure' with a meaningless `--with-included-gettext'.
+       * tests/gettext.test: Make sure distcheck uses --with-included-gettext.
+       * tests/gettext2.test: Make sure distcheck does not use
+       --with-included-gettext.
+
        * m4/ccstdc.m4: Define am_cv_prog_cc_stdc for backward
        compatibility and diagnose the use of AM_PROG_CC_STDC.
        * automake.texi (Public macros) <AM_PROG_CC_STDC>: Remove
index dbfe34854eca72b6d07fe781ffd228b868d86d23..59b4113991d9341c9a9e8a58bad8427da682af14 100755 (executable)
@@ -4269,7 +4269,7 @@ sub handle_dist
 
     # Rule to check whether a distribution is viable.
     my %transform = ('DISTCHECK-HOOK' => &target_defined ('distcheck-hook'),
-                    'GETTEXT'        => $seen_gettext);
+                    'GETTEXT' => $seen_gettext && !$seen_gettext_external);
 
     # Prepend $(distdir) to each directory given.
     my %rewritten = map { '$(distdir)/' . "$_" => 1 } keys %dist_dirs;
index 186c62edd57d1ee99b7cd78ad840e1973d96d2a7..2864a9503b337ca378cef54865fa1dc3e6558ea6 100755 (executable)
@@ -35,7 +35,6 @@ mkdir po intl
 
 $ACLOCAL
 
-
 # po/ and intl/ are required
 
 $AUTOMAKE --add-missing 2>stderr && exit 1
@@ -56,3 +55,6 @@ grep 'AM_GNU_GETTEXT.*po' stderr
 
 echo 'SUBDIRS = po intl' >Makefile.am
 $AUTOMAKE --add-missing
+
+# Make sure distcheck runs ./configure --with-included-gettext
+grep 'with-included-gettext' Makefile.in
index 67fcabca24f42dcb21c7f0f2728f2d2792352897..a074788e7b1f9f9c53f0a074b3278b111ee97040 100755 (executable)
@@ -51,3 +51,8 @@ grep 'AM_GNU_GETTEXT.*po' stderr
 
 echo 'SUBDIRS = po' >Makefile.am
 $AUTOMAKE --add-missing
+
+# Don't try running ./configure --with-included-gettext if the
+# user is using AM_GNU_GETTEXT([external]).
+grep 'with-included-gettext' Makefile.in && exit 1
+:
This page took 0.047503 seconds and 5 git commands to generate.