summaryrefslogtreecommitdiff
path: root/hints/darwin.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-09 17:06:29 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-09 17:06:29 +0000
commitf9655257b2ff49a04bcf20c32c0590f5bc23526e (patch)
tree80e4f84de360c03bd99b7590ad0b7de5cc5b0db2 /hints/darwin.sh
parentc6e7ee5baf1b7ad0b2d86890e4174d74a2709b05 (diff)
downloadperl-f9655257b2ff49a04bcf20c32c0590f5bc23526e.tar.gz
More Darwin/MacOSX paths twiddling.
p4raw-id: //depot/perl@20096
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r--hints/darwin.sh46
1 files changed, 17 insertions, 29 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index b02cab68af..5bf23d2404 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -13,39 +13,27 @@ perl_version=`awk '/define[ ]+PERL_VERSION/ {print $3}' $src/patchlevel.h`
perl_subversion=`awk '/define[ ]+PERL_SUBVERSION/ {print $3}' $src/patchlevel.h`
version="${perl_revision}.${perl_version}.${perl_subversion}"
+# This was previously used in all but causes three cases
+# (no -Ddprefix=, -Dprefix=/usr, -Dprefix=/some/thing/else)
+# but that caused too much grief.
+# vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
+
# BSD paths
case "$prefix" in
- '')
- # Default install; use non-system directories
- prefix='/usr/local'; # Built-in perl uses /usr
- siteprefix='/usr/local';
- vendorprefix='/usr'; usevendorprefix='define';
-
- # Where to put modules.
- sitelib="/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
- vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
- ;;
-
- '/usr')
- # We are building/replacing the built-in perl
- siteprefix='/usr/local';
- vendorprefix='/usr/local'; usevendorprefix='define';
-
- # Where to put modules.
- sitelib="/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
- vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
- ;;
-
- *)
- # Anything else; use non-system directories
- ;;
-
+ ''|'/usr')
+ # Default install; use non-system directories
+ prefix='/usr/local'; # Built-in perl uses /usr
+ siteprefix=''/usr/local';
+ # Where to put modules.
+ sitelib="/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
+ # 4BSD uses ${prefix}/share/man, not ${prefix}/man.
+ man1dir='/usr/share/man/man1';
+ man3dir='/usr/share/man/man3';
+ ;;
+ *) # Anything else; use non-system directories
+ ;;
esac
-# 4BSD uses ${prefix}/share/man, not ${prefix}/man.
-man1dir="${prefix}/share/man/man1";
-man3dir="${prefix}/share/man/man3";
-
##
# Tool chain settings
##