2001-04-09 Akim Demaille <akim@epita.fr>
* comp-vars.am: Remove, merged into...
* compile.am: here.
* automake.in (&get_object_extension): Adjust.
2001-04-09 Akim Demaille <akim@epita.fr>
* remake.am: Merge into...
* configure.am: ... here.
* automake.in (&handle_configure): Adjust.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&output_lex_build_rule): Output this...
* lex.am: New file.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&condition_negate): New.
(&variable_conditions_permutations): Use it.
(&read_am_file, &file_contents): Use it on `else' clauses to
support `if FALSE'.
(&output_yacc_build_rule): Output this...
* yacc.am: New file.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
(&handle_dist): Don't.
(&handle_clean): Don't handle config.status here, let...
* clean.am: ... do it.
* distdir.am: Adjust.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in: Use strict vars and subs.
Declare `%require_file_found'.
(&handle_source_transform, &make_paragraphs): Declare my variables.
2001-04-09 Akim Demaille <akim@epita.fr>
* data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
* progs.am, python.am: Use if/endif instead of ?INSTALL?.
* java.am (_am_installdirs): Be sure to set it.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&make_condition): Return '#' when FALSE.
(&conditional_string): Return FALSE, not '#' in the corresponding
cases.
(&file_contents_internal): Adjust.
(&check_variable_defined_unconditional): Dump the guilty variable.
2001-04-09 Akim Demaille <akim@epita.fr>
* distdir.am: Use and abuse of if/endif.
* scripts.am: Using if/endif with variables is fine.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&make_paragraphs): Extract from &file_contents.
Make it more robust than the previous RE based scheme.
(&file_contents): Use it.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&make_paragraphs): Extract from &file_contents.
Make it more robust than the previous RE based scheme.
(&file_contents): Use it.
2001-04-09 Akim Demaille <akim@epita.fr>
* tests/yacc2.test: Don't define several times a variable, as
automake complains.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&handle_source_transform): Fix pr72: don't define
$linker if there are no @files.
2001-04-09 Akim Demaille <akim@epita.fr>
Avoid reading twice header-vars.am as now macro_define
complains.
* automake.in (&define_standard_variables): Don't output the
variables.
(&read_main_am_file): Output first user variables, then Automake
variables.
Don't call twice &define_standard_variables.
Save variable comments in $am_vars.
(&variable_output): New.
(&file_contents_internal): New.
Save variable comments in $am_vars.
(&file_contents): Use it.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define): The user is allowed to override
a value if it was set by Automake, or if it was found in AC_SUBST.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&handle_source_transform): Better locality of the
variables.
Use `next' to skip nonexistent variables.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&variable_dump): If a variable is undefined, say
it.
(&check_ambiguous_conditional): Give finer error messages.
(¯o_define): Check that a `+=' variable is not set with `='.
Check for ambiguous definitions each time you _set_ (even with `+=')
a variable.
(&read_main_am_file): Perform a deep copy of %conditional.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&variable_defined): Some callers, e.g.,
&am_primary_prefixes, really want to know if the variable is
defined for any condition, not `TRUE' by default.
(&am_primary_prefixes): Give a more precise error message.
2001-04-09 Akim Demaille <akim@epita.fr>
(&variable_conditions): Don't include `FALSE' in the result.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditions_reduce): FALSE is absorbent.
(&variable_conditions): Don't include `FALSE' in the result.
2001-04-09 Akim Demaille <akim@epita.fr>
* tests/defs, tests/depend3.test: Remove useless code.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&handle_source_transform): Use
&variable_conditions, don't read $conditional{$var}.
(&variable_conditions_sub): When the call is the top level call,
generate all the permutations of the conditions.
2001-04-09 Akim Demaille <akim@epita.fr>
* depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
that it does not get noticed twice by automake, which now
complains for multiple definitions.
* tests/vartar.test: s/INSTALL/install/g, automake now complains
because we defined INSTALL.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&generate_makefile) Use macro_define to define
SOURCES and OBJECTS.
(&variable_defined): Don't check for $conditional{VAR}{COND} as
this would make perl create $condition{VAR}, which we don't want.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&variable_defined, &define_pretty_variable):
Simplify code which used to handle the cases where not all
variables were in %conditional.
(&define_variable): Use &define_pretty_variable.
(&variable_conditions_sub, &variable_value_as_list_worker)
(&variable_value_as_list, &rule_define): Simplify syntax.
(&read_main_am_file): Dump the guilty predefined variables.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditions_sub)
(&variable_value_as_list_worker): Remove dead code which used to
handle the cases where not all variables were in %conditional.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&handle_source_transform, &read_main_am_file):
Simplify loops which were split in two parts, conditional vs
unconditional variables.
2001-04-09 Akim Demaille <akim@epita.fr>
Handle unconditional values of variables as conditioned by
`TRUE'.
* automake.in (%contents): Remove.
(&generate_makefile, &handle_ltlibraries, ¯o_define)
(&read_am_file, &variable_defined, &variable_conditions_sub)
(&variable_value, &variable_value_as_list_worker)
(&variable_value_as_list, &define_pretty_variable)
(&read_main_am_file): Use
$conditional, not %contents.
(&variable_conditions_permutations): Don't return TRUE and FALSE.
(&variable_conditionally_defined): New.
(&handle_dist): Use it.
(&check_ambiguous_conditional): When multiply defined, specify
under which condition.
(¯o_define): Use it.
(&variable_delete): New.
(&read_am_file): Use it.
(&am_install_var): Simplify, as all the variables are in
%conditional now.
2001-04-07 Tom Tromey <tromey@redhat.com>
* tests/Makefile.am (XFAIL_TESTS): Added man.test.
(TESTS): Likewise.
* tests/man.test: New file.
2001-04-07 Raja R Harinath <harinath@cs.umn.edu>
* depcomp (gcc3): Invert test condition.
2001-04-07 Tom Tromey <tromey@redhat.com>
* depcomp (gcc3, gcc): Don't assume $? will be set in `if'
statement. Report from Larry Jones.
2001-04-07 Raja R Harinath <harinath@cs.umn.edu>
* depcomp (sgi): Fix sed expression. Report from Robert Boehne.
2001-04-01 Tom Tromey <tromey@redhat.com>
* java.am (.PHONY clean-am): Removed trailing ":".
From Per Bothner. Fixes PR automake/139.
2001-03-28 Akim Demaille <akim@epita.fr>
* program.am: Fix a stupid typo: now *all* (not none) the programs
use `$(EXEEXT)'.
Reported by Robert Boehne.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&read_am_file, &file_contents): Avoid name clashes
on $cond.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditionally_defined): Rename as...
(&check_variable_unconditionally_defined): this.
(&variable_dump): Fix the output.
(&variable_defined, ¯o_define): Since conditions are
canonicalized, don't use a loop to look for a condition: read the
hash.
(¯o_define, &rule_define, &read_am_file, &file_contents):
Rename $cond_string as $cond.
* distdir.am (PACKAGE, VERSION): Remove; since they are already
discovered via AC_SUBST, they now trigger a `defined twice' error.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&handle_footer, &handle_installdirs)
(&read_main_am_file): Don't read %contents directly, use
&variable_value.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&read_am_file): Define the variables in a single
shot.
Factor the $saw_bk code.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&read_am_file): Keep $cond_string up to date.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&define_variable): Use ¯o_define.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define): Don't lose the location if we
redefine a variable.
Don't push all the variables in @var_list, let...
(&read_am_file, &file_contents): ... do it.
(&define_pretty_variable): Use macro_define.
(&am_install_var): Delete the value of variables being redefined
to pacify ¯o_define which checks that variables are not
doubly defined.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&conditional_dump): Rename as...
(&variables_dump): this. Use...
(&variable_dump): this new sub.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&file_contents): Maintain $cond_string sync with
@cond_stack.
Output rules only if not under `FALSE'.
Define variables under $cond_string.
* scripts.am: For the time being if/endif does not work properly
with macros.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (IF_PATTERN): Unobfuscate the parens.
(ENDIF_PATTERN): Allow a condition to be specified.
(&file_contents): Use a @cond_stack.
(&transform): At least for an easy transition, also transform
%?FOO% and %!FOO%, as suggested by Lars.
* scripts.am: First test bed for static if/endif use.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&file_contents): Use rule_define.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define): Don't rely on $1.
Initialize the variable.
Set its Automakism only if not defined or if given to the user.
When concatenating values, insert a separator only if the value
was not empty.
(&read_am_file): When dumping the @var_list, skip Automake
variables.
(&file_contents): Use macro_define.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&rule_define): Extract from...
(&read_am_file): here.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define, &read_am_file): More work for the
former from the latter. Reorganize the latter.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define): Extract from...
(&read_am_file): here.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (%am_var_defs): Replace with...
(%var_is_am): this.
(&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
(&file_contents, am_primary_&prefixes): Adjust.
(&variable_defined, &define_variable): The actual semantics is
`user defined'.
(&read_main_am_file): Assert the var is user defined when
outputting @var_list.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (read_am_file): TRUE and FALSE are predefined
conditionals.
(&by_condition): Adjust.
(&conditional_string): Recognize `TRUE' and `FALSE'.
(&make_condition): Use it.
* m4/cond.m4: Reject TRUE and FALSE as conditionals.
* automake.texi (Conditionals): Adjust.
* tests/cond9.test: s/FALSE/WRONG/.
2001-03-12 Pavel Roskin <proski@gnu.org>
* tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
now.
2001-03-12 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditions_permutations): Separate the
conditions.
* tests/cond3.test: Improve the sed expression.
2001-03-09 Pavel Roskin <proski@gnu.org>
* Makefile.am (maintainer-check): Scan all *.am files and tests
for invocations of `rm' without `-f'.
* tests/mclean.test: Adjusted to prevent triggering the above
test.
2001-03-09 Tom Tromey <tromey@redhat.com>
* automake.in (scan_one_autoconf_file): Fixed comment to avoid
maintainer-check failure.
2001-03-09 Akim Demaille <akim@epita.fr>
* tests/cond3.test: Strengthen.
2001-03-09 Akim Demaille <akim@epita.fr>
* automake.in (&conditional_string): Produce a unique string
characterizing a condition stack.
(&conditional_same): Remove, comparing two strings is now enough.
(&variable_defined): Adjust.
(&read_am_file): Use conditional_string.
2001-03-08 Akim Demaille <akim@epita.fr>
* automake.in: Use -w.
Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
(&parse_arguments): Support --Werror and --Wno-error as a
temporary hack until --warning/-W is properly implemented.
(&handle_single_transform_list): Prototype.
Be sure to define $directory.
Use `exists' instead of testing the value of a maybe undefined
hash value.
(&add_depend2, &handle_configure, &handle_footer, &file_contents)
(&handle_factored_dependencies): Use defined values.
(&scan_one_autoconf_file): Save $_.
* tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
Run automake with --Wno-error.
2001-03-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_all): Use an array instead of a scalar for
local_headers.
Get rid of all-redirect: let `all' be that target.
2001-03-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_merge_targets): Ventilate its non `all'
related content into...
(&generate_makefile): here.
(&handle_merge_targets): Rename as...
(&handle_all): this.
Remove a useless `if': `@all' is obviously not empty, since it
contains at least the `basename ($makefile)' which has just been
unshifted.
2001-03-07 Akim Demaille <akim@epita.fr>
* automake.in, aclocal.in: Backquote is inert in double quotes.
2001-03-06 Akim Demaille <akim@epita.fr>
* Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
into `grep -v ...'.
2001-03-06 Pavel Roskin <proski@gnu.org>
* java.am: Use `rm -f' instead of `rm'.
2001-03-06 Akim Demaille <akim@epita.fr>
* automake.in (&push_dist_common): Simplify.
2001-03-06 Jens Kr