[avahi] Re: paths in config.h.in (autoheader)
Sebastien Estienne
sebastien.estienne at gmail.com
Wed Jul 6 08:24:37 EST 2005
here is a patch implementing this
and fixing AVAHI_RUNTIME_DIR
if noone has objections, i'll commit.
to sum up, it allows fully dynamic prefix:
make prefix=/home/sebest/avahi install
On a side note, has anyone objections against renaming avahi in
avahi-daemon and fixing this in init scripts ?
2005/7/4, Sebastien Estienne <sebastien.estienne at gmail.com>:
> Hello,
>
> Even if it seems to be a common practice to to use config.h to define
> path for socket or pid file, it also seems to be a "bad" practice as i
> learnt here:
> http://www.delorie.com/gnu/docs/autoconf/autoconf_24.html :
> From this page:
> " A corollary is that you should not use these variables except in
> Makefiles. For instance, instead of trying to evaluate datadir in
> `configure' and hard-coding it in Makefiles using e.g.,
> `AC_DEFINE_UNQUOTED(DATADIR, "$datadir")', you should add
> `-DDATADIR="$(datadir)"' to your CPPFLAGS. "
>
> So if noone has objections i'll fix these small problems, following
> the autoconf manual recommendations
>
> --
> Sebastien Estienne
>
--
Sebastien Estienne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autoconf.patch
Type: text/x-patch
Size: 4494 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/avahi/attachments/20050706/3b75e49e/autoconf.bin
More information about the avahi
mailing list