I was always building with MP_APXS. Now if I try using  MP_AP_PREFIX 
pointing to the httpd-2.0 source tree there are all sort of problems. Am 
I the only one seeing them?

First it cannot find apr.h, which I've fixed with the patch at the end.

Second 'make test' won't start since it cannot find apxs/httpd. What's 
the right thing to do here? We want to move to MP_AP_PREFIX, but it's 
not really working when MP_AP_PREFIX when pointed to the source dir. I 
know this has something to do with win32. does it run 'make test' 
properly on win32?

Finally, the build seems to use / path sep everywhere, shouldn't we use 
catfile()?

Index: lib/Apache/Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.103
diff -u -r1.103 Build.pm
--- lib/Apache/Build.pm 14 Aug 2002 02:33:00 -0000      1.103
+++ lib/Apache/Build.pm 14 Aug 2002 03:16:44 -0000
@@ -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;



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to