automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch] Re: compile not copied? Why?


From: Harald Dunkel
Subject: [Patch] Re: compile not copied? Why?
Date: Sun, 13 Nov 2005 12:00:18 +0100
User-agent: Debian Thunderbird 1.0.7 (X11/20051019)

Hi folks,

Harald Dunkel wrote:
> Hi folks,
> 
> What is the criteria for copying the compile script into
> the source directory tree? I have some *.cc code, it is
> mentioned in my Makefile.am file, configure detects that
> the compile script must be used, too, but Automake doesn't
> provide it.
> 

It seems that the compile script is only copied, if you have
C code only. As soon as you have C++ code in your Makefile.am
(with or without C code), compile is not copied into the
source tree anymore. This breaks support for MSVC.

Below you can find a patch.


Regards

Harri
------------------------------------------------------------------
diff -urN automake-1.9.6.orig/automake.in automake-1.9.6/automake.in
--- automake-1.9.6.orig/automake.in     2005-06-30 23:17:13.000000000 +0200
+++ automake-1.9.6/automake.in  2005-11-07 15:58:49.000000000 +0100
@@ -1138,7 +1138,7 @@
            my $output_flag = $lang->output_flag || '';
            $output_flag = '-o'
              if (! $output_flag
-                 && $lang->name eq 'c'
+                 && ($lang->name eq 'c' || $lang->name eq 'cxx')
                  && option 'subdir-objects');

            # Compute a possible derived extension.
@@ -1599,7 +1599,7 @@
                 $object = $dname . '-' . $object;

                 require_conf_file ("$am_file.am", FOREIGN, 'compile')
-                    if $lang->name eq 'c';
+                    if $lang->name eq 'c' || $lang->name eq 'cxx';

                prog_error ($lang->name . " flags defined without compiler")
                  if ! defined $lang->compile;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]