[Patch] Re: compile not copied? Why?

2005-11-13 Thread Harald Dunkel
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.0 +0200
+++ automake-1.9.6/automake.in  2005-11-07 15:58:49.0 +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;




Re: [Patch] Re: compile not copied? Why?

2005-11-13 Thread Ralf Wildenhues
Hi Harald,

* Harald Dunkel wrote on Sun, Nov 13, 2005 at 12:00:18PM CET:
 Harald Dunkel wrote:
  
  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.

Please consider this thread:
http://lists.gnu.org/archive/html/libtool/2005-10/msg00069.html

Cheers,
Ralf




Re: [Patch] Re: compile not copied? Why?

2005-11-13 Thread Harald Dunkel
Ralf Wildenhues wrote:
 Hi Harald,
 
 
 Please consider this thread:
 http://lists.gnu.org/archive/html/libtool/2005-10/msg00069.html
 

How is this thread related to copying a missing script? Please
note that C support is broken, too, as soon as there is some
C++ code in your Makefile.am.


Regards

Harri




What is the best way to localize files

2005-11-13 Thread Richard Bos
What is the best way to use msgfmt in a Makefile.am for localization of  
files?  Back in 2003 there was a discussion about introducing something like:

  locale_POTS = foo.pot
  foo_pot_SOURCES = a.c a.h b.c b.h ...
  foo_pot_LANGFILE = LINGUAS
  foo_pot_XGETTEXTFLAGS = --keyword=_ --keyword=N_

Has this happened, is this available?

At the moment the Makefile.am has the following code:

.po.mo:
$(MSGFMT) -o $@ $

PHP_LOCALE_DE_PO = php/admin/locale/de/LC_MESSAGES/messages.po
PHP_LOCALE_DE_MO = php/admin/locale/de/LC_MESSAGES/messages.mo

localedir = $(phpkolabdir)/locale

phplocalededir = $(localedir)/de/LC_MESSAGES
phplocalede_DATA = $(PHP_LOCALE_DE_MO)

That is repeated for several languages.  If I may ask, how to improve 
this??  The current problem is that 'make distcheck' fails with the following 
error:
msgfmt -o 
php/admin/locale/de/LC_MESSAGES/messages.mo 
../../php/admin/locale/de/LC_MESSAGES/messages.po
msgfmt: error while opening php/admin/locale/de/LC_MESSAGES/messages.mo for 
writing: unknown directory of file.

This is due to the output directory not being created.

-- 
Thanks in advance,

Richard Bos
Without a home the journey is endless