develooper Front page | perl.perl5.porters | Postings from July 2001

[PATCH] Clean up Darwin hints

Thread Next
From:
Wilfredo Sánchez
Date:
July 27, 2001 19:13
Subject:
[PATCH] Clean up Darwin hints
Message ID:
1A70CA3F-82FE-11D5-BFC6-003065D59FBA@thor.sbay.org
   If prefix is unset, default to local install.  If it's /usr, install 
as replacement for built-in perl.

	-Fred


Index: Scripting/perl/perl/hints/darwin.sh
diff -u Scripting/perl/perl/hints/darwin.sh:1.1.1.2 
Scripting/perl/perl/hints/darwin.sh:1.6
--- Scripting/perl/perl/hints/darwin.sh:1.1.1.2 Mon Jul 16 14:20:26 2001
+++ Scripting/perl/perl/hints/darwin.sh Mon Jul 16 18:39:41 2001
@@ -9,24 +9,34 @@

  # BSD paths
  case "$prefix" in
-'')
+'')
+       # Default install; use non-system directories
         prefix='/usr/local'; # Built-in perl uses /usr
         siteprefix='/usr/local';
         vendorprefix='/usr/local'; usevendorprefix='define';

-       # 4BSD uses ${prefix}/share/man, not ${prefix}/man.
-       # Don't put man pages in ${prefix}/lib; that's goofy.
-       man1dir="${prefix}/share/man/man1";
-       man3dir="${prefix}/share/man/man3";
+       # Where to put modules.
+       privlib='/Library/Perl'; # Built-in perl uses 
/System/Library/Perl
+       sitelib='/Library/Perl';
+       vendorlib='/Network/Library/Perl';
+       ;;
+'/usr')
+       # We are building/replacing the built-in perl
+       siteprefix='/usr/local';
+       vendorprefix='/usr/local'; usevendorprefix='define';

         # Where to put modules.
-       # Built-in perl uses /System/Library/Perl
-       privlib='/Library/Perl';
+       privlib='/System/Library/Perl';
         sitelib='/Library/Perl';
         vendorlib='/Network/Library/Perl';
         ;;
  esac

+# 4BSD uses ${prefix}/share/man, not ${prefix}/man.
+# Don't put man pages in ${prefix}/lib; that's goofy.
+man1dir="${prefix}/share/man/man1";
+man3dir="${prefix}/share/man/man3";
+
  ##
  # Tool chain settings
  ##
@@ -37,13 +47,10 @@
  # nm works.
  usenm='true';

-# Libc is in libsystem.
-#libc='/usr/lib/libSystem.dylib';
-
  # Optimize.
  optimize='-O3';

-# We have a prototype for telldir.
+# We have a prototype for telldir, we don't like commons.
  ccflags="${ccflags} -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE";

  # At least on Darwin 1.3.x:


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About