Re: problem with conditionals and \ separator in SOURCES

2001-04-10 Thread Lorenzo Bettini
Tom Tromey wrote: > > > "Tim" == Tim Van Holder <[EMAIL PROTECTED]> writes: > > >> Am I doing something wrong? > >> Notice that this problem only takes place with cygwin > > Tim> Might be an EOL issue; sed is notorious for not recognizing a trailing \ > Tim> in a DOS text file (it sees \ +

Re: Patch: make dist in subdirs before handling the current directory

2001-04-10 Thread Tom Tromey
> "Robert" == Robert Collins <[EMAIL PROTECTED]> writes: Robert> * distdir.am: Recurse into subdirs before handling files Robert> in the current directory. Robert> This patch reverses the order of subdir processing with Robert> current directory files for the make dist target. I don't t

Re: testcase for make dist with subdir SOURCES

2001-04-10 Thread Tom Tromey
> "Robert" == Robert Collins <[EMAIL PROTECTED]> writes: Robert> The attached test csae demonstrates the problem. I don't think Robert> I'll have time to step upto the coding plate, but I figure a Robert> the test might make things easier ... :] Thanks, I'm checking in a variant of this test

dependency generation problems

2001-04-10 Thread Sam TH
I'm attempting to use automakes provisions for automatic dependecy generation, and I'm running into problems. When I try to run make, after configuring, I get this error: Making all in af make[2]: Entering directory `/home/sam/projects/abi-auto/build/src/af' GNUmakefile:261: .deps/libAf.la.Plo:

Re: AM_MAKE_INCLUDE [patch]

2001-04-10 Thread Tom Tromey
> "Ralf" == Ralf Corsepius <[EMAIL PROTECTED]> writes: Ralf> So, below is a patch to address this issue by applying make -s. Ralf> If this doesn't work out, the entire check probably needs to be Ralf> reworked. Thanks, I checked this in. I wrote up the test as part of the patch and verifie

Re: 85-lang-new-hash.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> The patch is really a proposal: it relies on a modified version Akim> of Perl 5.6's Class::Struct. The modification are minimal, and Akim> just ensure that it works with 5.005: I've already weighed in on most of this... Akim> I st

Re: 82-lang-finish.patch

2001-04-10 Thread Tom Tromey
> "Akim" == akim <[EMAIL PROTECTED]> writes: >> I have a mild dislike for this. >> If `finish' were a method then we could simply inherit it. Akim> I do share your dislike for the structure, but please, note that Akim> we are defining methods per _object_. Cleaner would mean one Akim> *cla

Re: Scripts...

2001-04-10 Thread Tom Tromey
> "Alex" == Alex Turner <[EMAIL PROTECTED]> writes: >> For automake I use AC_SUBST and have @...@ substitutions in >> automake.in. Alex> Cool - actualy I forgot to ask if this is a sane way to do it Alex> for C. I would much prefer it generated a header file with it Alex> in somewhere. A h

Re: Scripts...

2001-04-10 Thread Alex Turner
On 10 Apr 2001, Tom Tromey wrote: > > "Alex" == Alex Turner <[EMAIL PROTECTED]> writes: > > Alex> What is the best way to have a script/program where $pkgdatadir > Alex> is located? > > I assume you mean how to find pkgdatadir in a program? > > Alex> For C, it's easy enough just to do > Alex>

Re: 82-lang-finish.patch

2001-04-10 Thread akim
On Tue, Apr 10, 2001 at 03:20:15PM -0600, Tom Tromey wrote: > > "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: > > I have a mild dislike for this. > If `finish' were a method then we could simply inherit it. I do share your dislike for the structure, but please, note that we are definin

Re: 82-lang-finish.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in: (Language): Add attribute `_finish'. Akim> (&finish): New. Akim> (Automake): Adjust. Akim> (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish) Akim> (&lang_asm_finish): Remove. I'm not so sure abo

Re: overriding tested automake & aclocal in test suite

2001-04-10 Thread Derek R. Price
Tom Tromey wrote: > > "Derek" == Derek R Price <[EMAIL PROTECTED]> writes: > > Derek> Is there some reason the automake test suite doesn't allow the > Derek> user to override its AUTOMAKE & ACLOCAL variables? > > Thanks for the patch. I wrote a ChangeLog entry for you. Could you > write it

Re: 78-lang-autodep.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Actually I'm realizing it does make a significant difference! Akim> With my patch you get: Akim> add_depend2 (cxx) Akim> add_depend2 (c) Akim> add_depend2 (objc) Akim> where I would have expected to see lex, yacc etc. I don't thin

Re: 79-lang-compile.patch

2001-04-10 Thread Tom Tromey
One last thing about separating into modules: we'll probably want to put the module files into their own directory in the source and install trees. Let's start a new directory for this sooner rather than later. Tom

Re: 81-lang-extensions.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in: (Language): Add attribute `extensions'. Akim> (Automake): Pass a hash to `®ister_language' instead of a Akim> list of pseudo assignments. Akim> (®ister_language): Adjust. Akim> (&finish_languages): Initialize

