+2001-05-08 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&define_compiler_variables): Use only $LANG as
+ argument.
+ (&handle_languages): Adjust.
+
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&define_program_variable): Remove.
(variable_dump, variables_dump): Rename as...
(macro_dump, macros_dump): these.
-
2001-05-08 Akim Demaille <akim@epita.fr>
Support `if !COND', `else COND', `end COND'.
* automake.in (&handle_languages): Use the same `%transform' for
both `depend2.am' and `ext-compile.am'.
- Move the definition of `$flag' where it is used, and rename as
- `$flags'.
+ Delay the definition of `$flag' so it is right before the first use,
+ and rename as `$flags'.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Compute `$ltoutarg' and
- `$outarg' independently from dependency code.
+ `$outarg' independently of dependency code.
There is no use looping on a language's possible extensions since
we loop over used extensions.
Therefore, there is no use for a local `%transform'.
2001-05-07 Akim Demaille <akim@epita.fr>
- * automake.in (&depend2): Remove, merged in...
+ * automake.in (&depend2): Remove, merged into...
(&handle_languages): here.
2001-05-07 Akim Demaille <akim@epita.fr>
2001-05-06 Tom Tromey <tromey@redhat.com>
For PR automake/46:
- * tests/Makefile.am (TESTS): Added subdir5.test.
+ * tests/Makefile.am (TESTS): Add subdir5.test.
(XFAIL_TESTS): Likewise.
* tests/subdir5.test: New file.
* tests/subobj6.test (wish_SOURCES): Use $MAKE.
* tests/subobj5.test (wish_SOURCES): Use $MAKE.
- * automake.in (GNITS_VERSION_PATTERN): Document. Added `fork
+ * automake.in (GNITS_VERSION_PATTERN): Document. Add `fork
identifier'.
(handle_options): Handle fork identifier in version number.
Fixes PR automake/154.
For PR automake/160:
- * tests/Makefile.am (TESTS): Added subobj5.test and subobj6.test.
- (XFAIL_TESTS): Added subobj6.test.
+ * tests/Makefile.am (TESTS): Add subobj5.test and subobj6.test.
+ (XFAIL_TESTS): Add subobj6.test.
* tests/subobj6.test: New file.
* automake.texi (Uniform): Mention dist_, nodist_, and nobase_.
* distdir.am (distdir): Make subdirectory for each file.
Fixes test subobj5.test.
- * tests/Makefile.am (TESTS): Added new file.
+ * tests/Makefile.am (TESTS): Add new file.
(XFAIL_TESTS): Likewise.
* tests/texinfo10.test: New file.
The variables you define are owned by Automake.
(&generate_makefile): PRE_INSTALL and co must not be defined *by
the user*.
- (&variable_defined): Now independent from the owner.
+ (&variable_defined): Now independent of the owner.
(&variable_output, &variable_pretty_output): Adjust to %var_type.
2001-04-09 Akim Demaille <akim@epita.fr>
# People linking Java code to Fortran code deserve pain.
$needs_c ||= ! $lang->pure;
- if ($lang->compile)
- {
- &define_compiler_variable ($lang->compiler,
- $ltcompile, $lang->compile);
- }
+ define_compiler_variable ($lang)
+ if ($lang->compile);
# The compiler's flag must be a configure variable.
- if (defined $lang->flags)
- {
- &define_configure_variable ($lang->flags);
- }
+ define_configure_variable ($lang->flags)
+ if (defined $lang->flags);
# Call the finisher.
$lang->finish;
if (! defined $done{$languages{'c'}})
{
&define_configure_variable ($languages{'c'}->flags);
- &define_compiler_variable ($languages{'c'}->compiler,
- $ltcompile,
- $languages{'c'}->compile);
+ &define_compiler_variable ($languages{'c'});
}
&define_variable ('CCLD', '$(CC)');
&define_variable ('LINK',
my ($ltcompile, $ltlink) = ('', '');
if ($seen_libtool)
{
- &define_configure_variable ("LIBTOOL");
$ltcompile = '$(LIBTOOL) --mode=compile ';
$ltlink = '$(LIBTOOL) --mode=link ';
}
&define_variable ($var, $value);
}
+
+# define_compiler_variable ($LANG)
+# --------------------------------
# Define a compiler variable. We also handle defining the `LT'
# version of the command when using libtool.
-sub define_compiler_variable
+sub define_compiler_variable ($)
{
- my ($var, $ltcompile, $value) = @_;
- my $name = $var;
- &define_variable ($name, $value);
- &define_variable ('LT' . $name, $ltcompile . $value)
- if $seen_libtool;
+ my ($lang) = @_;
+
+ my ($var, $value) = ($lang->compiler, $lang->compile);
+ &define_variable ($var, $value);
+ &define_variable ("LT$var", "$(LIBTOOL) --mode=compile $value")
+ if $seen_libtool;
}
################################################################