Permalink
Browse files

- avoid complaining about include/lib directories we pull from

  perl's config or we have built-in
  • Loading branch information...
Tony Cook
Tony Cook committed Jan 6, 2005
1 parent 08ca22d commit 6552acfe9ca1ad0ce622eb000c2860e6feb8739c
Showing with 6 additions and 4 deletions.
  1. +2 −0 Changes
  2. +4 −4 Makefile.PL
View
@@ -988,6 +988,8 @@ Revision history for Perl extension Imager.
- added tiff_resolutionunit_name tag when reading tiff files
- Makefile.PL now attempts to use freetype-config to configure freetype 2
and pkg-config to configure libpng.
+- avoid complaining about include/lib directories we pull from
+ perl's config or we have built-in
=================================================================
View
@@ -281,12 +281,12 @@ sub init {
@definc{'/usr/include'}=();
@incs=(split(/\Q$Config{path_sep}/, $INCPATH));
if ($Config{locincpth}) {
- push @incs, split ' ', $Config{locincpth};
+ push @incs, grep -d, split ' ', $Config{locincpth};
}
if ($^O =~ /win32/i && $Config{cc} =~ /\bcl\b/i) {
push(@incs, split /;/, $ENV{INCLUDE}) if exists $ENV{INCLUDE};
}
- push @incs,
+ push @incs, grep -d,
qw(/sw/include
/usr/include/freetype2
/usr/local/include/freetype2
@@ -296,9 +296,9 @@ sub init {
@libs= split(/\Q$Config{path_sep}/,$LIBPATH);
if ($Config{loclibpth}) {
- push @libs, split ' ', $Config{loclibpth};
+ push @libs, grep -d, split ' ', $Config{loclibpth};
}
- push @libs, qw(/sw/lib), split(/ /, $Config{'libpth'});
+ push @libs, grep -d, qw(/sw/lib), split(/ /, $Config{'libpth'});
if ($^O =~ /win32/i && $Config{cc} =~ /\bcl\b/i) {
push(@libs, split /;/, $ENV{LIB}) if exists $ENV{LIB};
}

0 comments on commit 6552acf

Please sign in to comment.