automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripts...


From: Alex Turner
Subject: Re: Scripts...
Date: Tue, 10 Apr 2001 18:07:58 -0400 (EDT)

On 10 Apr 2001, Tom Tromey wrote:

> >>>>> "Alex" == Alex Turner <address@hidden> 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 what about things
> Alex> like perl scripts that have to pull option files and such.  Is
> Alex> there a standard way to tackle this?
>
> For automake I use AC_SUBST and have @...@ substitutions in
> automake.in.
>
> Tom
>

Cool - actualy I forgot to ask if this is a sane way to do it for C.  I
would much prefer it generated a header file with it in somewhere.

Alex

P.S. Tom Tromey: Thanks for spending the time to write a book on automake
etc... it's very very usefull.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]