platform/upstream/automake.git
22 years ago For PR automake/286:
Tom Tromey [Wed, 10 Jul 2002 05:36:46 +0000 (05:36 +0000)]
For PR automake/286:
* automake.texi (Tags): Document ctags.
* automake.in (handle_tags): Handle ctags.
* lib/am/tags.am (CTAGS): New macro.
(CTAGSFLAGS): Likewise.
(ctags): New target.
(distclean-tags): Remove `tags'.

22 years ago * lib/am/depend2.am: Reworked syntax to avoid parsing problem.
Tom Tromey [Wed, 10 Jul 2002 05:33:31 +0000 (05:33 +0000)]
* lib/am/depend2.am: Reworked syntax to avoid parsing problem.

22 years ago * lib/am/depend2.am: Search in srcdir and builddir for %SOURCE%
Tom Tromey [Wed, 10 Jul 2002 04:41:55 +0000 (04:41 +0000)]
* lib/am/depend2.am: Search in srcdir and builddir for %SOURCE%
before passing to cygpath.  Partial fix for PR automake/334.

22 years ago* automake.in (generate_makefile): Suggest using AM_CPPFLAGS
Alexandre Duret-Lutz [Tue, 9 Jul 2002 20:46:19 +0000 (20:46 +0000)]
* automake.in (generate_makefile): Suggest using AM_CPPFLAGS
instead of INCLUDES.
* tests/pluseq5.test: Check that AM_CPPFLAGS is suggested.

22 years ago* automake.in (usage, version): Honor $exit_code.
Alexandre Duret-Lutz [Tue, 9 Jul 2002 19:45:10 +0000 (19:45 +0000)]
* automake.in (usage, version): Honor $exit_code.
(parse_arguments): Use fatal.

22 years ago* automake.texi (Invoking Automake): Document WARNINGS.
Alexandre Duret-Lutz [Tue, 9 Jul 2002 19:12:32 +0000 (19:12 +0000)]
* automake.texi (Invoking Automake): Document WARNINGS.
* automake.in (switch_warning, parse_WARNINGS): New function.
(setup_warnings): Rename to ...
(parse_warnings): ... this.  Move most of the code to switch_warning.
Accept a comma separated list of categories.
* tests/vars2.test: Use a comma separated list of warning categories.

22 years ago* NEWS (New in 1.6): Mention that libtoolize is no longer run
Alexandre Duret-Lutz [Mon, 8 Jul 2002 20:13:38 +0000 (20:13 +0000)]
* NEWS (New in 1.6): Mention that libtoolize is no longer run
by automake.

22 years agoFix for PR automake/291:
Alexandre Duret-Lutz [Mon, 8 Jul 2002 19:41:24 +0000 (19:41 +0000)]
Fix for PR automake/291:
* automake.in (macro_define): Catch variable names starting
with `_'.
(handle_installdirs): Rename _am_installdirs to am__installdirs.
* lib/am/data.am, lib/am/install.am, lib/am/libs.am,
lib/am/lisp.am, lib/am/ltlibs.am, lib/am/mans.am,
lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
lib/am/texinfos.am: Likewise.
* tests/canon5.test: Use -Wno-portability.
* tests/vars2.test: New file.
* tests/Makefile.am (TESTS): Add vars2.test.

22 years ago* tests/defs (AUTOMAKE): Add -Wall.
Alexandre Duret-Lutz [Mon, 8 Jul 2002 19:11:44 +0000 (19:11 +0000)]
* tests/defs (AUTOMAKE): Add -Wall.
* tests/outdir.test: Use -Wno-obsolete.

22 years ago * m4/depend.m4 (_AM_DEPENDENCIES): Compute am__fastdep<compiler>
Tom Tromey [Sun, 7 Jul 2002 22:38:46 +0000 (22:38 +0000)]
* m4/depend.m4 (_AM_DEPENDENCIES): Compute am__fastdep<compiler>
conditional.
* automake.in (handle_languages): Compute FASTDEP.
* lib/am/depend2.am: Added %FASTDEP% mode.

22 years ago * automake.texi (Optional): AM_MAINTAINER_MODE is ok in Gnits mode
Tom Tromey [Sun, 7 Jul 2002 21:40:43 +0000 (21:40 +0000)]
* automake.texi (Optional): AM_MAINTAINER_MODE is ok in Gnits mode
now.  Fixes PR automake/332.

22 years ago* tests/nobase.test (test-install-exec): Move all the `test -f'
Alexandre Duret-Lutz [Sat, 6 Jul 2002 13:06:16 +0000 (13:06 +0000)]
* tests/nobase.test (test-install-exec): Move all the `test -f'
tests in the Makefile so we can use $(EXEEXT) on programs.
Reported by Charles Wilson.

22 years ago* m4/header.m4 (AM_CONFIG_HEADER): New macro.
Alexandre Duret-Lutz [Sat, 6 Jul 2002 12:11:12 +0000 (12:11 +0000)]
* m4/header.m4 (AM_CONFIG_HEADER): New macro.
* tests/confh5.test: Make sure that Autoconf complains if
AM_CONFIG_HEADER or AC_CONFIG_HEADERS is called before
AM_INIT_AUTOMAKE.

