Randy Kobes wrote:
On Win32, within Apache::Build, apu-config is used to
get at the Apache include directories. In doing so
a "-I" is stripped off, but on Win32, apu-config
prepends /I. The following diff:
==================================================================
Index: lib/Apache/Build.pm
===================================================================
--- lib/Apache/Build.pm (revision 110071)
+++ lib/Apache/Build.pm (working copy)
@@ -1760,7 +1760,7 @@
         my $apuc = $self->apu_config_path;
         if ($apuc && -x $apuc) {
             chomp(my $apuincs = qx($apuc --includes));
-            $apuincs =~ s|-I||;
+            $apuincs =~ s{^\s*(-|/)I}{};
             push @inc, $apuincs;
         }

=====================================================================
gets rid of either.

+1, may be add a note like so:

  # win32: /Ipath, elsewhere: -Ipath
  $apuincs =~ s{^\s*(-|/)I}{};


-- __________________________________________________________________ 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