Third and final take. No objects and I'll commit. I combined all 3 of the verions. :) Who would have thought something so small would take so long?

===================================================================
--- lib/Apache2/Build.pm        (revision 230957)
+++ lib/Apache2/Build.pm        (working copy)
@@ -518,10 +518,21 @@

     if ($self->{MP_MAINTAINER}) {
         $self->{MP_DEBUG} = 1;
-        if ($self->perl_config('gccversion')) {
+
+        if (my $gccversion = $self->perl_config('gccversion')) {
             #same as --with-maintainter-mode
             $ccopts .= " $Wall -DAP_DEBUG";
             $ccopts .= " -DAP_HAVE_DESIGNATED_INITIALIZER";
+
+            my ($gcc_major, $gcc_minor, $gcc_patch) =
+                $gccversion =~ /^(\d)\.(\d+)\.(\d+)/;
+
+            my $gccversion_decimal = $gcc_major .
+                $gcc_minor . $gcc_patch;
+
+            ## GCC 3.3.2+
+            if ($gccversion_decimal > 332) {
+              $ccopts .= " -Wdeclaration-after-statement";
+            }
         }
     }



--
END
------------------------------------------------------------
    What doesn't kill us can only make us stronger.
                Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
  http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com

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

Reply via email to