This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix some typos in perlsyn.pod
[perl5.git] / hints / beos.sh
CommitLineData
c4f23d77 1# BeOS hints file
c4f23d77 2
46193409
JH
3if [ ! -f beos/nm ]; then mwcc -w all -o beos/nm beos/nm.c 2>/dev/null; fi
4# If this fails, that's all right - it's only for PPC.
c4f23d77
AD
5
6prefix="/boot/home/config"
7
46193409 8#cpp="mwcc -e"
c4f23d77
AD
9
10libpth='/boot/beos/system/lib /boot/home/config/lib'
11usrinc='/boot/develop/headers/posix'
12locinc='/boot/develop/headers/ /boot/home/config/include'
13
14libc='/boot/beos/system/lib/libroot.so'
15libs=' '
16
17d_bcmp='define'
18d_bcopy='define'
19d_bzero='define'
20d_index='define'
21#d_htonl='define' # It exists, but much hackery would be required to support.
22# a bunch of extra includes would have to be added, and it's only used at
23# one place in the non-socket perl code.
24
25#these are all in libdll.a, which my version of nm doesn't know how to parse.
26#if I can get it to both do that, and scan multiple library files, perhaps
27#these can be gotten rid of.
28
29usemymalloc='n'
30# Hopefully, Be's malloc knows better than perl's.
31
32d_link='undef'
33dont_use_nlink='define'
34# no posix (aka hard) links for us!
35
36d_syserrlst='undef'
37# the array syserrlst[] is useless for the most part.
38# large negative numbers really kind of suck in arrays.
39
4804698d 40# Sockets didn't use to be real sockets but BONE changes this.
dbc1d986 41if [ ! -f /boot/develop/headers/be/bone/sys/socket.h ]; then
4804698d
JH
42 d_socket='undef'
43 d_gethbyaddr='undef'
44 d_gethbyname='undef'
45 d_getsbyname='undef'
dbc1d986
IW
46
47 libs='-lnet'
4804698d 48fi
46193409 49
e56d2c04
IW
50# There's a third party flock() emulation. Check, if it is available.
51echo "#include <flock.h>" > try.c
52if cc -E $CFLAGS try.c 2> /dev/null | grep "flock.*("; then
53 d_flock='define'
54 d_flockproto='define'
55 libs="$libs -lflock"
56 ldflags="$ldflags -L/boot/home/config/lib"
57else
58 cat << 'EOM' >&4
59
60I couldn't find a <flock.h> header defining a flock() prototype. That header
61comes with the flock server package (available on BeBits). You have to add
62the path to the directory containing the header via the environment variable
63CFLAGS (should contain -I</path/to/dir/of/flock/header>). Perl will be compiled
64without flock() support, if the flock server package is not installed or the
65header not found.
66
67EOM
68
69fi
70rm try.c
dbc1d986 71
46193409
JH
72ld='gcc'
73
c4f23d77 74export PATH="$PATH:$PWD/beos"
5cf1d1f1
JH
75
76case "$ldlibpthname" in
77'') ldlibpthname=LIBRARY_PATH ;;
78esac
ddeecc1f 79
dbc1d986 80# the waitpid() wrapper (among other things)
8c747ec4
JH
81archobjs="beos.o"
82test -f beos.c || cp beos/beos.c .