Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] DATAFILE_DIR should be set in Makefile.am, not configure.in

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Fri, 4 Feb 2005 01:30:59 +0100
On Thu, Feb 03, 2005 at 03:58:22PM -0600, Albert Chin wrote:
> >From autoconf.info:
>      In order to support these features, it is essential that `datadir'
>   remains being defined as `${prefix}/share' to depend upon the current
>   value of `prefix'.
> 
>      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'.
> 
> Patch attached against 0.10.9.

applied

 Thanks
       Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.