22 years ago* lib/Automake/Channels.pm: New file.
Alexandre Duret-Lutz [Sat, 6 Jul 2002 10:21:36 +0000 (10:21 +0000)]
* lib/Automake/Channels.pm: New file.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add Channels.pm.
* automake.in: Use Automake::Channels and register some channels
for errors and warnings.
($exit_status): Remove, replaced by Channels::$exit_code.
(%required_variables): Remove, Channels will filter-out duplicates
itself.
(initialize_per_input): Call reset_local_duplicates.
(prog_error): Adjust to all `msg'.
(setup_warnings): New functions.
(parse_arguments): Accept -W CATEGORY and --warnings=CATEGORY,
call setup_warnings.
(usage): Update usage text accordingly.
(macro_dump, macros_dump): Return the dump as a string instead
of printing it.
(am_install_var) <$warned_about_extra>: Remove, Channels will
filter-out duplicates itself.
(set_strictness): Turn on/off channels for each stricness.
(err, fatal, err_var, err_target, err_am, err_ac, msg_var,
msg_target, msg_am, msg_ac, reject_var, reject_target, verb):
New functions, to replace ...
(print_error, am_error, file_error, macro_error, target_error,
conf_error, file_warning): ... these functions.  Remove them.
Update all the code to use the new functions.  The rough
correspondance is
   am_error                -> err_am
   file_error              -> err
   macro_error             -> err_var
   target_error            -> err_target
   conf_error              -> err_ac
   die                     -> fatal
   macro_error if defined  -> reject_var
   target_error if defined -> reject_target
   verbose                 -> verb
* automake.texi (Invoking Automake): Document -W and --warnings.
Remove the documentation for --Werror and --Wno-error.
* tests/defs: Use -Werror, no --Werror.
* tests/exeext2.test: Test that the error message
is enabled with -Wobsolete.
* tests/output5.test: Rewrite to test that Automake complains
when there is no Makefile specified. (The original test was
succeeding for the wrong reason.)
* tests/seenc.test: Don't use --Wno-error, there is no reason now
that -Werror doesn't stop after the first error.
* tests/subobj.test: Use --add-missing, and check that
`compile' is installed and that Automake says so.
* tests/subobj2.test: Don't create `compile'.

22 years ago * automake.texi (Java Support): Mention --main and _LDFLAGS.
Tom Tromey [Fri, 5 Jul 2002 22:59:22 +0000 (22:59 +0000)]
* automake.texi (Java Support): Mention --main and _LDFLAGS.
For PR automake/324.

22 years ago* tests/asm.test: Erase Autom4te's cache between each test.
Alexandre Duret-Lutz [Thu, 4 Jul 2002 15:55:22 +0000 (15:55 +0000)]
* tests/asm.test: Erase Autom4te's cache between each test.

22 years ago* automake.in (am_macro_for_var): Add LIBTOOL.
Alexandre Duret-Lutz [Wed, 3 Jul 2002 18:50:04 +0000 (18:50 +0000)]
* automake.in (am_macro_for_var): Add LIBTOOL.
(ac_macro_for_var): Add RANLIB.
(seen_libtool): Remove.
(handle_libtool, lang_c_finish, define_compiler_variable,
make_paragraphs): Use
variable_defined ('LIBTOOL') instead of $seen_libtool.
(handle_languages) <%transform>: Don't set 'LIBTOOL', it is
already done in make_paragraphs.
(handle_libraries): Simplify by requiring RANLIB with
&require_variables_for_macro.
(handle_ltlibraries): Simplify by requiring LIBTOOL with
&require_variables_for_macro.
(scan_autoconf_traces): Don't trace for AC_PROG_LIBTOOL and
AM_PROG_LIBTOOL.
* tests/libtool4.test, tests/library2.test: New files.
* tests/Makefile.in (TESTS): Add libtool4.test and library2.test.

22 years ago* automake.in (create, keyed_aclocal_warning): Delete, unused.
Alexandre Duret-Lutz [Tue, 2 Jul 2002 09:27:00 +0000 (09:27 +0000)]
* automake.in (create, keyed_aclocal_warning): Delete, unused.

22 years ago* automake.in (ac_macro_for_var): Add YACC.
Alexandre Duret-Lutz [Mon, 1 Jul 2002 16:17:36 +0000 (16:17 +0000)]
* automake.in (ac_macro_for_var): Add YACC.

22 years agoHandle multiple suffix rules with the same input extension.
Alexandre Duret-Lutz [Mon, 1 Jul 2002 16:10:35 +0000 (16:10 +0000)]
Handle multiple suffix rules with the same input extension.
For PR automake/37.

* automake.in (suffix_rules_default): New variable.
(suffix_rules): Redefine as a hash of hashes of pairs.
(initialize_per_input): Setup suffix_rules_default from
suffix_rules on first call, an override suffix_rules
with suffix_rules_default on following calls.
(struct) <output_extensions>: New attribute.
(register_language): Set the default for output_extensions.
Call register_suffix_rule for each suffix.
(derive_suffix, handle_languages): Adjust to the new definition
of $suffix.
(register_suffix_rule): New function.
(rule_define): Call register_suffix_rule.
* tests/suffix8.test, tests/suffix9.test, tests/suffix10.test:
New files.
* tests/Makefile.am (TESTS): Add them.

