autoconf
[Top][All Lists]
Advanced

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

Re: referencing top_srcdir/top_builddir in an autoconf test?


From: Monty Taylor
Subject: Re: referencing top_srcdir/top_builddir in an autoconf test?
Date: Wed, 13 May 2009 12:32:12 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

Ralf Wildenhues wrote:
> Hello Monty,
> 
> * Monty Taylor wrote on Wed, May 13, 2009 at 07:38:10PM CEST:
>> configure:17782: gcc -std=gnu99 -o conftest    conftest.c -lm  >&5
>> conftest.c:29:58: error: libmemcached/memcached/protocol_binary.h: No
>> such file or directory
>>
>> Obviously would need a -I${top_srcdir}. I'm fine with hacking that in to
>> the test - except there doesn't seem to be an available autoconf
>> variable I can use to fill in the value of top_srcdir in that context.
> 
> You can use $srcdir, and some other variables documented in
>   info Autoconf "Configuration Actions"

AWESOME. Exactly what I was looking for.

> Maybe the manual should state that they're also available during the
> execution of configure, as opposed to only at config.status time.

Perhaps ... it certainly was not evident to me when looking through the
manual that I should have looked in that section.

Works like a champ, btw.

Monty




reply via email to

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