]> granicus.if.org Git - graphviz/commitdiff
apply patch from 0002147 for improved vendorarch tests
authorJohn Ellson <ellson@research.att.com>
Wed, 19 Oct 2011 18:08:42 +0000 (14:08 -0400)
committerJohn Ellson <ellson@research.att.com>
Wed, 19 Oct 2011 18:08:42 +0000 (14:08 -0400)
config/config_perl.pl

index 92d06ef2044b6c87b23e16cc07aced9c62699058..1fb0db832efa6c43ac4af9e6e025fb342a5df67c 100644 (file)
@@ -11,5 +11,14 @@ if ($ARGV[0] eq "PERL_INCLUDES") {
        print "-I$archlib/CORE";
 }
 if ($ARGV[0] eq "PERL_INSTALL_DIR") {
-       print "$Config{vendorarch}"
+
+       my $d;
+
+       foreach $d qw(installvendorarch vendorarch installsitearch sitearch) {
+               if (exists($Config{$d}) and defined($Config{$d}) and
+                       ($Config{$d} ne '') ) {
+                       print "$Config{$d}";
+                       last;
+               }
+       }
 }