httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Building and Linking 3rd Party Modules within Apache 2.0 Source Tree
Date Wed, 18 Oct 2000 12:41:14 GMT
You're right... the ./configure process must somehow reinvent
itself to do that... And to do it, it basically has to be a mini
autoconf.

Argf.

Greg Stein wrote:
> 
> Not enough.
> 
> The config.m4 files are collected into the top-level configure. In other
> words, they are used *before* you run autoconf. But... our intent is to not
> require users to need the autoconf toolset.
> 
> So: config files are out. We have to give them a dumber mechanism for
> plugging into the build.
> 
> Currently, the output of config.m4 is modules.mk. But that is included by
> Makefile, so I'd guess that it isn't "strictly" required. Therefore, it
> seems possible to have third parties supply a Makefile.in that follows some
> pattern.
> 
> [ note: they can *run* ./configure (thereby creating Makefile from
>   Makefile.in), but they cannot run autoconf itself ]
> 
> Complex configurations are a different story. How do we get them to
> participate within ./configure without needing to run autoconf beforehand?
> Essentially, this means some kind of sub-config process much like we do with
> APR and MM.
> 
> Yes, this is getting a bit ooky.
> 
> For mod_dav_svn, I've just been copying a libtool library into the right
> place and linking it in. However, it has also been copying over a config.m4
> and assuming the person runs autoconf, then configure beforehand.
> 
> Cheers,
> -g
> 
> On Wed, Oct 18, 2000 at 07:51:53AM -0400, Jim Jagielski wrote:
> > Maybe if we have a stub config.m4 file and autoconf assumes
> > all 3rd party modules exist in some specific subdirectory.
> > We can then scan for extra modules, move the stub config.m4 file
> > in there if needed and try to build...
> > 
> > anyway that's a concept I'm trying to implement...
> > 
> > Greg Stein wrote:
> > > 
> > > Yup. Way broken. I noticed this recently as I was working on mod_dav_svn.
> > > 
> > > I don't have an answer yet, though :-(   *sigh*
> > > 
> > > Cheers,
> > > -g
> > > 
> > > On Tue, Oct 17, 2000 at 03:02:45PM -0700, rbb@covalent.net wrote:
> > > > 
> > > > The only way to do this currently, is to create a config.m4 file and put
> > > > your module under the modules directory.  Apache will automatically detect
> > > > the config.m4 and it will allow you to add the module with the standard
> > > > --enable-module_name arguments.  The config.m4 file should look like the
> > > > one in modules/proxy.
> > > > 
> > > > I haven't been able to find a way to get autoconf to do this
> > > > automatically, but I haven't looked for a while.
> > > > 
> > > > Ryan
> > > > 
> > > > On Tue, 17 Oct 2000, Ovies Brabson wrote:
> > > > 
> > > > > How does one cause Apache 2.0 to build and statically link in a 3rd
> > > > > party module that is made up of multiple files and for which a make
file
> > > > > exists already?  In Apache 1.3, I used to be able to use the
> > > > > --activate-module option of the configure script.  The --with-module
> > > > > option of the current configure script does not seem to be what I'm
> > > > > looking for.
> > > > > 
> > > > 
> > > > 
> > > > _______________________________________________________________________________
> > > > Ryan Bloom                        	rbb@apache.org
> > > > 406 29th St.
> > > > San Francisco, CA 94131
> > > > -------------------------------------------------------------------------------
> > > 
> > > -- 
> > > Greg Stein, http://www.lyra.org/
> > > 
> > 
> > 
> > -- 
> > ===========================================================================
> >    Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
> >                 "Are you suggesting coconuts migrate??"
> 
> -- 
> Greg Stein, http://www.lyra.org/
> 


-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
                "Are you suggesting coconuts migrate??"

Mime
View raw message