This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
enable LFS on GNU/Hurd
[perl5.git] / hints / dragonfly.sh
1 # hints/dragonfly.sh
2 #
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/
7
8 case "$osvers" in
9 *)  usevfork='true'
10     case "$usemymalloc" in
11         "") usemymalloc='n'
12             ;;
13     esac
14     libswanted=`echo $libswanted | sed 's/ malloc / /'`
15     ;;
16 esac
17
18 # Dynamic Loading flags have not changed much, so they are separated
19 # out here to avoid duplicating them everywhere.
20 case "$osvers" in
21 *)  objformat=`/usr/bin/objformat`
22     libpth="/usr/lib /usr/local/lib"
23     glibpth="/usr/lib /usr/local/lib"
24     ldflags="-Wl,-E "
25     lddlflags="-shared "
26     cccdlflags='-DPIC -fPIC'
27     ;;
28 esac
29
30 case "$osvers" in
31 *)  ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
32     if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
33         usenm=false
34     fi
35     ;;
36 esac
37
38 cat <<'EOM' >&4
39
40 Some users have reported that Configure halts when testing for
41 the O_NONBLOCK symbol with a syntax error.  This is apparently a
42 sh error.  Rerunning Configure with ksh apparently fixes the
43 problem.  Try
44        ksh Configure [your options]
45
46 EOM
47
48 # From: Anton Berezin <tobez@plab.ku.dk>
49 # To: perl5-porters@perl.org
50 # Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type
51 # Date: 30 Nov 1998 19:46:24 +0100
52 # Message-ID: <864srhhvcv.fsf@lion.plab.ku.dk>
53
54 signal_t='void'
55 d_voidsig='define'
56
57 # This script UU/usethreads.cbu will get 'called-back' by Configure
58 # after it has prompted the user for whether to use threads.
59 cat > UU/usethreads.cbu <<'EOCBU'
60 case "$usethreads" in
61 $define|true|[yY]*)
62     case "$osvers" in
63     *)  ldflags="-pthread $ldflags"
64
65         # Both in 4.x and 5.x gethostbyaddr_r exists but
66         # it is "Temporary function, not threadsafe"...
67         # Presumably earlier it didn't even exist.
68         d_gethostbyaddr_r="undef"
69         d_gethostbyaddr_r_proto="0"
70
71         ;;
72     esac
73 esac
74 EOCBU
75
76 # malloc wrap works
77 case "$usemallocwrap" in
78 '') usemallocwrap='define' ;;
79 esac