Enable avoiding /System/Library in Mac OS X by
Jarkko Hietaniemi [Wed, 9 Jul 2003 05:57:16 +0000 (05:57 +0000)]
doing Configure -Dprefix=/some/where -Uvendorlib.

p4raw-id: //depot/perl@20082

hints/darwin.sh

index 33d594c..0d41d73 100644 (file)
@@ -44,7 +44,10 @@ case "$prefix" in
 
     # Where to put modules.
     sitelib=$prefix/lib/perl5/site_perl/${version}
-    vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
+    # Use -Uvendorlib to not to get /System/Library.
+    case "$vendorlib" in
+    '') vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
+    esac
     ;;
 
 esac