]> git.imager.perl.org - imager.git/commitdiff
search $Config{incpath} for headers too, why this was left out I don't know
authorTony Cook <tony@develop=help.com>
Fri, 15 Dec 2006 23:05:31 +0000 (23:05 +0000)
committerTony Cook <tony@develop=help.com>
Fri, 15 Dec 2006 23:05:31 +0000 (23:05 +0000)
Makefile.PL

index afe5bc2e5b15c166c2706050f87073f14c1edbf0..e748d233da71652060c77ee40f18d02ff06453ec 100644 (file)
@@ -399,6 +399,9 @@ sub init {
   if ($^O =~ /win32/i && $Config{cc} =~ /\bcl\b/i) {
     push(@incs, split /;/, $ENV{INCLUDE}) if exists $ENV{INCLUDE};
   }
+  if ($Config{incpath}) {
+    push @incs, grep -d, split /\Q$Config{path_sep}/, $Config{incpath};
+  }
   push @incs, grep -d,
       qw(/sw/include 
          /usr/include/freetype2