This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Andy Dougherty's configuration patches (Config_63-01 up to 04).
[perl5.git] / hints / machten.sh
1 # machten.sh
2 # This is for MachTen 4.0.3.  It might work on other versions and variants too.
3 #
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.
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>
15 #
16 # Raise stack size further; slight tweaks to accomodate MT 4.1
17 #                      -- Dominic Dunlop <domo@computer.org> 980211
18 # Raise perl's stack size -- Dominic Dunlop <domo@tcp.ip.lu> 970922
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
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
25 #
26 # Comments, questions, and improvements welcome!
27 #
28 # MachTen 4.X does support dynamic loading, but perl doesn't
29 # know how to use it yet.
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.
34 usemymalloc='false'
35
36 # Make symbol table listings les voluminous
37 nmopts=-gp
38
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 )
42 ldflags='-Xlstack=0x018000'
43
44 # Install in /usr/local by default
45 prefix='/usr/local'
46
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.
50 alignbytes=8
51
52 # 4.0.2 and earlier had a problem with perl's use of sigsetjmp and
53 # friends.  Use setjmp and friends instead.
54 expr "$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
58 set `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 / /'`
63 shift
64 libswanted="$*"
65
66 # While link counts on MachTen 4.1's fast file systems work correctly,
67 # on Macintosh Heirarchical File Systems, (and on HFS+)
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
74 dont_use_nlink=define
75
76 cat <<'EOM' >&4
77
78 Tests
79         io/fs test 4  and
80         op/stat test 3
81 may fail since MachTen may not return a useful nlinks field to stat
82 on directories.
83
84 At the end of Configure, you will see a harmless message
85
86 Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
87         Propagating recommended variable dont_use_nlink
88         Propagating recommended variable nmopts
89 Read the File::Find documentation for more information about dont_use_nlink
90
91 EOM
92 expr "$osvers" \< "4.1" && test -r ./broken-db.msg && . ./broken-db.msg