comp.lang.ada
 help / color / mirror / Atom feed
From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: Re: GNAT and GNU build system
Date: Wed, 4 Aug 2004 02:05:12 +0000 (UTC)
Date: 2004-08-04T02:05:12+00:00	[thread overview]
Message-ID: <slrnch0h2o.c04.lutz@belenus.iks-jena.de> (raw)
In-Reply-To: jPRPc.888$xV7.729@reader1.news.jippii.net

* Tapio Kelloniemi wrote:
> I'm planning to seriously develop free software packages in Ada. The
> problem I have is GNTA's fitness for GNU program building standards.

You don't need that. Ada comes with portable interface definition
capabilities.

> I would like to autoconfize my project (not very bad, some M4 macros
> can be found in GtkAda). But I would like to use automake (my projects
> are in Ada and C, because almost every free software library is written
> in C).

The monkey argument is no argument f�r C.
You do not need autoconfig for Ada.

> If anyone has had any experience or interest regarding this, please drop
> a line.

I prefer redefining the standard C-header in Ada. This is necessary, but
nearly impossible, because the C-library and kernel-call interface
generated depends on the C-compiler version and flags used when compiling
the kernel and the libs.

That's why there is no generic way to automatically determine the interface
for Ada. In order to do it in a portable way you have to study the interface
deeply and redefine it in Ada yourself. Luckily the ABI does not change this
hard, but depends on CPU and OS-version.

I'd recommend a libportable written in C, generated with autoconfigure and
all those nifty workarounds about a missing interface definition. This
libportable should convert the CPP-headers into C-headers, so that
preprocessor definitions become linkable. The Ada code will be constant and
portable, because the value of the day for a system constant can be linked.



  parent reply	other threads:[~2004-08-04  2:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03 19:36 GNAT and GNU build system Tapio Kelloniemi
2004-08-03 20:12 ` Jerome Hugues
2004-08-04  2:05 ` Lutz Donnerhacke [this message]
2004-08-04  7:49   ` Tapio Kelloniemi
2004-08-04 13:33     ` Mark H Johnson
2004-08-04 16:04       ` Georg Bauhaus
2004-08-04 19:21         ` Ludovic Brenta
2004-08-04 20:29         ` Tapio Kelloniemi
2004-08-05  2:15           ` Georg Bauhaus
2004-08-06 10:26             ` Stephen Leake
2004-08-06 15:36               ` Georg Bauhaus
2004-08-14  6:00                 ` Tapio Kelloniemi
2004-08-14 11:32                   ` Ludovic Brenta
2004-08-14 14:41                   ` Georg Bauhaus
2004-08-04 20:06       ` Tapio Kelloniemi
2004-08-04 20:34         ` Ludovic Brenta
2004-08-04 22:11           ` Stephen Leake
2004-08-05  8:50             ` Tapio Kelloniemi
2004-08-08 14:45               ` Ludovic Brenta
2004-08-10 16:18                 ` Nick Roberts
2004-08-12 13:56   ` Florian Weimer
2004-08-13 15:52     ` Lutz Donnerhacke
2004-08-04 22:06 ` Stephen Leake
replies disabled

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