[Top][All Lists]

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

Re: Adding an external project to autoconf

From: Ralf Wildenhues
Subject: Re: Adding an external project to autoconf
Date: Tue, 15 Sep 2009 22:41:42 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

* Keith Marshall wrote on Tue, Sep 15, 2009 at 01:33:34PM CEST:
> On Tuesday 15 September 2009 05:31:04 Ralf Wildenhues wrote:
> > > is there a way to have
> > > sub-package-specific configure options?
> >
> > Not easily: the actual option strings as passed to each sub
> > configure are the same (modulo --srcdir and --cache-file mangling
> > of course).
> And this could represent a problem for the OP, (who originally wanted 
> to add zlib via AC_CONFIG_SUBDIRS).  The problem is that, while zlib 
> does provide a configure script, it is substantially incompatible 
> with anything autoconf might generate:

Well, in that case, the only viable way is to not use AC_CONFIG_SUBDIRS,
but instead invoke the sub configure manually, probably best after
AC_OUTPUT, by extracting and re-quoting the needed arguments from
$ac_configure_args.  See autoconf/status.m4:_AC_OUTPUT_SUBDIRS for how
this is done.

Or, fix zlib/configure.  :-)


reply via email to

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