stas 2002/08/14 19:10:32 Modified: lib/Apache Build.pm Log: make it possible to build mod_perl against the source tree, where apr.h is located in srclib/include/apr/ and not include/ Revision Changes Path 1.104 +6 -1 modperl-2.0/lib/Apache/Build.pm Index: Build.pm =================================================================== RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v retrieving revision 1.103 retrieving revision 1.104 diff -u -r1.103 -r1.104 --- Build.pm 14 Aug 2002 02:33:00 -0000 1.103 +++ Build.pm 15 Aug 2002 02:10:32 -0000 1.104 @@ -765,7 +765,12 @@ my $dir = $self->ap_includedir; - my $header = "$dir/apr.h"; + my $header; + for my $d ($dir, "$dir/../srclib/apr/include") { + $header = "$d/apr.h"; + last if -e $header; + } + open my $fh, $header or do { error "Unable to open $header: $!"; return undef;
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm stas
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm stas
- cvs commit: modperl-2.0/lib/Apache Build.pm stas
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm dougm
- cvs commit: modperl-2.0/lib/Apache Build.pm stas
- cvs commit: modperl-2.0/lib/Apache Build.pm stas
- cvs commit: modperl-2.0/lib/Apache Build.pm stas