Apache-Compress
view release on metacpan or search on metacpan
t/lib/Apache/test.pm view on Meta::CPAN
256257258259260261262263264265266267268269270271272273274275276
'Apache::Table'
=>
sub
{
if
(
$ENV
{MOD_PERL}) {
return
Apache::Table->can(
'TIEHASH'
);
}
else
{
return
$net::callback_hooks
{PERL_TABLE_API};
}
},
);
for
(
qw(Apache::Cookie Apache::Request)
) {
$really_have
{
$_
} =
$really_have
{
'Apache::Table'
};
}
sub
have_module {
my
$mod
=
shift
;
my
$v
=
shift
;
eval
{
# surpress "can't boostrap" warnings
local
$SIG
{__WARN__} =
sub
{};
t/lib/Apache/test.pm view on Meta::CPAN
639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
Example:
$mods
= Apache::test->static_modules(
'/path/to/httpd'
);
This method returns a hashref whose
keys
are all the modules
statically compiled into the
given
httpd binary. The corresponding
values
are all 1.
=head1 EXAMPLES
No good examples yet. Example submissions are welcome. In the meantime, see
I'm retrofitting to use Apache::test.
=head1 TO DO
The MM_test method doesn't try to be very smart, it just writes the
text that seems to work in my configuration. I am morally against
using the 'make' command for installing Perl modules (though of course
I do it anyway), so I haven't looked into this very much. Send bug
reports or better (patches).
I've got lots of code in my Apache::AuthCookie module (etc.) that
assists in actually making the queries of the running server. I plan
to add that to this module, but first I need to compare what's already
here that does the same stuff.
=head1 KUDOS
To Doug MacEachern for writing the first version of this module.
To caelum@debian.org (Rafael Kitover) for contributing the code to
parse existing httpd.conf files for --enable-shared=max and DSOs.
( run in 0.299 second using v1.01-cache-2.11-cpan-1dc43b0fbd2 )