comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Autoconf & gnat Help Needed
Date: Mon, 26 Apr 2010 14:30:25 -0400
Date: 2010-04-26T14:30:25-04:00	[thread overview]
Message-ID: <wccljca6p8e.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 871ve53e1h.fsf@ludovic-brenta.org

Ludovic Brenta <ludovic@ludovic-brenta.org> writes:

> Warren <ve3wwg@gmail.com> writes:
>
>> Vadim Godunko expounded in news:d50d540f-8fdf-40ae-9301-
>> 4958c6bdff4f@q15g2000yqj.googlegroups.com:
>>
>>> On Apr 21, 11:54pm, Warren <ve3...@gmail.com> wrote:
>>>> Has anyone here had experience using GNAT with autoconf/automake?

I have.  It's a nightmare, as others have said.

If you absolutely must use these tools, I suggest you
minimize their use.  Most of what you need can be
done using gprbuild, which can be called from
a make file (preferably hand written, not generated
via 37 levels of confusing tools).

> >> I used them long time ago. I don't known any project which still use
> >> them now, but them was used in old versions of PolyORB and QtAda.

PolyORB still uses autoconf, but I got rid of automake, which
was a big improvement.

> On the contrary; in most of my Debian packages, I bypass the brittle
> autocrap, evil recursive makefiles...

Here's a paper, "Recursive Make Considered Harmful":

http://miller.emu.id.au/pmiller/books/rmch/

which explains why recursive makefiles are evil,
and how to do it right.  (Of course, most of what
make does is done better by gprbuild -- but not
everything.)

>... (that do not play well with the
> parallel build support in gnatmake)...

Not just that.  Recursive make files don't even work well
with make -- they are grossly inefficient.  Even more so
under cygwin.

>...and unmaintainable libtool mess in
> favour of a single, simple, hand-written makefile and one GNAT project
> file.  This works MUCH better in my experience.

- Bob



  parent reply	other threads:[~2010-04-26 18:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 19:54 Autoconf & gnat Help Needed Warren
2010-04-21 20:31 ` Charmed Snark
2010-04-22 10:23 ` Georg Bauhaus
2010-04-22 15:19   ` Warren
2010-04-22 10:44 ` Stephen Leake
2010-04-22 15:27   ` Warren
2010-04-22 15:59     ` Warren
2010-04-23  6:48     ` Stephen Leake
2010-04-23 13:44       ` Warren
2010-04-23 18:39         ` Vadim Godunko
2010-04-23 20:13           ` Warren
2010-04-24 11:18             ` Stephen Leake
2010-04-26 15:01               ` Warren
2010-04-27  6:57                 ` Alex R. Mosteo
2010-04-27 13:21                   ` Warren
2010-04-23 18:41 ` Vadim Godunko
2010-04-23 20:18   ` Warren
2010-04-24  0:11     ` Ludovic Brenta
2010-04-26 15:06       ` Charmed Snark
2010-04-26 18:30       ` Robert A Duff [this message]
2010-04-24 12:54     ` Vadim Godunko
2010-04-26 15:25       ` Warren
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox