+Mon Dec 1 13:52:39 1997 Tom Tromey <tromey@cygnus.com>
+
+ Fixes for test objc.test:
+ * automake.in (initialize_per_input): New global seen_any_source.
+ (handle_yacc_lex_cxx): Use seen_any_source to decide when to
+ define LINK, et al.
+ (handle_single_transform_list): Set seen_any_source.
+ (handle_lib_objects_cond): Likewise.
+
Wed Nov 26 13:41:57 1997 Tom Tromey <tromey@cygnus.com>
* Released 1.2d.
for augmenting autoconf. It is intended that other package authors
will write m4 macros which can be automatically used by aclocal.
-The mailing list automake@gnu.ai.mit.edu is for discussion of
+The mailing list automake@gnu.org is for discussion of
Automake, Autoconf, and other configuration/portability tools (e.g.,
-libtool). Write to automake-request@gnu.ai.mit.edu if you want to
+libtool). Write to automake-request@gnu.org if you want to
join.
-Mail suggestions and bug reports to automake-bugs@gnu.ai.mit.edu.
+Mail suggestions and bug reports to automake-bugs@gnu.org.
#
# Last, handle some C cleanup.
#
- if ($seen_c_source)
+ if ($seen_any_source)
{
&define_configure_variable ('CFLAGS');
&define_variable ('COMPILE',
'$(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)')
if ($seen_libtool);
&define_variable ('LINK', $ltlink . '$(CC) $(CFLAGS) $(LDFLAGS) -o $@');
+ }
- if (! defined $configure_vars{'CC'})
- {
- &am_line_error ($seen_c_source,
- "C source seen but \`CC' not defined in \`configure.in'");
- }
+ if ($seen_c_source && ! defined $configure_vars{'CC'})
+ {
+ &am_line_error ($seen_c_source,
+ "C source seen but \`CC' not defined in \`configure.in'");
}
}
next;
}
+ $seen_any_source = 1;
push (@result, $_);
# Transform .o or $o file into .P file (for automatic
if ($iter =~ /\.[cly]$/)
{
$seen_c_source = $var;
+ $seen_any_source = 1;
}
if ($iter =~ /\.h$/)
$dep_files{'.deps/alloca.P'} = 1;
&require_file_with_line ($var, $FOREIGN, 'alloca.c');
$seen_c_source = $var;
+ $seen_any_source = 1;
}
}
# mentioned the sources.
$seen_c_source = 0;
+ # TRUE if we've seen any sources at all.
+ $seen_any_source = 0;
+
# This is a list of all targets to run during "make dist".
@dist_targets = ();