perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] getting Apache2 includes
Date Tue, 07 Dec 2004 05:45:47 GMT
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:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message