3 # This file is mostly copied from hints/freebsd.sh with the OS version
4 # information taken out and only the FreeBSD-4 information intact.
5 # Please check with Todd Willey <xtoddx@gmail.com> before making
6 # modifications to this file. See http://www.dragonflybsd.org/main/
10 case "$usemymalloc" in
14 libswanted=`echo $libswanted | sed 's/ malloc / /'`
18 # Dynamic Loading flags have not changed much, so they are separated
19 # out here to avoid duplicating them everywhere.
21 *) objformat=`/usr/bin/objformat`
22 if [ x$objformat = xelf ]; then
23 libpth="/usr/lib /usr/local/lib"
24 glibpth="/usr/lib /usr/local/lib"
28 if [ -e /usr/lib/aout ]; then
29 libpth="/usr/lib/aout /usr/local/lib /usr/lib"
30 glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
32 lddlflags='-Bshareable'
34 cccdlflags='-DPIC -fPIC'
39 *) ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
40 if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
48 Some users have reported that Configure halts when testing for
49 the O_NONBLOCK symbol with a syntax error. This is apparently a
50 sh error. Rerunning Configure with ksh apparently fixes the
52 ksh Configure [your options]
56 # From: Anton Berezin <tobez@plab.ku.dk>
57 # To: perl5-porters@perl.org
58 # Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type
59 # Date: 30 Nov 1998 19:46:24 +0100
60 # Message-ID: <864srhhvcv.fsf@lion.plab.ku.dk>
65 # This script UU/usethreads.cbu will get 'called-back' by Configure
66 # after it has prompted the user for whether to use threads.
67 cat > UU/usethreads.cbu <<'EOCBU'
70 lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
72 *) if [ ! -r "$lc_r" ]; then
74 POSIX threads should be supported by FreeBSD $osvers --
75 but your system is missing the shared libc_r.
76 (/sbin/ldconfig -r doesn't find any).
78 Consider using the latest STABLE release.
83 *) ldflags="-pthread $ldflags"
86 # Both in 4.x and 5.x gethostbyaddr_r exists but
87 # it is "Temporary function, not threadsafe"...
88 # Presumably earlier it didn't even exist.
89 d_gethostbyaddr_r="undef"
90 d_gethostbyaddr_r_proto="0"
94 set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
97 # Configure will probably pick the wrong libc to use for nm scan.
98 # The safest quick-fix is just to not use nm at all...
103 # Even with the malloc mutexes the Perl malloc does not
104 # seem to be threadsafe in FreeBSD?
105 case "$usemymalloc" in
112 case "$usemallocwrap" in
113 '') usemallocwrap='define' ;;