[PATCH 5.004_64] newSV
[p5sagit/p5-mst-13.2.git] / hints / machten.sh
CommitLineData
fec02dd3 1# machten.sh
a55e790a 2# This is for MachTen 4.0.3. It might work on other versions and variants too.
db90f03e 3#
a55e790a 4# Users of earlier MachTen versions might need a fixed tr from ftp.tenon.com.
5# This should be described in the MachTen release notes.
db90f03e 6#
7# MachTen 2.x has its own hint file.
8#
9# This file has been put together by Andy Dougherty
10# <doughera@lafcol.lafayette.edu> based on comments from lots of
11# folks, especially
12# Mark Pease <peasem@primenet.com>
13# Martijn Koster <m.koster@webcrawler.com>
14# Richard Yeh <rcyeh@cco.caltech.edu>
baf67fda 15#
da9788ee 16# Raise stack size further; slight tweaks to accomodate MT 4.1
17# -- Dominic Dunlop <domo@computer.org> 980211
a55e790a 18# Raise perl's stack size -- Dominic Dunlop <domo@tcp.ip.lu> 970922
44a8e56a 19# Reinstate sigsetjmp iff version is 4.0.3 or greater; use nm
20# (assumes Configure change); prune libswanted -- Dominic Dunlop 970113
21# Warn about test failure due to old Berkeley db -- Dominic Dunlop 970105
55497cff 22# Do not use perl's malloc; SysV IPC OK -- Neil Cutcliffe, Tenon 961030
23# File::Find's use of link count disabled by Dominic Dunlop 960528
24# Perl's use of sigsetjmp etc. disabled by Dominic Dunlop 960521
db90f03e 25#
fec02dd3 26# Comments, questions, and improvements welcome!
27#
db90f03e 28# MachTen 4.X does support dynamic loading, but perl doesn't
29# know how to use it yet.
55497cff 30
31# Power MachTen is a real memory system and its standard malloc
32# has been optimized for this. Using this malloc instead of Perl's
33# malloc may result in significant memory savings.
34usemymalloc='false'
c07a80fd 35
44a8e56a 36# Make symbol table listings les voluminous
37nmopts=-gp
c07a80fd 38
a55e790a 39# Increase perl's stack size. Without this, lib/complex.t crashes out.
40# Particularly perverse programs may require that perl has an even larger
41# stack allocation than that specified here. (See man setstackspace )
da9788ee 42ldflags='-Xlstack=0x018000'
a55e790a 43
55497cff 44# Install in /usr/local by default
45prefix='/usr/local'
46
db90f03e 47# At least on PowerMac, doubles must be aligned on 8 byte boundaries.
48# I don't know if this is true for all MachTen systems, or how to
49# determine this automatically.
50alignbytes=8
baf67fda 51
44a8e56a 52# 4.0.2 and earlier had a problem with perl's use of sigsetjmp and
baf67fda 53# friends. Use setjmp and friends instead.
44a8e56a 54expr "$osvers" \< "4.0.3" > /dev/null && d_sigsetjmp='undef'
55
56# Get rid of some extra libs which it takes Configure a tediously
57# long time never to find on MachTen
58set `echo X "$libswanted "|sed -e 's/ net / /' -e 's/ socket / /' \
59 -e 's/ inet / /' -e 's/ nsl / /' -e 's/ nm / /' -e 's/ malloc / /' \
60 -e 's/ ld / /' -e 's/ sun / /' -e 's/ posix / /' \
61 -e 's/ cposix / /' -e 's/ crypt / /' \
62 -e 's/ ucb / /' -e 's/ bsd / /' -e 's/ BSD / /' -e 's/ PW / /'`
63shift
64libswanted="$*"
baf67fda 65
da9788ee 66# While link counts on MachTen 4.1's fast file systems work correctly,
67# on Macintosh Heirarchical File Systems, (and on HFS+)
baf67fda 68# MachTen always reports ony two links to directories, even if they
69# contain subdirectories. Consequently, we use this variable to stop
70# File::Find using the link count to determine whether there are
71# subdirectories to be searched. This will generate a harmless message:
72# Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
73# Propagating recommended variable dont_use_nlink
74dont_use_nlink=define
75
76cat <<'EOM' >&4
77
78Tests
79 io/fs test 4 and
80 op/stat test 3
da9788ee 81may fail since MachTen may not return a useful nlinks field to stat
baf67fda 82on directories.
83
84At the end of Configure, you will see a harmless message
85
86Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
87 Propagating recommended variable dont_use_nlink
44a8e56a 88 Propagating recommended variable nmopts
89Read the File::Find documentation for more information about dont_use_nlink
baf67fda 90
91EOM
da9788ee 92expr "$osvers" \< "4.1" && test -r ./broken-db.msg && . ./broken-db.msg