Alexandre Duret-Lutz [Mon, 22 Jul 2002 17:00:44 +0000 (17:00 +0000)]
* lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
* lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise.
* automake.texi (Options) <std-options>: Document
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
(Gnits): Reference std-options.
* tests/gnits3.test: New file.
* tests/Makefile.am (TESTS): Add gnits3.test.
Suggested by Jim Meyering.
Alexandre Duret-Lutz [Sat, 20 Jul 2002 15:48:35 +0000 (15:48 +0000)]
* tests/gnits2.test: Use --program-prefix. Test for scripts too.
Replace the sed script by calls to grep, easier to debug.
* lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor nobase
and $(transform).
* lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise.
Alexandre Duret-Lutz [Sat, 20 Jul 2002 15:11:50 +0000 (15:11 +0000)]
* lib/am/progs.am (install-%DIR%PROGRAMS, uninstall-%DIR%PROGRAMS):
Always strip the directory part before applying $(transform),
even for nobase_ targets.
* lib/am/scripts.am (install-%DIR%SCRIPTS, uninstall-%DIR%SCRIPTS):
Likewise.
* tests/nobase.test: Use --program-prefix while testing nobase
support.
Alexandre Duret-Lutz [Fri, 19 Jul 2002 20:23:38 +0000 (20:23 +0000)]
* tests/dirname.test: Delete. We don't define _AM_DIRNAME anymore.
* tests/Makefile.am (TESTS): Remove dirname.test.
Alexandre Duret-Lutz [Fri, 19 Jul 2002 20:17:59 +0000 (20:17 +0000)]
* m4/init.m4: Require Autoconf 2.53b.
* m4/header.m4 (AM_CONFIG_HEADER): Redefine using AU_DEFUN.
* m4/ccstdc.m4 (fp_PROG_CC_STDC): New AU_DEFUN.
* m4/dmalloc.m4 (fp_WITH_DMALLOC): Likewise.
* m4/lispdir.m4 (ud_PATH_LISPDIR): Likewise.
* m4/maintainer.m4 (jm_MAINTAINER_MODE): Likewise.
* m4/protos.m4 (fp_C_PROTOTYPES): Likewise.
* m4/regex.m4 (fp_WITH_REGEX): Likewise.
* m4/termios.m4: Delete. AM_SYS_POSIX_TERMIOS is now AU_DEFUNed
in m4/obsolete.m4.
* m4/winsz.m4: Delete. AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL is now
AU_DEFUNed in m4/obsolete.m4.
* m4/obsol-gt.m4, m4/obsol-lt.m4, m4/obsolete.m4 : New files.
* m4/Makefile.am (dist_m4data_DATA): Add obsol-gt.m4, obsol-lt.m4,
and obsolete.m4. Remove termios.m4 and winsz.m4.
* aclocal.in (obsolete, obsolete_rx): Remove.
(scan_configure): Don't grep for obsolete macros.
* tests/defs (AUTOUPDATE): Define.
* Makefile.am (maintainer-check): Check for misuses of autoupdate.
* tests/obsolete.test: Rewrite. Exercize the AU_DEFUN macros from
m4/obsolete.m4.
Alexandre Duret-Lutz [Fri, 19 Jul 2002 11:04:14 +0000 (11:04 +0000)]
Fix for PR automake/338:
* automake.in (seen_gettext_external): New variable.
(handle_gettext): Conditionalize the intl/ check on
$seen_gettext_external. Fix grep usage.
(scan_autoconf_traces): Set $seen_gettext_external if
`external' is passed to AM_GNU_GETTEXT.
* tests/gettext.test, tests/gettext2.test: New files.
* tests/Makefile.am (TESTS): Add gettext.test and gettext2.test.
Alexandre Duret-Lutz [Thu, 18 Jul 2002 11:16:40 +0000 (11:16 +0000)]
* m4/header.m4 (_AM_DIRNAME, _AM_STAMP, _AM_CONFIG_HEADER,
_AM_CONFIG_HEADER_INSINUATE): Remove them all. Leave just ...
(AM_CONFIG_HEADER): ... this new definition for compatibility.
* m4/init.m4: Don't call _AM_CONFIG_HEADER_INSINUATE.
(_AC_AM_CONFIG_HEADER_HOOK): New macro.
* tests/confh5.tests: Delete.
* tests/Makefile.am (TESTS): Remove confh5.tests.
Alexandre Duret-Lutz [Tue, 16 Jul 2002 21:51:52 +0000 (21:51 +0000)]
* automake.in (handle_single_transform_list): Typo.
Alexandre Duret-Lutz [Tue, 16 Jul 2002 21:46:59 +0000 (21:46 +0000)]
* lib/Automake/Channels.pm (dup_channel_setup,
drop_channel_setup): New functions.
(@EXPORT): Add them.
* automake.in (generate_makefile): Call dup_channel_setup and
drop_channel_setup.
(process_option_list): Recognize --warnings and -W options.
* automake.texi (Options): Document them.
* tests/pluseq5.test: Check that -Wno-obsolete will disable the
warning.
* tests/warnopts.test: New file.
* tests/Makefile.am (TESTS): Add warnopts.test.
Alexandre Duret-Lutz [Fri, 12 Jul 2002 08:00:57 +0000 (08:00 +0000)]
* automake.in: Register warning channel `gnu'.
(set_strictness): Turn on `gnu' in --gnu and --gnits.
(usage): Mention the `gnu' category.
(%var_is_am): Replace by ...
(%var_owner): ... this, which uses ...
(VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE): ... these new constants.
Adjust all uses of %var_is_am.
(handle_languages): Warn about user variables being overriden.
(require_variables): Also check %configure_vars for the existence
of a required variable.
* automake.texi (Invoking Automake): Document -Wgnu.
* tests/yacc2.test, tests/yacc3.test: Use -Wno-gnu when
we test YFLAGS.
* tests/gnuwarn.test: New file.
* tests/Makefile.am (TESTS): Add gnuwarn.test.
Alexandre Duret-Lutz [Thu, 11 Jul 2002 20:10:39 +0000 (20:10 +0000)]
Fix for PR automake/337:
* automake.in: Redefine the `flags' attribute of each language
as a list. List CPPFLAGS in `flags' when it is used.
(register_language): Set the default value of 'flags'.
(handle_single_transform_list): Adjust to treat `flags' as a list.
(handle_languages): Likewise. Don't bother defining the
configure variable for `c', this is always done since we trace
configure.ac.
* automake.texi (etags): Use per-executable _CPPFLAGS.
(Program and Library Variables): Mention maude_CPPFLAGS.
(Program variables): Likewise.
* tests/specflags8.test: Use _CPPFLAGS instead of _CFLAGS.
* tests/specflags9.test: New file.
* tests/Makefile.am (TESTS): Add specflag9.test.
Alexandre Duret-Lutz [Wed, 10 Jul 2002 21:21:27 +0000 (21:21 +0000)]
* automake.texi: Use `variable' instead of `macro' everywhere it
designates a Makefile variable.
(Texinfo): `VERSION', `UPDATED', `EDITION', and `UPDATED-MONTH' are
`flags', not `macros'. `Macro' means something else in Texinfo.
Also show how to use these flags.
* automake.in (file_contents_internal): s/macro/variable/ in
error message.
Alexandre Duret-Lutz [Wed, 10 Jul 2002 20:30:24 +0000 (20:30 +0000)]
* automake.in (parse_arguments): Call Getopt twice: once to catch
--help or --verbose, and once to process the other arguments.
(usage, verbose): Always exit 0, ignoring $exit_code (which anyway
should always be 0 because of the change to parse_arguments).
* tests/Makefile.am (TESTS): Add getopt.test.
* tests/getopt.test: New file.
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'.
Tom Tromey [Wed, 10 Jul 2002 05:33:31 +0000 (05:33 +0000)]
* lib/am/depend2.am: Reworked syntax to avoid parsing problem.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
Alexandre Duret-Lutz [Thu, 4 Jul 2002 15:55:22 +0000 (15:55 +0000)]
* tests/asm.test: Erase Autom4te's cache between each test.
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.
Alexandre Duret-Lutz [Tue, 2 Jul 2002 09:27:00 +0000 (09:27 +0000)]
* automake.in (create, keyed_aclocal_warning): Delete, unused.
Alexandre Duret-Lutz [Mon, 1 Jul 2002 16:17:36 +0000 (16:17 +0000)]
* automake.in (ac_macro_for_var): Add YACC.
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.
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.
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.
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.
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.
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.
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.
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.
Alexandre Duret-Lutz [Wed, 26 Jun 2002 08:37:48 +0000 (08:37 +0000)]
* automake.texi: s/.../@dots{}/.
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.
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.
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.
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.
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.
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.
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.
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++.
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'.
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.
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.
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.
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.
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.
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.
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'.
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.
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.
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.
Alexandre Duret-Lutz [Tue, 11 Jun 2002 09:12:43 +0000 (09:12 +0000)]
* automake.texi (Tests): Document site.exp. Update DejaGnu's url.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 19:15:00 +0000 (19:15 +0000)]
typo
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.
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.
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.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 17:37:46 +0000 (17:37 +0000)]
* tests/sinclude.test: Check for m4_include too.
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.
Alexandre Duret-Lutz [Mon, 10 Jun 2002 10:08:14 +0000 (10:08 +0000)]
* automake.texi (API versioning): Typo.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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
Paul Eggert [Thu, 30 May 2002 06:05:05 +0000 (06:05 +0000)]
fgrep -> $FGREP, egrep -> $EGREP
Paul Eggert [Thu, 30 May 2002 06:04:09 +0000 (06:04 +0000)]
Set FGREP and EGREP.
Paul Eggert [Thu, 30 May 2002 05:55:50 +0000 (05:55 +0000)]
(AM_MAKE_INCLUDE): fgrep -> grep
Paul Eggert [Thu, 30 May 2002 05:54:55 +0000 (05:54 +0000)]
(install-info-am, uninstall-info-am): fgrep -> grep
Paul Eggert [Thu, 30 May 2002 05:54:05 +0000 (05:54 +0000)]
(distdir): fgrep -> grep -F.
Use $(), not ${}, for Make variables.
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 '$${'".
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.
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'.
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.
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.
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.
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.
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.
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.
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.
Alexandre Duret-Lutz [Tue, 7 May 2002 07:06:36 +0000 (07:06 +0000)]
* TODO: Undust.
Alexandre Duret-Lutz [Mon, 6 May 2002 19:29:37 +0000 (19:29 +0000)]
* Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
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.