build: commit all the waf build files in the tree
[nivanova/samba-autobuild/.git] / source4 / lib / socket / config.m4
index a5d3d0916e48b1aa57345cfa3921c8036c271ef2..fa987a1f460bfac11e2770c078e4f2d680957cb4 100644 (file)
@@ -1,4 +1,18 @@
+AC_CHECK_FUNCS(writev)
+AC_CHECK_FUNCS(readv)
 
-SMB_MODULE_MK(socket_ipv4,SOCKET,STATIC,lib/socket/config.mk)
+############################################
+# check for unix domain sockets
+# done by AC_LIBREPLACE_NETWORK_CHECKS
+SMB_ENABLE(socket_unix, NO)
+if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"yes"; then
+       SMB_ENABLE(socket_unix, YES)
+fi
 
-SMB_SUBSYSTEM_MK(SOCKET,lib/socket/config.mk)
+############################################
+# check for ipv6
+# done by AC_LIBREPLACE_NETWORK_CHECKS
+SMB_ENABLE(socket_ipv6, NO)
+if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
+    SMB_ENABLE(socket_ipv6, YES)
+fi