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

Re: Evaluating variables in autoconf



On Wed, Jul 24, 2002 at 11:08:10PM +0100, Will Newton wrote:

> I am packaging a program that needs to have a path defined in config.h. I 
> tried:

> AC_DEFINE_UNQUOTED(BASE_PATH, $datadir )

> but this evaluates to $prefix/share. I need it to evaluate to /usr/share.

> What's the best way to do this? I haven't done much shell or m4 programming, 
> so this may be a stupid question.

You're better off putting this in your Makefile, and passing it to the
compiler via -DBASE_PATH=\"$datadir\".

Steve Langasek
postmodern programmer

Attachment: pgpvP_vSrr4l0.pgp
Description: PGP signature


Reply to: