Currently, only original source files are deansified.  Derived C
files, such as BUILT_SOURCES, are not deansified, even though the
corresponding _.o is expected.  stat_.o is required, but the Makefile
doesn't know how to create it.

Is is safe to deansify all C source files, whether derived or not?

I suggest the change below in 

"diff -u *.orig *" in /home/kevin/src/automake/

--- automake.in.orig    Mon Apr 10 03:16:07 2000
+++ automake.in Sat Apr  8 02:01:34 2000
@@ -4961,7 +4961,7 @@
     local ($file);
     foreach $file (keys %libsources)
     {
-       if ($file =~ /^(.*)\.[cly]$/ && -f "$relative_dir/$file")
+       if ($file =~ /^(.*)\.[cly]$/)
        {
            $de_ansi_files{$1} = 1;
        }


Kevin Dalley <[EMAIL PROTECTED]> writes:

> I installed a new version of automake from CVS.  I have the following
> lines, among many others, in my Makefile.am:
 > 
> AUTOMAKE_OPTIONS = ansi2knr
> BUILT_SOURCES = lstat.c stat.c
> 
> 
> It used to be that automake would create a Makefile.in which included
> the following lines:
> 
> lstat_.c: lstat.c $(ANSI2KNR)
>       $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f 
>$(srcdir)/lstat.c; then echo $(srcdir)/lstat.c; else echo lstat.c; fi` | sed 's/^# 
>\([0-9]\)/#line \1/' | $(ANSI2KNR) > lstat_.c
> stat_.c: stat.c $(ANSI2KNR)
>       $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f 
>$(srcdir)/stat.c; then echo $(srcdir)/stat.c; else echo stat.c; fi` | sed 's/^# 
>\([0-9]\)/#line \1/' | $(ANSI2KNR) > stat_.c
> 
> 
> 
> However, the latest version of automake doesn't do this any more.
> Similar lines are created for ".c" files in *_SOURCES, so not
> everything is broken.
> 
> 
> -- 
> Kevin Dalley
> [EMAIL PROTECTED]

Reply via email to