This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
This is my patch patch.1n for perl5.001.
[perl5.git] / hints / freebsd.sh
CommitLineData
5d94fbed 1# Original based on info from
a0d0e21e
LW
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
AD
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
AD
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
AD
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
AD
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
AD
25#
26
a0d0e21e
LW
27case "$osvers" in
280.*|1.0*)
29 usedl="$undef"
30 ;;
e50aee73 311.1*)
a0d0e21e
LW
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
AD
40 d_setregid='undef'
41 d_setreuid='undef'
42 d_setrgid='undef'
43 d_setruid='undef'
a0d0e21e 44 ;;
16d20bd9
AD
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
AD
502.0.5*|2.0-built*|2.1*)
51 usevfork='true'
52 d_dosuid='define'
53 ;;
54#
55# Guesses at what will be needed after 2.1
56*) usevfork='true'
57 d_dosuid='define'
58 ;;
59esac
60
61# Dynamic Loading flags have not changed much, so they are separated
62# out here to avoid duplicating them everywhere.
63case "$osvers" in
640.*|1.0*) ;;
65*) cccdlflags='-DPIC -fpic'
c2960299 66 lddlflags="-Bshareable $lddlflags"
e50aee73 67 ;;
a0d0e21e 68esac
e50aee73 69
a0d0e21e 70# Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *)
5d94fbed 71# Configure should test for this. Volunteers?
a0d0e21e 72pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'