Hello,

* Sam Steingold wrote on Wed, Feb 24, 2010 at 01:15:13AM CET:
> On 2/23/10, Bruno Haible wrote:
> >  Autoconf requires it to be constant. You specify it through the
> >  AC_CONFIG_AUX_DIR macro. In other words, if you add to
> >   clisp/modules/syscalls/configure.ac
> >  the line
> >   AC_CONFIG_AUX_DIR([../../src/build-aux])
> >  then you need only one copy of arg-nonnull.h, at
> >   clisp/src/build-aux/arg-nonnull.h
> 
> I already have CL_MODULE_COMMON_CHECKS() in 
> clisp/modules/syscalls/configure.in
> which expands to
> AC_REQUIRE([AC_CONFIG_AUX_DIR],
> [AC_CONFIG_AUX_DIR([$cl_cv_clisp_libdir/build-aux])])
That won't work right, the aux dir name needs to be known to autoreconf
and 'automake --add-missing', so it needs to be a literal string.

The reason autoconf doesn't warn or error out about nonliteral
AC_CONFIG_AUX_DIR argument is probably that in the distant past
(2.13 I guess, before I knew Autoconf anyway) it used to be
possible to pass a shell variable.

Cheers,
Ralf


Reply via email to