22 years ago* automake.in (am_macro_for_var, ac_macro_for_var,
Alexandre Duret-Lutz [Sun, 30 Jun 2002 22:44:13 +0000 (22:44 +0000)]
* automake.in (am_macro_for_var, ac_macro_for_var,
required_variables): New variables.
(am_c_prototypes, seen_prog_lex, am_lispdir_location,
pythondir_location): Remove.
(initialize_per_input): Clear %required_variables.
(require_variables, require_variables_for_macro): New functions.
(handle_languages): Call &require_variables for $lang->config_vars.
(handle_compile): Call &require_variables_for_macro for the
ANSI2KNR and U variables.
(handle_emacs_lisp): Call &require_variables for EMACS and libdir.
(handle_python): Call &require_variables for PYTHON.  Don't
explicitly allow `python' as a prefix for PYTHON.
(scan_autoconf_traces): Don't scan AC_PROG_LEX, AM_C_PROTOTYPES,
AM_PATH_LISPDIR, and AM_PATH_PYTHON.
(scan_autoconf_traces) <AC_SUBST>: Don't filter out ANSI2KNR and
AMDEPBACKSLASH here...
(define_configure_variable): ... do this here.
(am_primary_prefixes): Probe the existence of ${X}dir using
&require_variables_for_macro.  If a standard prefix is not
legitimate, say so.  Ignore all configure variables.
* tests/ansi8.test, tests/cxx2.test, tests/gcj5.test,
tests/lisp2.test, tests/python2.test: New files
* tests/Makefile.am (TESTS): Add them.
* tests/asm.test: Grep stderr.
* tests/lex2.test: Rewrite to test that Automake suggests AM_PROG_LEX.
* tests/python.test: Make sure py-compile is installed.

22 years ago* automake.in (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR,
Alexandre Duret-Lutz [Thu, 27 Jun 2002 19:31:59 +0000 (19:31 +0000)]
* automake.in (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR,
COMPILE_LIBTOOL, COMPILE_ORDINARY): Redefine as constants.
Adjust all occurrences.

22 years ago* aclocal.in: Add local variables so that Emacs setups GNU style
Alexandre Duret-Lutz [Thu, 27 Jun 2002 19:19:47 +0000 (19:19 +0000)]
* aclocal.in: Add local variables so that Emacs setups GNU style
for perl-mode and cperl-mode.
* automake.in: Likewise.
(WHITE_PATTERN, RULE_PATTERN, SUFFIX_RULE_PATTERN, MACRO_PATTERN,
ASSIGNMENT_PATTERN, IF_PATTERN, ELSE_PATTERN, ENDIF_PATTERN,
INCLUDE_PATTERN, EXEC_DIR_PATTERN): Write $ as "$" to please
perl-mode.

22 years ago* Makefile.am (fetch): Fetch install-sh from Autoconf CVS.
Alexandre Duret-Lutz [Thu, 27 Jun 2002 08:46:45 +0000 (08:46 +0000)]
* Makefile.am (fetch): Fetch install-sh from Autoconf CVS.
* lib/config.sub, lib/install-sh: New upstream versions.

22 years ago(maintainer-check): Don't assume that egrep exists;
Paul Eggert [Thu, 27 Jun 2002 01:28:07 +0000 (01:28 +0000)]
(maintainer-check): Don't assume that egrep exists;
this fixes a portability bug introduced in the 2002-06-08 fix for
PR automake/317.

22 years ago* Makefile.am (maintainer-check): Don't assume that egrep exists;
Paul Eggert [Thu, 27 Jun 2002 01:27:29 +0000 (01:27 +0000)]
* Makefile.am (maintainer-check): Don't assume that egrep exists;
this fixes a portability bug introduced in the 2002-06-08 fix for
PR automake/317.

22 years ago* automake.in (required_targets): Add ps and ps-am.
Alexandre Duret-Lutz [Wed, 26 Jun 2002 19:13:56 +0000 (19:13 +0000)]
* automake.in (required_targets): Add ps and ps-am.
(initialize_per_input): Reset them.
(handle_texinfo_helper): Fill @pss_list, and define the
PSS make variable.
* lib/am/texinfos.am (RECURSIVE_TARGETS): Add ps-recursive.
(ps, ps-am): New targets.
* automake.texi (Auxiliary Programs) <texinfo.tex>: Mention
`make ps' and `make pdf'.
(Texinfo): Document `make ps', `make pdf', and `make dvi'.
(Extending): The `ps' and `pdf' targets support a `-local' version.

22 years ago* automake.texi: s/.../@dots{}/.
Alexandre Duret-Lutz [Wed, 26 Jun 2002 08:37:48 +0000 (08:37 +0000)]
* automake.texi: s/.../@dots{}/.

22 years ago* configure.in: Check that ln works, fall back to `cp -p'.
Alexandre Duret-Lutz [Wed, 26 Jun 2002 08:15:25 +0000 (08:15 +0000)]
* configure.in: Check that ln works, fall back to `cp -p'.
* Makefile.am (install-exec-hook): Use $(LN) instead of ln.
Reported by Andreas Buening.

22 years ago* automake.in: Register &lang_lex_target_hook for lex and lexxx.
Alexandre Duret-Lutz [Fri, 21 Jun 2002 20:24:33 +0000 (20:24 +0000)]
* automake.in: Register &lang_lex_target_hook for lex and lexxx.
(lang_lex_target_hook): New function.
* tests/lex3.c: Complete to check that maintainer-clean erases
Lex's output.
Reported by Flavien Astraud.  This was lost on 2001-06-23 too.

22 years ago* automake.in (lang_yacc_target_hook): Add $output to
Alexandre Duret-Lutz [Fri, 21 Jun 2002 19:59:40 +0000 (19:59 +0000)]
* automake.in (lang_yacc_target_hook): Add $output to
@maintainer_clean_files.  This was lost on 2001-06-23.
* tests/yacc7.test, tests/yacc4.test: Complete to check
that maintainer-clean erases YACC's output files,
respectively with and without `-d'.
Reported by Flavien Astraud.

22 years ago* lib/am/lang-compile.am (%FPFX%DEPMODE): Delete. This is now
Alexandre Duret-Lutz [Wed, 19 Jun 2002 19:57:40 +0000 (19:57 +0000)]
* lib/am/lang-compile.am (%FPFX%DEPMODE): Delete.  This is now
traced from configure.ac.

* automake.in (macro_define): Don't accept to override an AC_SUBST
or Automake variable in a new condition.
* tests/cond23.test, tests/cond24.test: New file.
* tests/Makefile.am (TESTS): Add cond23.test and cond24.test.
Reported by Patrik Weiskirchre.

22 years ago* tests/nobase.test, tests/pr204.test, tests/pr300-lib.test,
Alexandre Duret-Lutz [Wed, 19 Jun 2002 18:31:37 +0000 (18:31 +0000)]
* tests/nobase.test, tests/pr204.test, tests/pr300-lib.test,
tests/pr300-ltlib.test, tests/pr300-prog.test,
tests/specflags7.test, tests/specflags8.test, tests/subdir5.test,
tests/subobj6.test, tests/subpkg.test, tests/transform.test:
Require gcc.

22 years ago* tests/libtool2.test: Use required=libtoolize.
Alexandre Duret-Lutz [Tue, 18 Jun 2002 20:08:01 +0000 (20:08 +0000)]
* tests/libtool2.test: Use required=libtoolize.
* tests/install2.test: Use required=gzip.

22 years ago* tests/defs (required): Handle bison; set YACC automatically.
Alexandre Duret-Lutz [Tue, 18 Jun 2002 19:55:58 +0000 (19:55 +0000)]
* tests/defs (required): Handle bison; set YACC automatically.
* tests/pr204.test, tests/yacc4.test, tests/yacc8.test,
tests/yaccvpath.test: Require bison.  Don't set YACC.

22 years ago* tests/defs (required): Handle `gcc' and `g++'; automatically
Alexandre Duret-Lutz [Tue, 18 Jun 2002 19:44:48 +0000 (19:44 +0000)]
* tests/defs (required): Handle `gcc' and `g++'; automatically
export CC and CXX when they are required.
* tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
tests/cond4.test, tests/cond16.test, tests/cond18.test,
tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
tests/lex3.test, tests/pr87.test, tests/pr220.test,
tests/substref.test, tests/target-cflags.test, tests/yacc4.test,
tests/yaccvpath.test: Require gcc.  Don't pass CC=gcc to
configure.
* tests/subobj9.test: Require g++.

22 years ago* tests/defs (required): Handle `GNUmake'.
Alexandre Duret-Lutz [Tue, 18 Jun 2002 19:08:28 +0000 (19:08 +0000)]
* tests/defs (required): Handle `GNUmake'.
(needs_gnu_make): Don't define anymore.
* tests/cond4.test, tests/cond18.test, tests/cond19.test,
tests/dollar.test, tests/exsource.test, tests/extra6.test,
tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test,
tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test,
tests/yaccvpath.test: Use `required=GNUmake' instead of
`$needs_gnu_make'.

22 years ago* automake.in (process_option_list): Recognize std-options.
Alexandre Duret-Lutz [Mon, 17 Jun 2002 12:20:25 +0000 (12:20 +0000)]
* automake.in (process_option_list): Recognize std-options.
(handle_options): Enable std-options in gnits strictness.
(am_install_var): If std-options, enable CK-OPTS section.
* lib/am/scripts.am (installcheck-am): New target.
* lib/am/progs.am (installcheck-am): New target.
* tests/gnits2.test: New file.
* tests/Makefile.am (TESTS): Add gnits2.test.
* automake.texi (Gnits, Options): Document std-options.

22 years ago2002-06-17 Kevin Ryde <user42@zip.com.au>
Alexandre Duret-Lutz [Mon, 17 Jun 2002 07:42:07 +0000 (07:42 +0000)]
2002-06-17  Kevin Ryde  <user42@zip.com.au>

* automake.in (scan_texinfo_file): Add tmp to @clean_suffixes,
as generated by recent texinfo.tex.

22 years ago* m4/header.m4 (AM_CONFIG_HEADER): Rename to ...
Alexandre Duret-Lutz [Fri, 14 Jun 2002 06:48:31 +0000 (06:48 +0000)]
* m4/header.m4 (AM_CONFIG_HEADER): Rename to ...
(_AM_CONFIG_HEADERS): ... this.
(_AM_CONFIG_HEADER_INSINUATE): Define AC_CONFIG_HEADERS to
call _AM_CONFIG_HEADERS; and AM_CONFIG_HEADER to call
AC_CONFIG_HEADERS.
* automake.in (scan_autoconf_traces): Trace AC_CONFIG_HEADERS
instead of AM_CONFIG_HEADER.
* tests/autoheader2.test: New file.
* tests/Makefile.am (TESTS): Add autoheader2.test.
Suggested by Raja R Harinath.

22 years ago* m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): Use m4_copy instead
Alexandre Duret-Lutz [Thu, 13 Jun 2002 19:45:21 +0000 (19:45 +0000)]
* m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): Use m4_copy instead
of m4_rename so that AC_CONFIG_HEADER is never undefined and
therefore still traced after the redefinition.
* tests/defs (AUTOHEADER): Define.
* tests/autoheader.test: New file.
* tests/Makefile.am (TESTS): Add autoheader.test.
Reported by Braden McDaniel.

