source: trunk/essentials/dev-lang/perl/hints/rhapsody.sh@ 3187

Last change on this file since 3187 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 3.4 KB
Line 
1##
2# Rhapsody (Mac OS X Server) hints
3# Wilfredo Sanchez <[email protected]>
4##
5
6##
7# Paths
8##
9
10# Configure hasn't figured out the version number yet. Bummer.
11perl_revision=`awk '/define[ ]+PERL_REVISION/ {print $3}' $src/patchlevel.h`
12perl_version=`awk '/define[ ]+PERL_VERSION/ {print $3}' $src/patchlevel.h`
13perl_subversion=`awk '/define[ ]+PERL_SUBVERSION/ {print $3}' $src/patchlevel.h`
14version="${perl_revision}.${perl_version}.${perl_subversion}"
15
16# BSD paths
17case "$prefix" in
18 '')
19 # Default install; use non-system directories
20 prefix='/usr/local'; # Built-in perl uses /usr
21 siteprefix='/usr/local';
22 vendorprefix='/usr'; usevendorprefix='define';
23
24 # Where to put modules.
25 sitelib="/Local/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
26 vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
27 ;;
28
29 '/usr')
30 # We are building/replacing the built-in perl
31 siteprefix='/usr/local';
32 vendorprefix='/usr/local'; usevendorprefix='define';
33
34 # Where to put modules.
35 sitelib="/Local/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
36 vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
37 ;;
38esac
39
40##
41# Tool chain settings
42##
43
44# Since we can build fat, the archname doesn't need the processor type
45archname='rhapsody';
46
47# nm works.
48usenm='true';
49
50# Libc is in libsystem.
51libc='/System/Library/Frameworks/System.framework/System';
52
53# Optimize.
54optimize='-O3';
55
56# -fno-common because common symbols are not allowed in MH_DYLIB
57ccflags="${ccflags} -fno-common"
58
59# Unverified whether this is necessary on Rhapsody, but the test shouldn't hurt.
60# At least on Darwin 1.3.x:
61#
62# # define INT32_MIN -2147483648
63# int main () {
64# double a = INT32_MIN;
65# printf ("INT32_MIN=%g\n", a);
66# return 0;
67# }
68# will output:
69# INT32_MIN=2.14748e+09
70# Note that the INT32_MIN has become positive.
71# INT32_MIN is set in /usr/include/stdint.h by:
72# #define INT32_MIN -2147483648
73# which seems to break the gcc. Defining INT32_MIN as (-2147483647-1)