perl 5.003: hints/bsdos.sh
[p5sagit/p5-mst-13.2.git] / hints / freebsd.sh
CommitLineData
5d94fbed 1# Original based on info from
a0d0e21e 2# Carl M. Fongheiser <cmf@ins.infonet.net>
3# Date: Thu, 28 Jul 1994 19:17:05 -0500 (CDT)
4#
5# Additional 1.1.5 defines from
6# Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
7# Date: Wed, 28 Sep 1994 00:37:46 +0100 (MET)
8#
5d94fbed 9# Additional 2.* defines from
10# Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
11# Date: Sat, 8 Apr 1995 20:53:41 +0200 (MET DST)
12#
16d20bd9 13# Additional 2.0.5 and 2.1 defined from
14# Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
15# Date: Fri, 12 May 1995 14:30:38 +0200 (MET DST)
16#
5d94fbed 17# The two flags "-fpic -DPIC" are used to indicate a
18# will-be-shared object. Configure will guess the -fpic, (and the
19# -DPIC is not used by perl proper) but the full define is included to
20# be consistent with the FreeBSD general shared libs building process.
21#
16d20bd9 22# setreuid and friends are inherently broken in all versions of FreeBSD
23# before 2.1-current (before approx date 4/15/95). It is fixed in 2.0.5
24# and what-will-be-2.1
5d94fbed 25#
26
a0d0e21e 27case "$osvers" in
280.*|1.0*)
29 usedl="$undef"
30 ;;
e50aee73 311.1*)
a0d0e21e 32 malloctype='void *'
33 groupstype='int'
34 d_setregid='undef'
35 d_setreuid='undef'
36 d_setrgid='undef'
37 d_setruid='undef'
5d94fbed 38 ;;
e50aee73 392.0-release*)
5d94fbed 40 d_setregid='undef'
41 d_setreuid='undef'
42 d_setrgid='undef'
43 d_setruid='undef'
a0d0e21e 44 ;;
16d20bd9 45#
46# Trying to cover 2.0.5, 2.1-current and future 2.1
47# It does not covert all 2.1-current versions as the output of uname
48# changed a few times.
49#
e50aee73 502.0.5*|2.0-built*|2.1*)
51 usevfork='true'
e50aee73 52 ;;
53#
54# Guesses at what will be needed after 2.1
55*) usevfork='true'
e50aee73 56 ;;
57esac
58
59# Dynamic Loading flags have not changed much, so they are separated
60# out here to avoid duplicating them everywhere.
61case "$osvers" in
620.*|1.0*) ;;
63*) cccdlflags='-DPIC -fpic'
c2960299 64 lddlflags="-Bshareable $lddlflags"
e50aee73 65 ;;
a0d0e21e 66esac
e50aee73 67
a0d0e21e 68# Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *)
5d94fbed 69# Configure should test for this. Volunteers?
a0d0e21e 70pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
4633a7c4 71
72cat <<'EOM'
73
74Some users have reported that Configure halts when testing for
75the O_NONBLOCK symbol with a syntax error. This is apparently a
76sh error. Rerunning Configure with ksh apparently fixes the
77problem. Try
78 ksh Configure [your options]
79
80EOM
81