summaryrefslogtreecommitdiff
path: root/source4/lib/socket/config.m4
blob: 37eff7ded13f31042affdf30957665300b4ab957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

SMB_MODULE_MK(socket_ipv4,SOCKET,STATIC,lib/socket/config.mk)
SMB_MODULE_MK(socket_unix,SOCKET,STATIC,lib/socket/config.mk)

dnl test for ipv6 using the gethostbyname2() function. That should be sufficient
dnl for now
AC_CHECK_FUNCS(gethostbyname2, have_ipv6=true, have_ipv6=false)
if $have_ipv6 = true; then
    SMB_MODULE_DEFAULT(socket_ipv6, STATIC)
    AC_DEFINE(HAVE_SOCKET_IPV6,1,[Whether the system has ipv6 support])
fi

dnl don't build ipv6 by default, unless the above test enables it, or
dnl the configure uses --with-static-modules=socket_ipv6
SMB_MODULE_MK(socket_ipv6,SOCKET,NOT,lib/socket/config.mk)

SMB_SUBSYSTEM_MK(SOCKET,lib/socket/config.mk)