Re: Relative path in CPPFLAGS and distcheck

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

 



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 configure.ac:
>>
>> 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"
> AC_SUBST(CPPFLAGS)

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
>> Makefile.am as EXTRA_DIST, rather than explicitly listing this
>> subdirectory, adding a Makefile.am there, ... since there's
>> nothing to build there?
>
>
> It it works, then it must be legit, otherwise no. :-)

Indeed!  :-)

-Robert


_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux