blob: 32368913857f23b618f48f74271af9c5f16ff708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: options.mk,v 1.5 2008/10/01 14:34:32 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.stunnel
PKG_SUPPORTED_OPTIONS= inet6 pthread libwrap
PKG_SUGGESTED_OPTIONS= libwrap
CHECK_BUILTIN.pthread:= yes
.include "../../mk/pthread.builtin.mk"
CHECK_BUILTIN.pthread:= no
.if !empty(BUILTIN_LIB_FOUND.pthread:M[yY][eE][sS])
PKG_SUGGESTED_OPTIONS+= pthread
.endif
.include "../../mk/bsd.options.mk"
###
### Support IPv6
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
###
### Support pthreads
###
.if !empty(PKG_OPTIONS:Mpthread)
PTHREAD_AUTO_VARS= yes
.include "../../mk/pthread.buildlink3.mk"
CONFIGURE_ARGS+= --with-threads=pthread
.else
CONFIGURE_ARGS+= --with-threads=fork
.endif
###
### Support libwrap
###
.if !empty(PKG_OPTIONS:Mlibwrap)
.include "../../security/tcp_wrappers/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libwrap
.endif
|