httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <>
Subject Re: DSO
Date Sun, 07 Oct 2001 15:31:16 GMT
On Sun, Oct 07, 2001 at 07:28:32AM -0700, hiten pandya wrote:
> greetings,
> i am trying to fix the problem regarding:
> adding a LoadModule directive when user selects any module 
> as a DSO.
> When i was going throught the configure script, it had two 
> lines like the following:
> ac_help="$ac_help
>  --enable-so DSO capability"
> ac_help="$ac_help
>  --enable-so DSO capability"
> Can someone please explain me why there is a need for two 
> of them lines. I didnt know if there was a need to submit 
> a patch for this.

Hi Hiten,

You have a good point. The problem is comming from somewhere else
(the "configure" script is automatically generated by autoconf).
(see modules/mappers/config9.m4:20):

if test "$sharedobjs" = "yes"; then
    APACHE_MODULE(so, DSO capability, , , static)
    APACHE_MODULE(so, DSO capability, , , no)

See, we want to be able to have it work when we do ./configure --help, but
we don't know at that time if we want it to default to "static" or "no".
So what ends up happening is each of those APACHE_MODULE declarations
will add their own ac_help thing as you showed above at ./buildconf-time,
but by the time we've already run ./configure it will decide if it needs
to be "static" or "no" by default.

I propose we simply get rid of the "if test" in the above code snippit,
and default to "static" for mod_so, since by default we have some
modules already turned on.  Alternatively we could default to "no"
and simply set "enable_so=yes" as soon as any APACHE_MODULE call ends
in something non-"no".


p.s. about the adding LoadModule statements to the httpd.conf output problem,
I have a partial fix in my tree right now that I expect to get working real
soon and posted, but you're welcome to hack on it too. Contact me offlist
if you want to see what I have so far. :)

View raw message