autoconf
[Top][All Lists]
Advanced

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

Re: question about sysconfdir


From: Peter Eisentraut
Subject: Re: question about sysconfdir
Date: Thu, 31 May 2001 22:59:27 +0200 (CEST)

Akim Demaille writes:

>    This behavior is mandated by the GNU coding standards, so that when
> the user runs:
>
> `make'
>      she can still specify a different prefix from the one specified to
>      `configure', in which case, if needed, the package shall hard code
>      dependencies to her late desires.

I fail to find the section of the GNU standards where this is mandated.

>    A corollary is that you should not use these variables but in
> Makefiles.  For instance, instead of trying to evaluate `datadir' in
> `configure' and hardcoding it in Makefiles using e.g.
> `AC_DEFINE_UNQUOTED(DATADIR, "$datadir")', you should add
> `-DDATADIR="$(datadir)"' to your `CFLAGS'.

That should be CPPFLAGS.

-- 
Peter Eisentraut   address@hidden   http://funkturm.homeip.net/~peter




reply via email to

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