summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorbonefish@cs.tu-berlin.de <bonefish@cs.tu-berlin.de>2004-12-17 02:17:40 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-12-17 09:08:23 +0000
commite56d2c0452c35b83da9b40ac35fd5558c48f7b73 (patch)
tree6fdf7ee53e174f39e475f6b9973046d0dba8a178 /hints
parentd4c5c869043fa9353a750a98a5c2dad02bf2491c (diff)
downloadperl-e56d2c0452c35b83da9b40ac35fd5558c48f7b73.tar.gz
Re: [perl #32717] BeOS specific Updates
Message-Id: <20041217011740.14398.1@cs.tu-berlin.de> p4raw-id: //depot/perl@23661
Diffstat (limited to 'hints')
-rw-r--r--hints/beos.sh24
1 files changed, 21 insertions, 3 deletions
diff --git a/hints/beos.sh b/hints/beos.sh
index 47e724b2a5..a83b4af6dd 100644
--- a/hints/beos.sh
+++ b/hints/beos.sh
@@ -48,9 +48,27 @@ if [ ! -f /boot/develop/headers/be/bone/sys/socket.h ]; then
libs='-lnet'
fi
-# We provide a flock() emulation.
-d_flock='define'
-d_flockproto='define'
+# There's a third party flock() emulation. Check, if it is available.
+echo "#include <flock.h>" > try.c
+if cc -E $CFLAGS try.c 2> /dev/null | grep "flock.*("; then
+ d_flock='define'
+ d_flockproto='define'
+ libs="$libs -lflock"
+ ldflags="$ldflags -L/boot/home/config/lib"
+else
+ cat << 'EOM' >&4
+
+I couldn't find a <flock.h> header defining a flock() prototype. That header
+comes with the flock server package (available on BeBits). You have to add
+the path to the directory containing the header via the environment variable
+CFLAGS (should contain -I</path/to/dir/of/flock/header>). Perl will be compiled
+without flock() support, if the flock server package is not installed or the
+header not found.
+
+EOM
+
+fi
+rm try.c
ld='gcc'