From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,12c54a0f5a27d882 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Autoconf & gnat Help Needed Date: Fri, 23 Apr 2010 13:44:11 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <82sk6nn4vn.fsf@stephe-leake.org> <82ochamzq1.fsf@stephe-leake.org> Injection-Date: Fri, 23 Apr 2010 13:44:11 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="12053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WrnKlS+U9IclKh5Mmao1KsebGEWml12E=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:rlpttEn7XkIeF0SwqTE8KxMUVWk= Xref: g2news1.google.com comp.lang.ada:10156 Date: 2010-04-23T13:44:11+00:00 List-Id: Stephen Leake expounded in news:82ochamzq1.fsf@stephe-leake.org: > Warren writes: >> Stephen Leake expounded in news:82sk6nn4vn.fsf@stephe-leake.org: >>> Warren writes: >>> >>>> Has anyone here had experience using GNAT with autoconf/automake? >>> >>> My advice is to stop using the autotools, and use gprbuild instead. >>> >>> gprbuild knows how to build C libraries and link them with Ada. It can >>> also use a C main, if necessary. >> >> Unfortunately, there is more to this than just the build. >> I am mostly concerned about the ./configure and the generated >> config.h file. Autoconf is critical for wide platform support. > > Apparently you have source code in C as well as Ada? My sympathies :). For a basic interpreter, making use of ncurses, libgmp, libgsl, and PostgreSQL etc., it is unavoidable. :) I tried to avoid C++ like the plague, but ncurses requires a C++ main, if GNAT exceptions are to work correctly. I'm not sure of the details why, but a GNAT exception + ncurses and a C or gnat main leads to an abort. Switching to a C++ main program has corrected that. >> I still need to use the libtool's library libtdl (I think it was), but >> that shouldn't be a problem. > > I'm not familiar with that tool; what does it do? It's main claim to fame is to provide a uniform way of dealing with shared libraries and dlls on a given platform. I mainly need the libtool's library for working with dynamic library loading in a platform neutral way, which it does very well. I may need to create shared library components down the road, but that is on hold for now. >> That way I can still use make (gmake), as I have always done. > > I always run gprbuild from Gnu make. As you can see from my other post yesterday, I did manage to get things working. I posted the relevant details. Warren