22 years ago* automake.in (check_gnu_standards): In --gnu mode, accept
Alexandre Duret-Lutz [Thu, 13 Jun 2002 08:48:11 +0000 (08:48 +0000)]
* automake.in (check_gnu_standards): In --gnu mode, accept
one of COPTING, COPYING.LESSER, or COPYING.LIB.
(common_files): Add COPYING.LESSER.
* automake.texi (Gnits): Document this.

22 years ago2002-05-03 Paolo Bonzini <bonzini@gnu.org>
Alexandre Duret-Lutz [Thu, 13 Jun 2002 08:09:36 +0000 (08:09 +0000)]
2002-05-03  Paolo Bonzini  <bonzini@gnu.org>

        * automake.in (required_targets): Add the pdf and pdf-am targets.
        (initialize_per_input): Likewise.
        (scan_texinfo_file): Add pdf to @clean_suffixes.
        (handle_texinfo_helper): Output the .pdf dependencies, and define
        the PDFS variable.
        * lib/am/texinfos.am (TEXI2PDF): New variable.
        (pdf, pdf-am): New targets.
        (.PHONY): Add pdf, pdf-am, and pdf-recursive.
        * lib/am/texibuild.am (.%SUFFIX%.pdf): New rule.

22 years agoFix pr307.test failure with gcc 3.x.
Alexandre Duret-Lutz [Thu, 13 Jun 2002 07:40:09 +0000 (07:40 +0000)]
Fix pr307.test failure with gcc 3.x.
* lib/depcomp (dashmstdout): Strip the call to libtool, and
replace `-o $object' by `-o /dev/null' before running "$@"
to generate dependencies.
(cpp): Strip the call to libtool as well as `-o $object'.

22 years ago* lib/depcomp (tru64): Expect dependency files in .libs/, maybe as
Alexandre Duret-Lutz [Wed, 12 Jun 2002 16:37:34 +0000 (16:37 +0000)]
* lib/depcomp (tru64): Expect dependency files in .libs/, maybe as
$base.lo.d, when libtool is used.
Reported by Nicolas Joly.

22 years ago* lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there
Alexandre Duret-Lutz [Wed, 12 Jun 2002 07:52:35 +0000 (07:52 +0000)]
* lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there
is no file to compile.
* tests/java2.test: New file.
* tests/Makefile.am (TESTS): Add java2.test.
Reported by Braden N. McDaniel.

22 years ago* tests/maintclean.test: Don't check for autom4te.cache if
Alexandre Duret-Lutz [Tue, 11 Jun 2002 12:31:49 +0000 (12:31 +0000)]
* tests/maintclean.test: Don't check for autom4te.cache if
it's not created by Autoconf.
Reported by Bernd Jendrissek.

22 years ago* automake.texi (Tests): Document site.exp. Update DejaGnu's url.
Alexandre Duret-Lutz [Tue, 11 Jun 2002 09:12:43 +0000 (09:12 +0000)]
* automake.texi (Tests): Document site.exp.  Update DejaGnu's url.

22 years agotypo
Alexandre Duret-Lutz [Mon, 10 Jun 2002 19:15:00 +0000 (19:15 +0000)]
typo

22 years ago* lib/am/header-vars.am (transform): Define.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 18:54:33 +0000 (18:54 +0000)]
* lib/am/header-vars.am (transform): Define.
Was removed by mistake on 2002-04-13.
* tests/transform.test: New file.
* tests/Makefile.am (TESTS): Add transform.test.
Reported by Nicolas Joly.

22 years ago* tests/dollar.test: Require GNU make.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 18:42:59 +0000 (18:42 +0000)]
* tests/dollar.test: Require GNU make.
* tests/maintclean.test: Don't use `export YACC=false'.  Pass
YACC=false to configure instead.

