[Top][All Lists]

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

Re: Relative path in CPPFLAGS and distcheck

From: Robert Lowe
Subject: Re: Relative path in CPPFLAGS and distcheck
Date: Sat, 04 Dec 2004 21:11:12 -0600
User-agent: Mozilla Thunderbird 0.8 (X11/20041020)

Bob Friesenhahn wrote:
> On Sat, 4 Dec 2004, Robert Lowe wrote:
>> Hi!
>> I have a set of common headers files in includes/ and the following
>> line in
>> AC_SUBST(CPPFLAGS,[-I../includes])
>> ...since all source files are in parallel directories.  This works
>> fine for everything but a distcheck.  Is there a simple means of
>> placing an absolute path there?  I've tried a couple of different
>> methods, but no luck.
> Try:
> CPPFLAGS="${srcdir}/includes"

No, that didn't quite do it, even with -I. It substitutes './includes', and caused the next AC_CHECK_LIB() to fail, which I found curious. I
also tried abs_top_builddir, but that was null.

>> Also, is it perfectly legit to list these files in the top-level
>> as EXTRA_DIST, rather than explicitly listing this
>> subdirectory, adding a there, ... since there's
>> nothing to build there?
> It it works, then it must be legit, otherwise no. :-)

Indeed!  :-)


reply via email to

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