Re: [PATCH 4/4] New automake command line option `--silent-rules'.

2009-03-09 Thread Raja R Harinath
Hi, Jan Engelhardt jeng...@medozas.de writes: On Monday 2009-03-09 15:57, Ralf Corsepius wrote: For this patch, I'm unsure if we should even add it at all. FWIW: I am opposed to it. All this silencing stuff does is to add further potential sources of errors. Which ones,

Re: blank line following trailing backslash

2009-01-26 Thread Raja R Harinath
Hi, Andreas roe...@users.sf.net writes: I just had an ingenious idea to limit conflicts in versioning systems. When you specify a list of files for a rule you put every file in a line like this. fileA.c \ fileB.c \ fileC.c One slightly ugly-looking approach I've seen is

Re: automake less verbose (iter 3)

2008-12-30 Thread Raja R Harinath
Hi, Jan Engelhardt jeng...@medozas.de writes: On Monday 2008-12-22 21:36, Ralf Wildenhues wrote: On Monday 2008-12-15 21:19, William Pursell wrote: The make info pages mention that $? expands to “all the prerequisites that are newer than the target”, and that sounds like there could be

Re: best practice for injecting include dir across a project

2008-07-24 Thread Raja R Harinath
Hi, Monty Taylor [EMAIL PROTECTED] writes: I've got a project that has 24 Makefile.am files. At the top of all of them at the moment, I've got: AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include [snip] PS. Yes...I know the -I$(top_builddir)/include is ridiculous... I inherited

Re: [RFD] Support Mono/.NET

2007-06-30 Thread Raja R Harinath
Hi, Ralf Wildenhues Ralf.Wildenhues at gmx.de writes: * Raja R Harinath wrote on Thu, Jun 28, 2007 at 03:13:15PM CEST: I'm attaching a series of patches adding support for Mono/.NET/ECMA-335 (also called the CLI, common language infrastructure). I'm working on documenting

[RFD] Support Mono/.NET

2007-06-28 Thread Raja R Harinath
Hi, I'm attaching a series of patches adding support for Mono/.NET/ECMA-335 (also called the CLI, common language infrastructure). I'm working on documenting the support, but the testcases show example usage. - Hari

[PATCH 1/4] Add basic support for Mono/.NET

2007-06-28 Thread Raja R Harinath
/ChangeLog @@ -1,3 +1,14 @@ +2007-06-27 Raja R Harinath [EMAIL PROTECTED] + + Add basic support for Mono/.NET + * automake.in (register_language): Add 'cli'. + (handle_cli, handle_cli_assembly, lang_cli_rewrite): New. + (generate_makefile): Call 'handle_cli'. + * lib/am

[PATCH 3/4] Add support for resources

2007-06-28 Thread Raja R Harinath
/cli3.test | 46 + 5 files changed, 155 insertions(+), 2 deletions(-) create mode 100755 tests/cli3.test diff --git a/ChangeLog b/ChangeLog index ec49428..2e75139 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2007-06-27 Raja R Harinath [EMAIL PROTECTED

[PATCH 4/4] Add a convenience autoconf macro (AM_PROG_CLI) to help with matters.

2007-06-28 Thread Raja R Harinath
2e75139..07e7edb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2007-06-28 Raja R Harinath [EMAIL PROTECTED] + + Add a convenience autoconf macro (AM_PROG_CLI) to help with matters. + * automake.in (register_language): Add Nemerle (.n) and Boo (.boo) + as languages

Automake support for Mono

2007-06-27 Thread Raja R Harinath
Hi, I got a chance to work on automake after 4 years :-) As part of the Novell HackWeek, I'm working on a set of patches to add native support for Mono/.NET assemblies to automake. I have a promising start, and would like to get some comments. I'll try to post the in-work patches onto the

Re: superfluous test in AC_CHECK_HEADERS?

2004-08-17 Thread Raja R Harinath
$CFLAGS and $CPPFLAGS, while the second only uses $CPPFLAGS. If you have some -I and -D in your $CFLAGS, the results will differ. (I'm not justifying the double check. I'm just saying that the second is not entirely redundant :-) - Hari -- Raja R Harinath -- [EMAIL

Re: how to change the behaviour of make check?

2003-09-17 Thread Raja R Harinath
That seems a roundabout way to do it. Just copy the check-TESTS rule into your Makefile.am file, and automake won't generate its internal rule. You can customize your local copy of check-TESTS to your heart's content. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: delete aclocal.m4? keep generated files on cvs server? enforcespecefic automake/conf version?

2003-07-30 Thread Raja R Harinath
Hi, Andrew Suffield [EMAIL PROTECTED] writes: On Mon, Jul 28, 2003 at 05:55:15PM -0500, Raja R Harinath wrote: Andrew Suffield [EMAIL PROTECTED] writes: [snip autoreconf/autopoint/AM_GNU_GETTEXT([external]) dicussion] All that does is stop including a complete copy of libintl in your

Re: delete aclocal.m4? keep generated files on cvs server? enforcespecefic automake/conf version?

2003-07-28 Thread Raja R Harinath
that only when you ask for 'gettext'. On most modern machines, esp. on Debian, you should replace AM_GNU_GETTEXT with AM_GNU_GETTEXT_VERSION([0.12.1]) # or appropriate version AM_GNU_GETTEXT([external]) and thinks will be peachier. - Hari -- Raja R Harinath

Re: delete aclocal.m4? keep generated files on cvs server? enforcespecefic automake/conf version?

2003-07-28 Thread Raja R Harinath
Andrew Suffield [EMAIL PROTECTED] writes: On Mon, Jul 28, 2003 at 05:33:43PM -0500, Raja R Harinath wrote: Andrew Suffield [EMAIL PROTECTED] writes: autoreconf has a habit of doing silly things like running autopoint, which then cheerfully adds a bunch of gunk to the source tree which

Re: Filenames containing blanks

2003-07-23 Thread Raja R Harinath
with spaces in GNUmakefile.am. In that case, the generated rules have to be space-clean. I think it's worthwhile to consider Ralf's patch after he addresses some of my comments. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: 2 questions about libraries

2003-06-17 Thread Raja R Harinath
\ $(top_srcdir)/src/lib/libLib.a I think you mean $(top_builddir). $(top_srcdir) is used to refers to source files. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: Problems getting dependencies compiled before executable....

2003-06-17 Thread Raja R Harinath
figure out that a library is part of link line, for example when the list of libraries is AC_SUBSTed in. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: How hardcode different default prefix? Hack Makefile.in bestway? use autoconf macro?

2003-06-11 Thread Raja R Harinath
' in the autoconf documentation. The answer's in there. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: Removing dependencies

2003-04-04 Thread Raja R Harinath
CHANGES.html make and have CHANGES.html recreated. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: Removing dependencies

2003-04-04 Thread Raja R Harinath
Hi, Raja R Harinath [EMAIL PROTECTED] writes: [snip] $(html_DATA): .html-stamp if test -f $@; then :; else rm -f $; done That should read: if test -f $@; then :; else rm -f $; $(MAKE) .html-stamp; done - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: Removing dependencies

2003-04-04 Thread Raja R Harinath
Hi, Bill Moseley [EMAIL PROTECTED] writes: On Fri, 4 Apr 2003, Raja R Harinath wrote: Hi, Raja R Harinath [EMAIL PROTECTED] writes: [snip] $(html_DATA): .html-stamp if test -f $@; then :; else rm -f $; done That should read: if test -f $@; then :; else rm -f $; $(MAKE

Re: $srcdir

2003-03-05 Thread Raja R Harinath
scripts are listed in check_TESTS. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: Quick question on optional builds with automake

2002-12-06 Thread Raja R Harinath
the right thing. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: depcomp for texinfo + automake in guile

2002-08-14 Thread Raja R Harinath
)/bar.idl.Pcc It can just add these files to the DEP_FILES variable, and have the 'include' lines automatically added. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: perl path patch

2002-06-26 Thread Raja R Harinath
$# in 0) exec @PERL@ -S $0;; *) exec @PERL@ -S $0 $@;; esac' -if 0; - This is to re-execute the script with Perl in case somehow a Bourne shell started executing this script. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: automake warning using lib_LTLIBRARIES

2002-01-24 Thread Raja R Harinath
about the EXTRA_LTLIBRARIES line. You don't need that line, since automake is supposed to figure it out itself. I'm not sure whether it's a bug or not. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our

Re: automake warning using lib_LTLIBRARIES

2002-01-24 Thread Raja R Harinath
Raja R Harinath [EMAIL PROTECTED] writes: Roger Leigh [EMAIL PROTECTED] writes: I'm getting this warning from automake: roger@whinlatter:~/gimp-print/newbuild$ automake automake: both `configure.ac' and `configure.in' present: ignoring `configure.in' automake: src/main/Makefile.am

Re: what is this shell call trying to solve?

2002-01-22 Thread Raja R Harinath
implementations. If you look at the Makefile, you'll see that it is checking to see whether 'make' said that the source file was in $(srcdir), and if not, the 'echo' supplies the $(srcdir). - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions

Re: what is this shell call trying to solve?

2002-01-22 Thread Raja R Harinath
Hi, Tom Tromey [EMAIL PROTECTED] writes: Hari == Raja R Harinath [EMAIL PROTECTED] writes: Hari That code is there support non-srcdir builds in the face of Hari 'make's with broken VPATH implementations. If you look at the Hari Makefile, you'll see that it is checking to see whether 'make

Re: Recreate depfiles when regenerating Makefiles

2002-01-06 Thread Raja R Harinath
Hi, Tom Tromey [EMAIL PROTECTED] writes: Hari == Raja R Harinath [EMAIL PROTECTED] writes: Hari Akim once suggested adding a facility to hook commands to files Hari listed in AC_CONFIG_FILES. The problem with this idea is that the information about which files is known when automake

Recreate depfiles when regenerating Makefiles

2002-01-01 Thread Raja R Harinath
the above command is that it is safe to invoke the 'depfiles' CONFIG_COMMAND only in some cases, and at the time 'automake' emits the Makefile regeneration code, it doesn't know if it's safe yet. So, here goes: From Raja R Harinath [EMAIL PROTECTED] * automake.in (handle_languages): Emit

Re: setting additional libtool runtime variables

2001-10-15 Thread Raja R Harinath
' wrapper scripts are in the 'tests' directory. You can use that approach in other places too. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: several automake questions

2001-10-12 Thread Raja R Harinath
= $(libexecdir)/cgi-bin cgibinexec_PROGRAMS = mumble so that things work as expected with 'make install-exec'. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing

Re: AM_CONDITIONAL

2001-09-26 Thread Raja R Harinath
where you ran 'make dist' or 'make distcheck'. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: Automake 1.5 - depcomp not added to DIST_COMMON

2001-09-22 Thread Raja R Harinath
); + } } +++$automake_has_run; } +while ($automake_needs_to_reprocess_all_files); This doesn't look like it'll work with, say automake --add-missing src/Makefile This won't add 'depcomp' to DIST_COMMON in the top Makefile.in. - Hari -- Raja R Harinath -- [EMAIL

Re: AM_CONDITIONAL

2001-09-21 Thread Raja R Harinath
by the 'configure' scripts, even if the build will not enter those directories. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: System configuration during install

2001-07-05 Thread Raja R Harinath
in a 'setup-boot' target to do this, and ask people to explicitly invoke that rule to integrate your program into the boot setup. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when

Re: DEPDIR not set by current CVS Automake

2001-07-03 Thread Raja R Harinath
? Is AM_SET_DEPDIR properly invoked in init.m4? - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: Supporting include in Makefiles

2001-06-28 Thread Raja R Harinath
definitely not intended as a generic mechanism to support Makefile includes. After all, automake already has it's own support for including makefile fragments -- and that mechanism is already portable to 'make's that don't support any form of 'include's. - Hari -- Raja R Harinath

Re: sub conditionals_true_when (@@) [PATCH]

2001-06-14 Thread Raja R Harinath
], [$vcond]); This would then be, if ! conditionals_true_when(@parent_conds, $vcond) - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: The %.o: %.cc rule

2001-06-05 Thread Raja R Harinath
Tom Tromey [EMAIL PROTECTED] writes: Hair == Raja R Harinath [EMAIL PROTECTED] writes: Clark test_SOURCES = d1/s1.cc d2/s2.cc Hair Try using Hair AUTOMAKE_OPTIONS = subdir-objects subdir-objects will cause Makefile to build d1/s1.o and d2/s2.o. Without it, the above test_SOURCES

[PATCH] Make ASSIGNMENT_PATTERN less greedy

2001-05-12 Thread Raja R Harinath
Hi, The recently added ASSIGNMENT_PATTERN is a little too greedy. Given FOO=-DBAR=baz it incorrectly matches the macro name to be 'FOO=-DBAR' rather than just 'FOO'. Here's an obvious fix, and a possible testcase. from Raja R Harinath [EMAIL PROTECTED] * automake.in

Re: Dependency to update Makefile

2001-04-23 Thread Raja R Harinath
in BUILT_SOURCES or not. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: SGI mode depcomp breaks when '.' appears in source filenames twice

2001-04-06 Thread Raja R Harinath
Thomas Dickey [EMAIL PROTECTED] writes: On Thu, Apr 05, 2001 at 10:32:02PM -0500, Raja R Harinath wrote: Well -- the whole idea is to remove the rule targets. I know of only one use of multiple colons on a line -- in GNU make. Even there, everything before a ':' is a rule target. My

Re: CVS autoconf + CVS automake = autoconf doesn't know its version

2001-04-06 Thread Raja R Harinath
"Lars J. Aas" [EMAIL PROTECTED] writes: On Thu, Apr 05, 2001 at 05:36:48PM -0500, Raja R Harinath wrote: : The following patch fixes a problem with CVS autoconf, if a recent : enough CVS snapshot of automake was used on it. This is my proposal. @PACKAGE doesn't seem to

CVS autoconf + CVS automake = autoconf doesn't know its version

2001-04-05 Thread Raja R Harinath
' +# is present in configure.in. However, some versions don't -- they +# depend on the fact that aclocal.m4 will have lines that subst them in. +# Some of those versions also don't understand 'm4_include'. +# Help them along. +AC_SUBST(PACKAGE) +AC_SUBST(VERSION) - Hari -- Raja R Harinath

Re: AM_MAKE_INCLUDE

2001-03-27 Thread Raja R Harinath
' again seems to fix it. Unfortunately, the output of make is redirected to /dev/null. My suspicion is that this could do with the timestamp warning sometimes emitted by GNU make. Is the directory NFS mounted from a Solaris m/c? - Hari -- Raja R Harinath -- [EMAIL PROTE

Re: AM_MAKE_INCLUDE

2001-03-27 Thread Raja R Harinath
e are supressed when you run GNU make with the '-s' option. (The -s option was present in Unix 7th Edition too, so it can pretty much be used with impunity.) - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Ca

Re: 81-lang-extensions.patch

2001-03-23 Thread Raja R Harinath
-compile ($options{'compile'}) if exists $options{'compile'}; # ... delete $options{$_} for (('ansi', 'autodep', 'compile', ...)); complain(...) if (keys %options); - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instruc

Re: 81-lang-extensions.patch

2001-03-23 Thread Raja R Harinath
Hi, Akim Demaille [EMAIL PROTECTED] writes: Raja R Harinath [EMAIL PROTECTED] writes: [snip] | Wouldn't this be more compact and readable without the loop? | | $lang_obj-ansi($options{'ansi'})if exists $options{'ansi'}; | $lang_obj-autodep ($options{'autodep'}) if exists

Re: depcomp changes for IRIX

2001-03-15 Thread Raja R Harinath
lso need to trust the compiler not to convert relative include paths to absolute while generating dependencies. Since, in this case, the compiler is "known", this isn't an issue. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash

Re: automake asks for a depcomp file

2001-02-21 Thread Raja R Harinath
d for automatic dependency generation support. Previous versions of automake supported dependency generation with GNU make, GCC, and only by the "maintainer". With 'depcomp', automake now supports dependency generation with more 'make's, more compilers, and at the "user"

[PATCH] depcomp and gcc3 still not safe enough

2001-02-17 Thread Raja R Harinath
looks slightly peculiar, but it matches similar 'if's used in the rest of the file.) from Raja R Harinath [EMAIL PROTECTED] * depcomp (gcc3): Protect against the compiler deleting the dependency output file. Index: depcomp

Re: [PATCH] depcomp and gcc3 still not safe enough

2001-02-17 Thread Raja R Harinath
Hi, Raja R Harinath [EMAIL PROTECTED] writes: GCC 3.0 doesn't still exactly implement exactly what 'depcomp' wants. The problem is that if the compile fails, the file specified to -MF is deleted too. With 'gcc -MF $depfile', $depfile is deleted. But, $depfile is eventually included

Revert setting of CONFIG_COMMANDS when running config.status

2001-02-09 Thread Raja R Harinath
=$@ rather than depend on specific details of the implementation of config.status. I've attached a patch only to revert the CONFIG_COMMANDS case. I think the CONFIG_LINKS= part in the above is harmless. - Hari from Raja R Harinath [EMAIL PROTECTED] * automake.in (handle_configure): Revert

Re: 26-makesort.patch

2001-02-05 Thread Raja R Harinath
to current 'automake' behaviour. IIRC, if automake sees a "special" target in Makefile.am, it won't generate code for that target. E.g., if the Makefile.am has a 'check:' target, the builtin test harness will not be generated. - Hari -- Raja R Harinath ---

Re: More an autopackage

2001-01-22 Thread Raja R Harinath
think) from Debian. It is essentially an LD_PRELOAD that overrides getuid/open etc. and makes a process think that it's executing as root. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom &

Re: Support for configure.ac

2001-01-18 Thread Raja R Harinath
; ' . 's/\@VTEXI\@/' . $vtexi . '/g;' . 's,\@MDDIR\@,' . $conf_pat . ',g;', 'texi-vers'); Note the lack of the @CONFIGURE_AC@ transform. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instruc

Re: new depcomp causes trouble w/fileutils

2001-01-11 Thread Raja R Harinath
this is a GCC bug, not a problem with 'automake'. For some reason, it is treating the -c as a -E. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When all else fails, read the instructions. -- Cahn's Axiom Our policy is, when in doubt, do the right thing. -- Roy L Ash

Re: Automake Real Millenium Beta

2000-12-23 Thread Raja R Harinath
.) - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash

Handle Libtool from multi-language-branch

2000-12-22 Thread Raja R Harinath
btoolize_files, 'ltconfig', + 'ylwrap', 'acinclude.m4', @libtoolize_files, @libtoolize_sometimes, 'missing', 'depcomp', 'compile', 'py-compile' ); - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash

Re: distributing files generated by configure

2000-12-22 Thread Raja R Harinath
, which I don't see as being too onerous. BTW, why do you need to 'configure' or 'sed' substitute a version number into a .c file -- you already have config.h which defines the symbol 'VERSION' to the version number string. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] When

Re: AC_CONFIG_FILES problem

2000-11-07 Thread Raja R Harinath
):foo-bot.in - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash

Re: How to install config.h

2000-10-30 Thread Raja R Harinath
configure run into $prefix. The proper home for such beasts is $exec_prefix. It would be nice if there was an $(execincludedir) [= $(exec_prefix)/include]. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions."

Re: ifeq/else/endif problem

2000-10-27 Thread Raja R Harinath
foo @MK@else bar @MK@endif However, you cannot put in automake magic variables (things like foo_SOURCES, foo_LDFLAGS, etc) inside an ifeq/else/endif. Rather, you can, but automake will get extremely confused if you do ;-) - Hari -- Raja R Harinath ---

Re: How to install config.h

2000-10-27 Thread Raja R Harinath
cumstances, this example won't really cause problems, even with both config.h being included.) And, then we have the problem of having anything depending on the output of config.status going into $prefix rather than $exec_prefix. - Hari -- Raja R Harinath -- [EMAIL PROTECTED]

Re: More about dependencies...

2000-10-23 Thread Raja R Harinath
necessary in ~/ since I don't have any code there? Actually it is needed only there, and not in the source directories. You just need one copy of the script per tree. 'automake' appears to be buggy. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails,

Re: dependencies in c++

2000-10-19 Thread Raja R Harinath
, or it may have had the results for a different compiler. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash

Re: [PATCH] compare header files before installing

2000-10-16 Thread Raja R Harinath
to specify a special installer if they choose. Of course, it would be nice if 'install' in fileutils could be extended to provide a --only-if-change option. Usage would be something like make INSTALL_HEADER='install --only-if-change' install - Hari -- Raja R Harinath