On Thu, 3 Aug 2000, Geoffrey Young wrote:

> > Which raises an interesting question... Is there any way for 
> > Makefile.PL
> > to determin if a particular option was enabled at mod_perl build time?
> 
> I've tried to do this, but without success.  From what I can tell, you need
> a live server to tie into mod_perl::hooks() to get them, and that's the only
> way.  Hopefully, the stuff Ken Williams is doing with Apache::test will make
> writing live tests easier...

OK, then I propose an extension. In a import(), mod_perl.pm should
determine if not running under real mod_perl (i.e. $ENV{MOD_PERL}) and if
not, export a %mod_perl hash containing all the compiled in directives, so
that you can do:

if (!$mod_perl{PERL_LOG_API}) {
        die "Need Apache::Log (PERL_LOG_API) enabled in mod_perl to run";
}

Sound good? Doug, Eric, any thoughts?

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org

Reply via email to