22 years ago* lib/config.guess, lib/config.sub, lib/texinfo.tex, lib/INSTALL,
Alexandre Duret-Lutz [Mon, 10 Jun 2002 17:44:08 +0000 (17:44 +0000)]
* lib/config.guess, lib/config.sub, lib/texinfo.tex, lib/INSTALL,
INSTALL: New upstream versions.

22 years ago* tests/sinclude.test: Check for m4_include too.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 17:37:46 +0000 (17:37 +0000)]
* tests/sinclude.test: Check for m4_include too.

22 years ago* tests/sinclude.test: Rename the package as amsinclude;
Alexandre Duret-Lutz [Mon, 10 Jun 2002 10:23:38 +0000 (10:23 +0000)]
* tests/sinclude.test: Rename the package as amsinclude;
am__sinclude still trigers the sinclude macro once it has been
converted to am--sinclude.
Reported by Nicolas Joly.

22 years ago* automake.texi (API versioning): Typo.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 10:08:14 +0000 (10:08 +0000)]
* automake.texi (API versioning): Typo.

22 years ago2002-06-10 Nicolas Joly <njoly@pasteur.fr>
Alexandre Duret-Lutz [Mon, 10 Jun 2002 10:02:17 +0000 (10:02 +0000)]
2002-06-10  Nicolas Joly  <njoly@pasteur.fr>

* THANKS (Nicolas Joly): Remove duplicate.

22 years ago* Makefile.am (maintainer-check): Fix $MAKE -e detection.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 09:49:24 +0000 (09:49 +0000)]
* Makefile.am (maintainer-check): Fix $MAKE -e detection.
* tests/yacc7.test: Use rm -f.

22 years ago* tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 09:39:14 +0000 (09:39 +0000)]
* tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths.
* tests/subpkg.test: New file.
* tests/Makefile.am (TESTS): Add subpkg.test.

22 years agoFor PR automake/318:
Alexandre Duret-Lutz [Sun, 9 Jun 2002 11:12:35 +0000 (11:12 +0000)]
For PR automake/318:
* tests/nobase.test: Rewrite to test _HEADERS, _DATA, _SCRIPTS,
_PROGRAMS, _LIBRARIES, and _LTLIBRARIES.
* lib/am/scripts.am (install-%DIR%SCRIPTS,
uninstall-%DIR%SCRIPTS): Honor nobase_; strip the directory by
default.
(?%DIR%SCRIPT_INSTALL): New variable.
* lib/am/header-vars.am (install_sh_SCRIPT): New variable.
Reported by Eric Siegerman.

22 years ago* automake.in (lang_yacc_target_hook): Add rule to recover from
Alexandre Duret-Lutz [Sat, 8 Jun 2002 17:22:28 +0000 (17:22 +0000)]
* automake.in (lang_yacc_target_hook): Add rule to recover from
the removal of $header.
* lib/am/yacc.am (%BASE%.h): Remove (duplicate with the one
output by lang_yacc_target_hook).
* tests/yacc7.test: Try to recreate foo.h after its removal.
* tests/yacc8.test: Add `AM_YFLAGS = -d' and try to recreate
parse.h too.
Reported by Bernd Jendrissek.

22 years agoFor PR automake/317:
Alexandre Duret-Lutz [Sat, 8 Jun 2002 16:56:11 +0000 (16:56 +0000)]
For PR automake/317:
* Makefile.am (maintainer-check): Disallow `for f in $(FILES)',
suggest `list='$(FILES)'; for f in $$list' instead.
* lib/am/distdir.am (distdir): Adjust `for' usage.
* lib/am/texinfos.am (maintainer-clean-aminfo): Likewise.
* tests/dollar.test: New file.
* tests/Makefile.am (TESTS): Add dollar.test.
Reported by Eric Siegerman and Philip Fong.

