Description: Fix libgd ver check in Makefile.PL and Build.PL
Origin: upstream, https://github.com/lstein/Perl-GD/commit/58eceb8
Author: sauoq <sauoq6@gmail.com>
Forwarded: yes
Last-Update: 2015-11-29

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -296,8 +296,10 @@
   ($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
   $$options      = $features;
 
-  my ($minor)    = $version =~ /^2\.\d+\.(\d+)$/;
-  $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33;
+  my ($minor, $patch)    = $version =~ /^2\.(\d+)\.(\d+)$/;
+  if ((defined($minor) && $minor > 0) or (defined($patch) && $patch >= 33)) { 
+    $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
+  }
 
   my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
   check_for_stray_headers($includedir,@correct_inc);
