autoconf
[Top][All Lists]
Advanced

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

Re: config.h vs. -D (fwd)


From: Raja R Harinath
Subject: Re: config.h vs. -D (fwd)
Date: Fri, 22 Aug 2003 14:37:54 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Hi,

Benjamin Sailer <address@hidden> writes:

> Hello again,
>
>> 
>> <snip configure.in>
>> MY_CONFIG_FILE="@datadir@/my_config_file"
>> AC_DEFINE_UNQUOTED([MY_CONFIG_FILE], "$MY_CONFIG_FILE",
>> [default configuration file])
>> <snip>
>> 
>
>> what an i doing wrong?  I'm using
>> 
>
> sorry, i found it after all in the mailinglist's archive:
> @datadir@ seems to be the wrong way at all.  I tried
>
> <snip configure.in>
> MY_CONFIG_FILE=`eval echo ${datadir}/my_config_file`
> AC_DEFINE_UNQUOTED([MY_CONFIG_FILE], "$MY_CONFIG_FILE",
> [default configuration file])
> <snip>
>
> and it seems to work fine both with and without config.h

Actually, that works only if you invoke configure with a --prefix
argument.  Look at

  http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html

for a possible solution.

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden




reply via email to

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