22 years agoFor PR automake/47 (fixed a long time ago):
Alexandre Duret-Lutz [Thu, 6 Jun 2002 17:22:10 +0000 (17:22 +0000)]
For PR automake/47 (fixed a long time ago):
* tests/yacc7.test: Also check that parser sources are distributed.

22 years ago* lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable.
Alexandre Duret-Lutz [Thu, 6 Jun 2002 08:34:43 +0000 (08:34 +0000)]
* lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable.
(distclean): Use it.
(maintainer-clean): Delete autom4te.cache and
$(am__CONFIG_DISTCLEAN_FILES).
* tests/maintclean.test: New file.
* tests/Makefile.am (TESTS): Add maintclean.test.

22 years ago2002-06-05 Miloslav Trmac <trmac@popelka.ms.mff.cuni.cz>
Alexandre Duret-Lutz [Wed, 5 Jun 2002 09:06:13 +0000 (09:06 +0000)]
2002-06-05  Miloslav Trmac  <trmac@popelka.ms.mff.cuni.cz>

* lib/am/dejagnu.am (site.exp): Quote build_alias, host_alias, and
target_alias.

22 years ago* Makefile.am (maintainer-check): Check for egrep and fgrep.
Alexandre Duret-Lutz [Fri, 31 May 2002 18:05:08 +0000 (18:05 +0000)]
* Makefile.am (maintainer-check): Check for egrep and fgrep.

* test/cond22.test: Set SHELL when calling $MAKE -e.

22 years ago2002-05-31 Richard Boulton <richard@tartarus.org>
Alexandre Duret-Lutz [Fri, 31 May 2002 17:46:22 +0000 (17:46 +0000)]
2002-05-31  Richard Boulton <richard@tartarus.org>

        Fix PR automake/326:
        * automake.in (define_objects_from_sources): Calculate the result in
        all conditions before passing this to subobjname to pick a name to
        store the result in.
        (subobjname): Expect a list of condition/value pairs as input.
        Combine this list and use it as the key to determine the variable name.
        * test/cond22.test: New file.
        * tests/Makefile.am (TESTS): Add cond21.test

22 years ago* lib/am/distdir.am (distdir): Don't assume that 'grep -F' works;
Paul Eggert [Thu, 30 May 2002 12:16:32 +0000 (12:16 +0000)]
* lib/am/distdir.am (distdir): Don't assume that 'grep -F' works;
instead, use shell pattern matching.

22 years ago(distdir): Don't assume that 'grep -F' works; instead, use shell
Paul Eggert [Thu, 30 May 2002 12:15:26 +0000 (12:15 +0000)]
(distdir): Don't assume that 'grep -F' works; instead, use shell
pattern matching.

22 years agoDon't assume that egrep and fgrep exist, as POSIX 1003.1-2001 no
Paul Eggert [Thu, 30 May 2002 06:09:07 +0000 (06:09 +0000)]
Don't assume that egrep and fgrep exist, as POSIX 1003.1-2001 no
longer requires them.

* Makefile.am (maintainer-check): Use grep -E and grep -F instead
of egrep and fgrep.  Omit unnecessary -E and -F.
Fix quoting typo -- "fgrep '\$${'" should have been "fgrep '$${'".
* lib/am/distdir.am (distdir): fgrep -> grep -F.
Use $(), not ${}, for Make variables.
* lib/am/texinfos.am (install-info-am, uninstall-info-am):
fgrep -> grep
* m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
* tests/defs: Set FGREP and EGREP.

* tests/aclocali.test, tests/acoutput2.test, tests/all.test,
tests/ansi.test, tests/ansi4.test, tests/colon3.test,
tests/cond21.test, tests/condlib.test, tests/confh4.test,
tests/confsub.test, tests/cxxansi.test, tests/cxxo.test,
tests/depend4.test, tests/discover.test, tests/distname.test,
tests/dup3.test, tests/empty4.test, tests/fo.test,
tests/implicit.test, tests/insh2.test, tests/interp.test,
tests/lex.test, tests/lex3.test, tests/lex4.test,
tests/libobj5.test, tests/libobj7.test, tests/make.test,
tests/makevars.test, tests/nostdinc.test, tests/parse.test,
tests/pluseq.test, tests/pluseq4.test, tests/pluseq6.test,
tests/pr2.test, tests/pr9.test, tests/seenc.test,
tests/specflags.test, tests/specflags3.test,
tests/specflags6.test, tests/subobj.test, tests/subobj2.test,
tests/suffix3.test, tests/texinfo.test, tests/texinfo6.test,
tests/texinfo8.test, tests/vtexi.test, tests/yacc3.test,
tests/yacc6.test: fgrep -> $FGREP, egrep -> $EGREP

22 years agofgrep -> $FGREP, egrep -> $EGREP
Paul Eggert [Thu, 30 May 2002 06:05:05 +0000 (06:05 +0000)]
fgrep -> $FGREP, egrep -> $EGREP

22 years agoSet FGREP and EGREP.
Paul Eggert [Thu, 30 May 2002 06:04:09 +0000 (06:04 +0000)]
Set FGREP and EGREP.

