autoconf
[Top][All Lists]
Advanced

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

Re: macro reuse


From: Ralf Wildenhues
Subject: Re: macro reuse
Date: Thu, 25 May 2006 08:19:22 +0200
User-agent: Mutt/1.5.11+cvs20060403

Hi Thomas,

* Thomas Porschberg wrote on Mon, May 22, 2006 at 11:56:25PM CEST:
> 
> 1.
> I can pass a directory parameter to all three macros at configure time
> (the root dir of boost). When I call e.g.
> ./configure --with-boost-date-time=/usr/local
> How could I then pass "/usr/local/" to AX_BOOST_BASE inside
> AX_BOOST_DATE_TIME ?

You could plainly call AX_BOOST_BASE with the respective arguments,
instead of AC_REQUIRE'ing it, iff you can deal with the fact that it may
be expanded more than once.

But the way you did in the other post doesn't seem unreasonable.

> (I could declare a second parameter for AX_BOOST_BASE which should be
> not not public but only used if the macro is called from another boost
> macro but is it OK ?)

Hmm.

> 2.
> ./configure --help lists also the help-string for ax_boost_base.m4
> although the macro is only called indirectly by ax_boost_date_time.m4
> respectively ax_boost_program_options.m4.

Is that not what is desired?

Cheers,
Ralf




reply via email to

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