1850e2753Smillert# hints/dragonfly.sh 2850e2753Smillert# 3850e2753Smillert# This file is mostly copied from hints/freebsd.sh with the OS version 4850e2753Smillert# information taken out and only the FreeBSD-4 information intact. 5850e2753Smillert# Please check with Todd Willey <xtoddx@gmail.com> before making 6b39c5158Smillert# modifications to this file. See http://www.dragonflybsd.org/ 7850e2753Smillert 8850e2753Smillertcase "$osvers" in 9850e2753Smillert*) usevfork='true' 10850e2753Smillert case "$usemymalloc" in 11850e2753Smillert "") usemymalloc='n' 12850e2753Smillert ;; 13850e2753Smillert esac 14850e2753Smillert libswanted=`echo $libswanted | sed 's/ malloc / /'` 15850e2753Smillert ;; 16850e2753Smillertesac 17850e2753Smillert 18850e2753Smillert# Dynamic Loading flags have not changed much, so they are separated 19850e2753Smillert# out here to avoid duplicating them everywhere. 20850e2753Smillertcase "$osvers" in 21850e2753Smillert*) objformat=`/usr/bin/objformat` 22850e2753Smillert libpth="/usr/lib /usr/local/lib" 23850e2753Smillert glibpth="/usr/lib /usr/local/lib" 24850e2753Smillert ldflags="-Wl,-E " 25850e2753Smillert lddlflags="-shared " 26850e2753Smillert cccdlflags='-DPIC -fPIC' 27850e2753Smillert ;; 28850e2753Smillertesac 29850e2753Smillert 30850e2753Smillertcase "$osvers" in 31850e2753Smillert*) ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H" 32850e2753Smillert if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then 33850e2753Smillert usenm=false 34850e2753Smillert fi 35850e2753Smillert ;; 36850e2753Smillertesac 37850e2753Smillert 38850e2753Smillertcat <<'EOM' >&4 39850e2753Smillert 40850e2753SmillertSome users have reported that Configure halts when testing for 41850e2753Smillertthe O_NONBLOCK symbol with a syntax error. This is apparently a 42850e2753Smillertsh error. Rerunning Configure with ksh apparently fixes the 43850e2753Smillertproblem. Try 44850e2753Smillert ksh Configure [your options] 45850e2753Smillert 46850e2753SmillertEOM 47850e2753Smillert 48850e2753Smillert# From: Anton Berezin <tobez@plab.ku.dk> 49850e2753Smillert# To: perl5-porters@perl.org 50850e2753Smillert# Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type 51850e2753Smillert# Date: 30 Nov 1998 19:46:24 +0100 52850e2753Smillert# Message-ID: <864srhhvcv.fsf@lion.plab.ku.dk> 53850e2753Smillert 54850e2753Smillertsignal_t='void' 55850e2753Smillertd_voidsig='define' 56850e2753Smillert 57850e2753Smillert# This script UU/usethreads.cbu will get 'called-back' by Configure 58850e2753Smillert# after it has prompted the user for whether to use threads. 59850e2753Smillertcat > UU/usethreads.cbu <<'EOCBU' 60850e2753Smillertcase "$usethreads" in 61850e2753Smillert$define|true|[yY]*) 62850e2753Smillert case "$osvers" in 63850e2753Smillert *) ldflags="-pthread $ldflags" 64b39c5158Smillert 65850e2753Smillert # Both in 4.x and 5.x gethostbyaddr_r exists but 66850e2753Smillert # it is "Temporary function, not threadsafe"... 67850e2753Smillert # Presumably earlier it didn't even exist. 68850e2753Smillert d_gethostbyaddr_r="undef" 69850e2753Smillert d_gethostbyaddr_r_proto="0" 70b39c5158Smillert 71850e2753Smillert ;; 72850e2753Smillert esac 73850e2753Smillertesac 74850e2753SmillertEOCBU 75850e2753Smillert 76850e2753Smillert# malloc wrap works 77850e2753Smillertcase "$usemallocwrap" in 78850e2753Smillert'') usemallocwrap='define' ;; 79850e2753Smillertesac 80de8cc8edSafresh1 81de8cc8edSafresh1test "$optimize" || optimize='-O2' 82de8cc8edSafresh1 83de8cc8edSafresh1# Configure can't find dlopen() when using g++ 84de8cc8edSafresh1# linux, freebsd and solaris hints have the same workaround 85de8cc8edSafresh1case "$cc" in 86de8cc8edSafresh1*g++*) 87de8cc8edSafresh1 d_dlopen='define' 88de8cc8edSafresh1 ;; 89de8cc8edSafresh1esac 90*5486feefSafresh1 91*5486feefSafresh1# Dragonfly leaks with a newlocale/freelocale combination. See 92*5486feefSafresh1# https://bugs.dragonflybsd.org/issues/3361 93*5486feefSafresh1ccflags="$ccflags -DNO_POSIX_2008_LOCALE" 94*5486feefSafresh1 95