httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: cvs commit: httpd-apreq-2/build xsbuilder.pl
Date Thu, 30 Oct 2003 18:11:15 GMT
Joe Schaefer wrote:
> Stas Bekman <stas@stason.org> writes:
> 
> [...]
> 
> 
>>>  -die __PACKAGE__ . ": httpd must load mod_apreq.so first"
>>>  -           if __PACKAGE__->env ne "Apache::RequestRec";
>>>  +if (\$ENV{MOD_PERL}) {
>>>  +    require mod_perl;
>>>  +    if (\$mod_perl::VERSION > 1.99) {
>>>  +        die __PACKAGE__ . ": httpd must load mod_apreq.so first"
>>>  +               if __PACKAGE__->env ne "Apache::RequestRec";
>>>  +    }
>>>  +    elsif (\$mod_perl::VERSION > 1.24) {
>>>  +        die __PACKAGE__ . ": httpd must load mod_apreq1.so first"
>>>  +              if __PACKAGE__->env ne "Apache";
>>
>>A::R 2 supports mp1?
> 
> 
> In a manner of speaking, yes.  Firstly, mod_apreq1.c needs to be born,
> and secondly, the perl glue needs to be amended to subclass from "Apache".
> Until both of those things happen, our perl glue must fail to load for mp1.
> Of course, the error message could recommend using libapreq-1.X here, 
> but hey, why be pessimistic about it?

That's very cool! So in the back of your mind you have an evil plan to drop 
the current libapreq-1 and maintain just one source for both Apache generation? ;)


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message