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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,814d0ec938d6e4da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-26 10:49:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!legolas!nobody From: anders@legolas.gidenstam.se (Anders Gidenstam) Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Fri, 26 Apr 2002 19:13:29 +0200 Organization: Chalmers University of Technology Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> NNTP-Posting-Host: hotlips.cs.chalmers.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: nyheter.chalmers.se 1019843339 3506 129.16.225.36 (26 Apr 2002 17:48:59 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 26 Apr 2002 17:48:59 GMT X-Newsreader: knews 1.0b.1 Xref: archiver1.google.com comp.lang.ada:23146 Date: 2002-04-26T17:48:59+00:00 List-Id: In article , "Sergey Koshcheyev" writes: > "Preben Randhol" wrote in message > news:slrnacfc16.145.randhol+abuse@kiuk0156.chembio.ntnu.no... >> Basicly so that the program can find out where it's other files are >> like the help files and graphics etc... > > I believe most GPLed C/C++ programs for Unix have such paths > hard-coded into them, configured at build-time, using autoconf. You > might consider that approach too. Well, I think that this combined with the possibility of overriding the compiled-in defaults with some environment variables sounds like a good approach. /Anders -- -------------------------------------------- "A well-written program is its own heaven; a poorly-written program is its own hell." - The Tao of Programming