summaryrefslogtreecommitdiffstats
path: root/m4/pdns_check_network_libs.m4
blob: f74311473cf09d89497c326508b3d7f4154b70e6 (plain)
1
2
3
4
5
6
7
8
AC_DEFUN([PDNS_CHECK_NETWORK_LIBS],[
  AC_SEARCH_LIBS([inet_aton], [resolv])
  AC_SEARCH_LIBS([gethostbyname], [nsl])
  AC_SEARCH_LIBS([socket], [socket])
  AC_SEARCH_LIBS([gethostent], [nsl])
  AC_CHECK_FUNCS([recvmmsg sendmmsg accept4])
  AC_CHECK_DECL(getifaddrs, [AC_DEFINE([HAVE_GETIFADDRS], [1], [Define to 1 if you have getifaddrs])], [], [#include <ifaddrs.h>])
])