22 years ago(AM_MAKE_INCLUDE): fgrep -> grep
Paul Eggert [Thu, 30 May 2002 05:55:50 +0000 (05:55 +0000)]
(AM_MAKE_INCLUDE): fgrep -> grep

22 years ago(install-info-am, uninstall-info-am): fgrep -> grep
Paul Eggert [Thu, 30 May 2002 05:54:55 +0000 (05:54 +0000)]
(install-info-am, uninstall-info-am): fgrep -> grep

22 years ago(distdir): fgrep -> grep -F.
Paul Eggert [Thu, 30 May 2002 05:54:05 +0000 (05:54 +0000)]
(distdir): fgrep -> grep -F.
Use $(), not ${}, for Make variables.

22 years ago(maintainer-check): Use grep -E and grep -F instead
Paul Eggert [Thu, 30 May 2002 05:51:33 +0000 (05:51 +0000)]
(maintainer-check): Use grep -E and grep -F instead
of egrep and fgrep.  Omit unnecessary -E and -F.
Fix quoting typo -- "fgrep '\$${'" should have been "fgrep '$${'".

22 years agoFor PR automake/323:
Alexandre Duret-Lutz [Fri, 24 May 2002 10:36:20 +0000 (10:36 +0000)]
For PR automake/323:
* m4/depend.m4: Missing comma.
* tests/gcj4.test: New file.
* tests/Makefile.am (TESTS): Add gcj4.test.
Reported by David Pashley.

22 years ago* tests/defs (confiugre.in): Don't double-quote $me.
Alexandre Duret-Lutz [Wed, 22 May 2002 09:50:54 +0000 (09:50 +0000)]
* tests/defs (confiugre.in): Don't double-quote $me.
* tests/sinclude.test: Overwrite configure.in and use
`am__sinclude' instead of `sinclude' as package name.
Excercise `m4_sinclude' instead of `sinclude'.

22 years ago* automake.in (conditional_implies_one_of): Rename as ...
Alexandre Duret-Lutz [Mon, 20 May 2002 20:42:02 +0000 (20:42 +0000)]
* automake.in (conditional_implies_one_of): Rename as ...
(conditional_implies_any): ... this.
* tests/pluseq9.test: Exercise another case with the new
`C' variable.
Suggested by Raja R Harinath.

22 years ago* tests/defs (configure.in): Quote macro arguments.
Alexandre Duret-Lutz [Mon, 20 May 2002 17:55:48 +0000 (17:55 +0000)]
* tests/defs (configure.in): Quote macro arguments.
Reported by Nicolas Joly.

22 years ago* lib/am/header-vars.am (build_triplet, host_triplet,
Alexandre Duret-Lutz [Fri, 17 May 2002 13:55:57 +0000 (13:55 +0000)]
* lib/am/header-vars.am (build_triplet, host_triplet,
target_triplet): Define.  Were removed by mistake on 2002-04-13.

22 years agoFor PR automake/186:
Alexandre Duret-Lutz [Fri, 17 May 2002 10:49:55 +0000 (10:49 +0000)]
For PR automake/186:
* lib/am/distdir.am (distcheck): Attempt a DESTDIR install.
* tests/destdir.test: New file.
* tests/Makefile.am (TESTS): Add destdir.test.

22 years ago* automake.in (conditional_true_when): Return false if $WHEN == FALSE.
Alexandre Duret-Lutz [Thu, 16 May 2002 20:36:36 +0000 (20:36 +0000)]
* automake.in (conditional_true_when): Return false if $WHEN == FALSE.
(conditional_is_redundant): Simplify.
(conditional_implies_one_of,
variable_not_always_defined_in_cond): New functions
(macro_define): Reject appends if the variable is not defined in
all conditions where `+=' applies.
(invert_conditions): Rewrite.  Before this patch,
invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE")
would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems
wrong (these conditions implies "A_FALSE").  Now it outputs (),
which just means the input conditions cover all cases.
(variable_conditions_permutations): Never output FALSE conditions.
* tests/pluseq2.test, tests/pluseq3.test: Define data_DATA
in the CHECK_FALSE condition to fix the test.
* tests/pluseq5.test: Actually check the diagnostic.
* tests/pluseq9.test: New file.
* tests/Makefile.am (TESTS): Add pluseq9.test.

22 years agoFix for PR automake/322:
Alexandre Duret-Lutz [Tue, 14 May 2002 14:12:21 +0000 (14:12 +0000)]
Fix for PR automake/322:
* automake.in (read_am_file): Rename $was_rule as $prev_state, and
set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate.
Handle comments continued by backslashes.
* tests/comment6.test: New file.
* tests/Makefile.am (TESTS): Add comment6.test.
Reported by Braden N. McDaniel.

22 years ago2002-05-08 Charles Wilson <cwilson@ece.gatech.edu>
Alexandre Duret-Lutz [Wed, 8 May 2002 08:56:43 +0000 (08:56 +0000)]
2002-05-08  Charles Wilson  <cwilson@ece.gatech.edu>
            Alexandre Duret-Lutz  <duret_g@epita.fr>

* lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean
both `program$(EXEEXT)' and `program'; needed under Cygwin.
* tests/libtool3.test: New file.
* tests/Makefile.am (TESTS): Add libtool3.test.

22 years ago* TODO: Undust.
Alexandre Duret-Lutz [Tue, 7 May 2002 07:06:36 +0000 (07:06 +0000)]
* TODO: Undust.

22 years ago* Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
Alexandre Duret-Lutz [Mon, 6 May 2002 19:29:37 +0000 (19:29 +0000)]
* Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.

22 years agoErase stamps from the Makefile that generates them.
Alexandre Duret-Lutz [Mon, 6 May 2002 19:10:42 +0000 (19:10 +0000)]
Erase stamps from the Makefile that generates them.

