On 07/04/2012 09:24 AM, Stefano Lattarini wrote:
> It can be done either passing several arguments to a single invocation:
> 
>     AC_CONFIG_MACRO_DIR([dir1 dir2])

I would recommend against this,

> 
> or issuing more invocations:
> 
>     AC_CONFIG_MACRO_DIR([dir1])
>     AC_CONFIG_MACRO_DIR([dir2])

and instead favor this approach only.

My plan for autoconf is to implement AC_CONFIG_MACRO_DIRS, which can be
invoked multiple times and also takes a whitespace-separated list in a
single call, but which will basically then call AC_CONFIG_MACRO_DIR once
per unique entry (that is, AC_CONFIG_MACRO_DIRS will be smart enough to
filter out duplicates).  Tracing code should then trace _just_
AC_CONFIG_MACRO_DIR, which will be called once per directory, and where
the first call is the preferred dumping ground for new macros.  There
shouldn't be a need to trace AC_CONFIG_MACRO_DIRS.

-- 
Eric Blake   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to