bug-gnulib
[Top][All Lists]
Advanced

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

Re: arg-nonnull.h & warn-on-use.h in build-aux


From: Ralf Wildenhues
Subject: Re: arg-nonnull.h & warn-on-use.h in build-aux
Date: Wed, 24 Feb 2010 21:20:17 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

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

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