On Tue, Apr 04, 2006 at 05:34:05AM -0600, Ed Hartnett wrote:
> AC_SUBST(TEMP_LARGE)
> 
> But how do I use TEMP_LARGE when running my test program?

Automake will generate a `TEMP_LARGE = @TEMP_LARGE@' line in each Makefile.in,
so the value will be available to you as a macro in each Makefile.

> I have tried running a test script, and using $TEMP_LARGE in the
> script. This works if I supply TEMP_LARGE on the command line with the
> make command, but it doesn't pick up the TEMP_LARGE defined during
> configure.

You need to get TEMP_LARGE into a shell variable in that script.  There are a
number of ways to do this.  You could pass the variable through the environment
from your Makefile:

some-rule:
        TEMP_LARGE=$(TEMP_LARGE) ./test-script


Reply via email to