This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
applied new parts of suggested patch
[perl5.git] / hints / next_4.sh
CommitLineData
760ac839 1######################################################################
25b26da3 2#
3# IMPORTANT: before you run 'make', you need to enter one of these two
4# lines (depending on your shell):
5# DYLD_LIBRARY_PATH=`pwd`; export DYLD_LIBRARY_PATH
6# or
7# setenv DYLD_LIBRARY_PATH `pwd`
8#
760ac839
LW
9######################################################################
10
11# Posix support has been removed from NextStep
12#
25b26da3 13useposix='undef'
14
38d592ac 15libpth='/lib /usr/lib /usr/local/lib'
25b26da3 16libswanted=' '
17libc='/NextLibrary/Frameworks/System.framework/System'
18
25b26da3 19ldflags='-dynamic -prebind'
20lddlflags='-dynamic -bundle -undefined suppress'
86058a2d 21ccflags='-dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK'
25b26da3 22cccdlflags='none'
23ld='cc'
760ac839 24#optimize='-g -O'
25b26da3 25
7bac28a0 26######################################################################
27# MAB support
28######################################################################
29# By default we will build for all architectures your development
30# environment supports. If you only want to build for the platform
31# you are on, simply comment or remove the line below.
32#
33# If you want to build for specific architectures, change the line
34# below to something like
bf5a71f0 35#
77172323 36# archs='m68k i386'
bf5a71f0 37#
38d592ac
GW
38
39# On m68k machines, toke.c cannot be compiled at all for i386 and it can
40# only be compiled for m68k itself without optimization (this is under
41# OPENSTEP 4.2).
42#
43if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ]
44then
45 echo "Cross compilation is impossible on m68k hardware under OS 4"
46 echo "Forcing architecture to m68k only"
47 toke_cflags='optimize=""'
48 archs='m68k'
49else
50 archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
51fi
bf5a71f0 52
3c321fdc 53#
7bac28a0 54# leave the following part alone
55#
56archcount=`echo $archs |wc -w`
57if [ $archcount -gt 1 ]
58then
59 for d in $archs
60 do
61 mabflags="$mabflags -arch $d"
62 done
63 ccflags="$ccflags $mabflags"
64 ldflags="$ldflags $mabflags"
65 lddlflags="$lddlflags $mabflags"
66fi
67######################################################################
68# END MAB support
69######################################################################
bf5a71f0 70
71useshprlib='true'
25b26da3 72dlext='bundle'
73so='dylib'
74
760ac839
LW
75#
76# The default prefix would be '/usr/local'. But since many people are
77# likely to have still 3.3 machines on their network, we do not want
78# to overwrite possibly existing 3.3 binaries.
7bac28a0 79# You can use Configure -Dprefix=/foo/bar to override this, or simply
80# remove the lines below.
760ac839 81#
bf5a71f0 82case "$prefix" in
83'') prefix='/usr/local/OPENSTEP' ;;
84esac
85
25b26da3 86archname='OPENSTEP-Mach'
87
7bac28a0 88#
89# At least on m68k there are situations when memcmp doesn't behave
90# as expected. So we'll use perl's memcmp.
91#
92d_sanemcmp='undef'
93
25b26da3 94d_strcoll='undef'
95i_dbm='define'
96i_utime='undef'
97groupstype='int'
98direntrytype='struct direct'
99
760ac839 100usemymalloc='y'
25b26da3 101clocktype='int'
102
103#
104# On some NeXT machines, the timestamp put by ranlib is not correct, and
105# this may cause useless recompiles. Fix that by adding a sleep before
106# running ranlib. The '5' is an empirical number that's "long enough."
107# (Thanks to Andreas Koenig <k@franz.ww.tu-berlin.de>)
108ranlib='sleep 5; /bin/ranlib'