autoconf
[Top][All Lists]
Advanced

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

Re: Precious vars, etc., in sub-configures


From: John D. Burger
Subject: Re: Precious vars, etc., in sub-configures
Date: Thu, 27 Jun 2002 15:59:31 -0400

Bruce Korb wrote:

> Use a common cache.  See the snprintfv (sub)configury in:
> 
>   http://prdownloads.sf.net/autogen/autogen-5.3.8.tar.gz

The common cache is a good suggestion, although I'd rather not rely on my
users to do that.  I couldn't tell if your autogen pointer was intended to be
an example of this, or an alternate suggestion.  autogen-5.3.8/configure.in
has this:

  ac_configure_args="$ac_configure_args --enable-snprintfv-convenience"
  ...
  AC_CONFIG_SUBDIRS(snprintfv)

Looking at the generated configure, this does seem like it'll work fine.

Yet another possible solution I thought of is to use the fact that 
AC_ARG_VARs pay attention to environment variables, e.g.:

  export foodir
  AC_CONFIG_SUBDIRS(libfoo)

In fact, I think one could argue that AC_ARG_VAR should always do such an
export.  This method doesn't work very naturally for --enable switches, though.
Anyway, thanks for the suggestions!

- John Burger                                  The MITRE Corporation

  Please avoid sending me unnecessary Word or PowerPoint attachments.
  See http://www.fsf.org/philosophy/no-word-attachments.html




reply via email to

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