Re: 80-lang-finish.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (Language): Add attribute `output_arg'. Akim> (%language_map): Remove. Akim> (®ister_language): Build only the object, and store in Akim> %languages only. Akim> (&finish_languages, &handle_single_transform_lis

Re: 79-lang-compile.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Tom> But do we really want objects with public attributes? It seems Tom> to me that we'd probably rather have objects with public methods Tom> and private attributes. Akim> Nevertheless, in the present case, these are not exactly Akim> a

Re: 79-lang-compile.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (Language): Add attributes `flags', `compile' and Akim> `compiler'. Akim> (&finish_languages, &handle_single_transform_list, &handle_dist) Akim> (&add_depend2, ®ister_language): Use them and the `linker' and Aki

Re: 77-language-class.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (Language): New package, temporarily in this file. Akim> Use Class::Struct. Akim> (Automake): New package. Akim> (%languages): New. Akim> (&handle_single_transform_list): Use the language object's `ansi' Akim>

Re: 79-lang-compile.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Nevertheless, in the present case, these are not exactly Akim> attributes, which _are_ hidden. It's accessors: Thanks. Akim> Anyway, there is a big problem with pushing more language Akim> handling in the class itself, as there is

Re: overriding tested automake & aclocal in test suite

2001-04-10 Thread Tom Tromey
> "Derek" == Derek R Price <[EMAIL PROTECTED]> writes: Derek> Is there some reason the automake test suite doesn't allow the Derek> user to override its AUTOMAKE & ACLOCAL variables? Thanks for the patch. I wrote a ChangeLog entry for you. Could you write it next time? Tom

Re: Scripts...

2001-04-10 Thread Tom Tromey
> "Alex" == Alex Turner <[EMAIL PROTECTED]> writes: Alex> What is the best way to have a script/program where $pkgdatadir Alex> is located? I assume you mean how to find pkgdatadir in a program? Alex> For C, it's easy enough just to do Alex> CCFLAGS=-DPKGDATADIR="\""$(pkgdatadir)"\"" but wh

Re: Scripts...

2001-04-10 Thread Rusty Ballinger
> What is the best way to have a script/program where $pkgdatadir is > located? > > For C, it's easy enough just to do > CCFLAGS=-DPKGDATADIR="\""$(pkgdatadir)"\"" but what about things like perl > scripts that have to pull option files and such. Is there a standard way > to tackle this? There m

Scripts...

2001-04-10 Thread Alex Turner
What is the best way to have a script/program where $pkgdatadir is located? For C, it's easy enough just to do CCFLAGS=-DPKGDATADIR="\""$(pkgdatadir)"\"" but what about things like perl scripts that have to pull option files and such. Is there a standard way to tackle this? Thanks Alex T

