geoff 2003/10/22 12:03:55
Modified: perl-framework/Apache-Test/lib/Apache TestConfigPerl.pm
Log:
make sure that mod_perl.so is cached once found so that
have_module('mod_perl.c') works as expected for DSO installs
Reviewed by: stas
Revision Changes Path
1.80 +5 -0
httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm
Index: TestConfigPerl.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- TestConfigPerl.pm 21 Oct 2003 22:09:41 -0000 1.79
+++ TestConfigPerl.pm 22 Oct 2003 19:03:55 -0000 1.80
@@ -67,6 +67,11 @@
$lib =~ s/lib$/dll/;
$cfg = 'LoadFile ' . qq("$lib"\n) if -e $lib;
}
+ # add the module we found to the cached modules list
+ # otherwise have_module('mod_perl') doesn't work unless
+ # we have a LoadModule in our base config
+ $self->{modules}->{'mod_perl.c'} = $vars->{libmodperl};
+
$cfg .= 'LoadModule ' . qq(perl_module "$vars->{libmodperl}"\n);
}
else {