[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scripts...
From: |
Rusty Ballinger |
Subject: |
Re: Scripts... |
Date: |
Tue, 10 Apr 2001 13:04:28 -0700 |
> What is the best way to have a script/program where $pkgdatadir is
> located?
>
> For C, it's easy enough just to do
> CCFLAGS=-DPKGDATADIR="\""$(pkgdatadir)"\"" but what about things like perl
> scripts that have to pull option files and such. Is there a standard way
> to tackle this?
There may be a better way, but renaming the script to script.in, replacing
hard-coded paths with AC_SUBST'd variables (@PKGDATADIR@ etc.) in script.in,
and adding the script to AC_OUTPUT in configure.in has worked for me.
--Rusty
- Scripts..., Alex Turner, 2001/04/10
- Message not available
- Re: Scripts...,
Rusty Ballinger <=
- Re: Scripts..., Tom Tromey, 2001/04/10