Re: Default postscript cleans miss *.cps & *.fns.

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> elsif (/^\@(syncode|print)index \w+ (\w*)/) Akim> { Akim> push @clean_suffixes, "$1s"; Shouldn't that be "$2s" here? Tom

Re: overriding tested automake & aclocal in test suite

2001-04-10 Thread Derek R. Price
Tom Tromey wrote: > > "Derek" == Derek R Price <[EMAIL PROTECTED]> writes: > > Derek> Is there some reason the automake test suite doesn't allow the > Derek> user to override its AUTOMAKE & ACLOCAL variables? I like to > Derek> do it on ocassion to compare the current behavior against my > D

Re: 79-lang-compile.patch

2001-04-10 Thread Akim Demaille
> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (Language): Add attributes `flags', `compile' and Akim> `compiler'. (&finish_languages, &handle_single_transform_list, Akim> &handle_dist) (&add_depend2, ®ister_lan

Re: Default postscript cleans miss *.cps & *.fns.

2001-04-10 Thread Akim Demaille
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Nope, not yet. I'm downloading CVS to check this. Well, which one should I download? Where is it? Releases don't use Automake, Thomas was right ;) Derek, could you patch your automake so that in scan_texinfo, this elsif (

Re: Default postscript cleans miss *.cps & *.fns.

2001-04-10 Thread Akim Demaille
> "Tim" == Tim Van Holder <[EMAIL PROTECTED]> writes: >> I really think we can discover them all. The thing is that index >> can be created at will. So unless you actually look for used >> indexes, you can never be sure you don't forget something. Tim> Wouldn't using the -c option to texi2d

Re: Default postscript cleans miss *.cps & *.fns.

2001-04-10 Thread Tim Van Holder
> I really think we can discover them all. The thing is that index can > be created at will. So unless you actually look for used indexes, you > can never be sure you don't forget something. Wouldn't using the -c option to texi2dvi solve this? That way, the index files don't need to be cleaned

Re: problem with conditionals and \ separator in SOURCES

2001-04-10 Thread Tom Tromey
> "Tim" == Tim Van Holder <[EMAIL PROTECTED]> writes: >> Am I doing something wrong? >> Notice that this problem only takes place with cygwin Tim> Might be an EOL issue; sed is notorious for not recognizing a trailing \ Tim> in a DOS text file (it sees \ + CR + NL). Tim> Try converting the f

Re: 76-tags-in-tags-am.patch

2001-04-10 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Then, I'd say we should have TAGS work all by itself, calling Akim> TAGS-recursive. And tags is nothing but `tags: TAGS'. How does Akim> it sound? Sounds good to me. Tom

Re: Default postscript cleans miss *.cps & *.fns.

2001-04-10 Thread Akim Demaille
> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > "Derek" == Derek R Price <[EMAIL PROTECTED]> writes: Derek> FYI: the *.cps & *.fns files are only being created for Derek> cvs.texinfo. Tom> Did we ever get some resolution for this? Nope, not yet. I'm downloading CVS to check this.

Re: 76-tags-in-tags-am.patch

2001-04-10 Thread Akim Demaille
> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> This patch introduces one semantical difference: tags-recursive Akim> is bound to tags, not TAGS as was before. I think (i) it is Akim> cleaner, and (ii) anyway it seems to me th

RE: problem with conditionals and \ separator in SOURCES

2001-04-10 Thread Tim Van Holder
> cmdline.c \ > main.cc errors.cc stringtable.cc tables.cc nodevis.cc \ > > and the problem seems to be that \ in myprog_SOURCES is not recognized! > > Am I doing something wrong? > Notice that this problem only takes place with cygwin > Might be an EOL issue;

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

2001-04-10 Thread Akim Demaille
Fine! Please, install.

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

2001-04-10 Thread Lars J. Aas
On Tue, Apr 10, 2001 at 10:30:12AM +0200, Akim Demaille wrote: : I prefer Raja's solution for the very reason he described. It's : really a problem between Automake and aclocal.m4, so it should be : fixed there, or in configure.in. aclocal.m4 was so neat and tidy that I put it in configure.in:

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

2001-04-10 Thread Akim Demaille
| On Fri, Apr 06, 2001 at 12:17:47PM -0500, Raja R Harinath wrote: | : @PACKAGE@ is needed. It is used by Makefile.in for 'make dist'. | : | : "Lars J. Aas" <[EMAIL PROTECTED]> writes: | : > Index: Makefile.am | : > === | : > @@ -33

Re: Including foreign makefiles

2001-04-10 Thread Akim Demaille
> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: Tom> Your particular include doesn't match the regexp. Tom> I'm not sure why I did it that way initially. Now that seems Tom> like a bug to me. Agreed. Tom> Instead I think anything we don't recognize should simply give an Tom> error. Wel

problem with conditionals and \ separator in SOURCES

2001-04-10 Thread Lorenzo Bettini
Hi In configure.in I have these lines AC_PATH_PROGS(GENGETOPT, gengetopt) AM_CONDITIONAL(NO_GENGETOPT, test -z "$ac_cv_path_GENGETOPT" ) and in src/Makefile I have SUFFIXES = .ggo if NO_GENGETOPT .ggo.c: touch $@ else .ggo.c: $(GENGETOPT) --input $< --unamed-opts endif