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