* automake.in (handle_configure): Append each used stamp to
@distclean_config.  Don't warn about stamp-h in AC_OUTPUT, this
file is not used anymore.
* lib/am/clean.am (distclean-generic): Don't erase stamp-h and
stamp-h[0-9]*.
* tests/subdir6.test: New file.
* tests/Makefile.am (TESTS): Add it.

22 years agoFix for condd.test (conditional `+='):
Alexandre Duret-Lutz [Mon, 6 May 2002 06:51:05 +0000 (06:51 +0000)]
Fix for condd.test (conditional `+='):
* automake.in (%appendvar): New.
(initialize_per_input): Clear it.
(macro_define): Handle += for variable defined in another condition.
* automake.texi (Conditional Sources): Use conditional += in
the example.
(General Operation, Conditionals): Remove note about broken +=.
* tests/cond21.test: New file.
* tests/condd.test: Also test conditional append to a _SOURCE
variable.  Create missing directories.
* tests/Makefile.am (TESTS): Add cond21.test.
(XFAILS): Remove condd.test.

22 years ago * automake.texi (Program and Library Variables): Mention _LFLAGS.
Tom Tromey [Mon, 6 May 2002 06:15:13 +0000 (06:15 +0000)]
* automake.texi (Program and Library Variables): Mention _LFLAGS.

22 years ago* lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
Alexandre Duret-Lutz [Tue, 30 Apr 2002 22:13:50 +0000 (22:13 +0000)]
* lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
files.  Fix subobj9.test on OSF and IRIX.
Reported by Nelson H. F. Beebe.

22 years ago * lib/am/dejagnu.am (distclean-DEJAGNU): New target.
Tom Tromey [Fri, 26 Apr 2002 19:21:37 +0000 (19:21 +0000)]
* lib/am/dejagnu.am (distclean-DEJAGNU): New target.
For Debian bug 14421.

22 years ago* tests/man2.test: Use `pwd`, not $PWD. Use $MAKE -e.
Alexandre Duret-Lutz [Fri, 26 Apr 2002 15:58:18 +0000 (15:58 +0000)]
* tests/man2.test: Use `pwd`, not $PWD.  Use $MAKE -e.

22 years ago* automake.in (subobjname): Use the length of %subobjvar
Alexandre Duret-Lutz [Thu, 25 Apr 2002 16:47:04 +0000 (16:47 +0000)]
* automake.in (subobjname): Use the length of %subobjvar
instead of $subobjnamenum.
(subobjnamenum): Remove.

22 years agoFor PR automake/307:
Alexandre Duret-Lutz [Thu, 25 Apr 2002 07:55:04 +0000 (07:55 +0000)]
For PR automake/307:
* lib/depcomp: Never compute dependencies in the background, this
can cause races with libtool.  Compute the dependencies after
the actual compilation.  Don't make libtool silent now that
it's run in the foreground.
* tests/pr307.test: New file.
* tests/Makefile.am (TESTS): Add pr307.test.
Reported by Laurent Morichetti.

22 years ago* lib/am/check.am: Show skipped tests. Display the
Alexandre Duret-Lutz [Thu, 25 Apr 2002 07:48:34 +0000 (07:48 +0000)]
* lib/am/check.am: Show skipped tests.  Display the
$(PACKAGE_BUGREPORT) address on failure.

22 years agoFix PR automake/315:
Alexandre Duret-Lutz [Wed, 24 Apr 2002 07:36:00 +0000 (07:36 +0000)]
Fix PR automake/315:
* automake.in (subobjname): Rewrite to generate variable name
unique for each content.
(%substnums): Remove.
(%subobjvar): New hash.
(initialize_per_input): Clear %subobjvar.
(define_objects_from_sources): Return the name of the variable
defined, in addition to the linker.  Call subobjname only once
the content of the variable to define is known.
(handle_source_transform): Adjust call to define_objects_from_sources.
* tests/specflags8.test: Mention PR 315.
* tests/subobjname.test: New file.
* tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test.
(TESTS): Add subobjname.test.

22 years ago* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
Alexandre Duret-Lutz [Tue, 23 Apr 2002 16:59:58 +0000 (16:59 +0000)]
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
the whole file for 'generated by automake', not only the
first line.  This accounts for post-processed Makefile.in's.
* tests/postproc.test: New file.
* tests/Makefile.am (TESTS): Add postproc.test.

22 years agoFor PR automake/151 and PR automake/314:
Alexandre Duret-Lutz [Mon, 22 Apr 2002 18:39:45 +0000 (18:39 +0000)]
For PR automake/151 and PR automake/314:
* automake.texi (A Program): Split into
(Program Sources, Linking, Conditional Sources, Conditional
Programs): ... these subsections; moving the Linking node
before the Conditional discussions.
(Conditional Sources): More details.  Notably, mention
hello_DEPENDENCIES.
(Conditionals): Adjust reference to Conditional Programs.

22 years agoFix some bugs when using "$@" when there might be zero positional
Paul Eggert [Fri, 19 Apr 2002 20:59:18 +0000 (20:59 +0000)]
Fix some bugs when using "$@" when there might be zero positional
arguments in cases where this matters.  Zsh doesn't support
the workaround ${1+"$@"} that has been used by Automake since
the Mon Dec  4 11:55:36 1995 change.

* aclocal.in: Use 'case' statement to work around problem.
* automake.in: Likewise.
* lib/ylwrap: Likewise.
* lib/missing: No need for workaround, as the command is never
invoked with zero arguments.
* tests/ccnoco.test: Likewise.
* missing: Update from lib/missing.

22 years agoNo need for ${1+"$@"} workaround, as the command is never invoked with
Paul Eggert [Fri, 19 Apr 2002 20:58:51 +0000 (20:58 +0000)]
No need for ${1+"$@"} workaround, as the command is never invoked with
zero arguments.  The workaround breaks with Zsh.